Skip to content
Get started

eqiora.fvm

← Python API index

Finite-volume discretization policies.

View source
python
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.

Collocated cell-centred incompressible-flow spatial policy.

python
@final
class 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: ...

Cell-centred orthogonal two-point-flux spatial policy.

python
@final
class 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: ...