eqiora.fvm
Finite-volume discretization policies.
View sourceExample: select a cell-centred method
Section titled “Example: select a cell-centred method”from eqiora import fvm
scalar_method = fvm.CellCenteredTpfa()flow_method = fvm.CellCentered()print(scalar_method.space)print(flow_method.velocity_space, flow_method.pressure_space)TPFA uses two-point face fluxes on orthogonal meshes. The flow method stores
velocity and pressure at cell centres. Supply the appropriate policy through
eqiora.resolve(..., spatial=...); see modeling for the
model, geometry, and boundary conditions that accompany each method.
CellCentered
Section titled “CellCentered”Collocated cell-centred incompressible-flow spatial policy.
@finalclass CellCentered: def __new__(cls) -> Self: ... @property def method(self) -> str: ... @property def velocity_space(self) -> str: ... @property def pressure_space(self) -> str: ... @property def quadrature(self) -> str: ... def __eq__(self, other: object, /) -> bool: ... def __hash__(self) -> int: ... def __repr__(self) -> str: ...CellCenteredTpfa
Section titled “CellCenteredTpfa”Cell-centred orthogonal two-point-flux spatial policy.
@finalclass CellCenteredTpfa: def __new__(cls) -> Self: ... @property def method(self) -> str: ... @property def space(self) -> str: ... @property def quadrature(self) -> str: ... def __eq__(self, other: object, /) -> bool: ... def __hash__(self) -> int: ... def __repr__(self) -> str: ...