zoomy_core.model.models.sme#
Shallow Moment Equations (SME): the declaratively derived depth-resolved moment Model,
for one or two horizontal directions. SystemModel.from_model(SME(level=2)) lifts it to the
runtime system.
Module Contents#
Classes#
Shallow Moment Equations of modal order |
Data#
API#
- zoomy_core.model.models.sme.zeta#
‘Symbol(…)’
- class zoomy_core.model.models.sme.SME(init_functions=True, **params)#
Bases:
zoomy_core.model.basemodel.ModelShallow Moment Equations of modal order
level(level=2gives h, q_0, q_1, q_2 plus the bedb), derived symbolically by Galerkin projection.Lifted to a SystemModel by
SystemModel.from_model; stress closures are injected throughclosures. The stress is truncated by order from the non-dimensional balance laws (scaling), by default in the regimeFr, De = O(1)at the orders (0, 0): the hydrostatic balance with the vertical shear.Stress.fullkeeps the hand rule (the whole tensor without the eps^2rho nu d_e d_e w, consistent for De <= O(eps), ANALYSIS 49, 63).References
Kowalski & Torrilhon 2019, https://doi.org/10.4208/cicp.OA-2017-0263
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.
- level#
‘Integer(…)’
- dimension#
‘Integer(…)’
- small_slope#
‘Boolean(…)’
- quadrature_order#
‘Integer(…)’
- stress#
‘OptionParam(…)’
- scaling#
‘Parameter(…)’
- closures#
‘List(…)’
- symbolic_spectrum#
‘Boolean(…)’
- project_nz#
‘Integer(…)’
- default_scaling()#
The truncation without a
scalingsetting: regimeFr, De = O(1), orders (0, 0);None(the hand rule) withStress.full.
- derive_model()#
Build the declarative SME model (h-equation, projected horizontal momenta, closures) and register the vertical reconstruction; called by the base
__init__.