zoomy_core.model.models.ml_vam

zoomy_core.model.models.ml_vam#

Multilayer non-hydrostatic vertically averaged moments (ML-VAM): every layer is a VAM column, with interface mass fluxes closed by the layer-fraction constraint. SystemModel.from_model gives the square DAE with state [b, h, q, r, P]; MLVAM.chorin_split gives the predictor / pressure / corrector sub-systems.

Module Contents#

Classes#

VerticalTraction

The interface trace of tau_ez in ML-VAM’s vertical (w) rows at an internal layer interface z_a (Stress.full, level >= 1; at level 0 both traces are 0). The w rows project the vertical balance pointwise per layer, which carries the Leibniz terms -/+ phi_k(side) tau_ez d_e z_a of the layer’s own trace (ANALYSIS 45j).

MLVAM

Multilayer non-hydrostatic VAM with n_layers layers that move with the free surface, each a column with u in P_level and w, p in P_(level+1) (closed top modes). Pressure closures run downward from p(1) = 0 at the surface and w closures run upward from the bed kinematic condition.

Data#

API#

zoomy_core.model.models.ml_vam.zeta#

‘Symbol(…)’

class zoomy_core.model.models.ml_vam.VerticalTraction#

Bases: zoomy_core.misc.options.Option

The interface trace of tau_ez in ML-VAM’s vertical (w) rows at an internal layer interface z_a (Stress.full, level >= 1; at level 0 both traces are 0). The w rows project the vertical balance pointwise per layer, which carries the Leibniz terms -/+ phi_k(side) tau_ez d_e z_a of the layer’s own trace (ANALYSIS 45j).

Initialization

Initialize self. See help(type(self)) for accurate signature.

one_sided#

‘one_sided’

shared#

‘shared’

function#

‘function’

class zoomy_core.model.models.ml_vam.MLVAM(init_functions=True, **params)#

Bases: zoomy_core.model.basemodel.Model

Multilayer non-hydrostatic VAM with n_layers layers that move with the free surface, each a column with u in P_level and w, p in P_(level+1) (closed top modes). Pressure closures run downward from p(1) = 0 at the surface and w closures run upward from the bed kinematic condition.

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#

‘Integer(…)’

dimension#

‘Integer(…)’

stress#

‘OptionParam(…)’

vertical_traction#

‘OptionParam(…)’

vertical_traction_function#

‘Callable(…)’

closures#

‘List(…)’

derive_model()#

Derive each layer as a VAM column top-down (pressure-trace cascade), close the interface mass fluxes G from the fraction constraint, and assemble the model. Returns the derivation model with continuity, constraint and momentum rows, and the interpolate, project, reconstruction and wall rows.

chorin_split(dt=None, *, system_model=None)#

Split the system into predictor, pressure and corrector sub-systems for the Chorin solver. Returns the structural split with respect to the P_* pressure modes and time step dt (symbol if None).

References