zoomy_core.model.models.ml_sme

zoomy_core.model.models.ml_sme#

Multilayer shallow moment equations (ML-SME): every layer is a full SME moment column, with interface mass fluxes closed by the layer-fraction constraint. State is [b, h, q_1_0 ... q_N_level]; the model is lifted to a SystemModel via SystemModel.from_model.

Module Contents#

Classes#

MLSME

Multilayer SME with n_layers layers that move with the free surface, each a moment column of order level. The interface transfer velocity is upwinded or averaged through the closures (UpwindInterface / MeanInterface); the kinematic w terms stay untouched. Each layer’s stress is truncated by order from the non-dimensional balance laws (scaling), by default in the regime Fr, De = O(1) at the orders (0, 0), Stress.full (2, 2) (ANALYSIS 49, 63).

Data#

API#

zoomy_core.model.models.ml_sme.zeta#

‘Symbol(…)’

class zoomy_core.model.models.ml_sme.MLSME(init_functions=True, **params)#

Bases: zoomy_core.model.basemodel.Model

Multilayer SME with n_layers layers that move with the free surface, each a moment column of order level. The interface transfer velocity is upwinded or averaged through the closures (UpwindInterface / MeanInterface); the kinematic w terms stay untouched. Each layer’s stress is truncated by order from the non-dimensional balance laws (scaling), by default in the regime Fr, De = O(1) at the orders (0, 0), Stress.full (2, 2) (ANALYSIS 49, 63).

References

Initialization

Declare variables and parameters, run the derivation, and (unless _finalize_lazy) finalize for the SystemModel.

Args

  • init_functions: register the operator methods as symbolic functions during finalization.

n_layers#

‘Integer(…)’

level#

‘Parameter(…)’

dimension#

‘Integer(…)’

stress#

‘OptionParam(…)’

scaling#

‘Parameter(…)’

closures#

‘List(…)’

interface_velocity#

‘Selector(…)’

project_nz#

‘Integer(…)’

default_scaling()#

The truncation without a scaling setting: regime Fr, De = O(1), orders (0, 0), with Stress.full (2, 2) (the layer rows carry no vertical inertia).

derive_model()#

Derive each layer as an SME column, close the interface mass fluxes G from the fraction constraint, and assemble the model. Returns the derivation model with continuity, one momentum equation per layer / direction / mode, and the interpolate, project and wall rows.