Skip to content
Get started

eqiora.formulation

← Python API index

Choose a mathematical formulation and inspect the resolved choice.

View source

With model and mesh from a scalar elliptic setup in modeling:

python
import eqiora
plan = eqiora.resolve(
model, mesh=mesh,
spatial=eqiora.fvm.CellCenteredTpfa(),
formulation=eqiora.formulation.IntegralConservative,
)

This pairs a conservative mathematical form with a finite-volume policy. Use PrimalGalerkin with scalar Q1 finite elements and MixedGalerkin with mixed velocity/pressure elements. The formulation, the spatial method, and the model must all be compatible.

See eqiora.FormulationKind.

Formulation families that a resolved Plan can use.

FirstOrderEvolution is the first-order form produced by automatic time normalization.

See eqiora.FormulationSelectionMode.

Whether a Formulation was selected automatically or supplied explicitly.

See eqiora.FormulationView.

Mathematical formulation chosen when the Model was resolved into a Plan.

Primal Galerkin form used by scalar and displacement fields.

python
PrimalGalerkin: Final[FormulationKind]

Mixed Galerkin form used by coupled velocity-pressure fields.

python
MixedGalerkin: Final[FormulationKind]

Integral-conservative form used by face-flux finite volumes.

python
IntegralConservative: Final[FormulationKind]