rom: Galerkin: default problem

Defined in module: pressio4py.rom.galerkin

Import as:       from pressio4py.rom import galerkin

API, Parameters and Requirements

problem = galerkin.DefaultExplicitProblem(scheme, fom_adapter, decoder, \   (1)
                                          rom_state, fom_ref_state)

problem = galerkin.DefaultImplicitProblem(scheme, fom_adapter, decoder, \   (2)
                                          rom_state, fom_ref_state)
  • scheme:
  • fom_adapter:
    • instance of your adapter class specifying the FOM problem.
    • must satisfy one of the APIs suitable for Galerkin, see API list
  • decoder:
    • decoder object
    • must satify the requirements listed here
  • rom_state:
    • currently, must be a rank-1 numpy.array
  • fom_ref_state:
    • your FOM reference state that is used when reconstructing the FOM state
    • must be a rank-1 numpy.array