Edit me

The RomApplication expects a basis matrix \(\color{Black}\bold{ {\Phi} }\) \(\color{Black}\bold{ {\Phi} }\) (obtained for example from a POD procedure or using Modal Derivatives) with as many rows as degrees of freedom times the number of nodes, and as many columns as representative modes are being consired

basis

The RomApplication expects this basis in the form of a JSON file with saved as RomParameters.json which should be located in the same folder as the MainKratos.py and should be in the following format:

{
  "rom_settings": {
    "nodal_unknowns": [
      "ROTATION_X",
      "ROTATION_Y",
      "ROTATION_Z",
      "DISPLACEMENT_X",
      "DISPLACEMENT_Y",
      "DISPLACEMENT_Z"
    ],
    "number_of_rom_dofs": 5
  },
  "nodal_modes": {
    "1": [
      [
        "Phi[0, :]"
      ],
      [
        "Phi[1, :]"
      ],
      [
        "Phi[2,:]"
      ],
      [
        "Phi[3,:]"
      ],
      [
        "Phi[4,:]"
      ],
      [
        "Phi[5,:]"
      ]
    ],
    "2": [
      .
      .
      .
    "dofs": [
      [
        "Phi[dofs*nodes -6 ,:]"
      ],
      [
        "Phi[dofs*nodes -5 ,:]"  
      ],
      [
        "Phi[dofs*nodes -4 ,:]"
      ],
      [
        "Phi[dofs*nodes -3 ,:]" 
      ],
      [
        "Phi[dofs*nodes -2 ,:]"
      ],
      [
        "Phi[dofs*nodes -1 ,:]"
      ]
    ]
  }
}

you can find examples of these files here

Exaplain also ElementsAndWeigths.json

Draw a chart with the files for a ROM and an HROM simulation