zoomy_core.model.models.vam#
VAM: the non-hydrostatic vertically-averaged moment Model, derived with the same Galerkin
recipe as SME but with a modal non-hydrostatic pressure.
SystemModel.from_model(VAM(level=Nu)) gives the square DAE; chorin_split gives the
predictor/pressure/corrector sub-systems.
Module Contents#
Classes#
Non-hydrostatic vertically-averaged moment equations of order |
|
|
Data#
API#
- zoomy_core.model.models.vam.zeta#
‘Symbol(…)’
- class zoomy_core.model.models.vam.VAM(init_functions=True, **params)#
Bases:
zoomy_core.model.basemodel.ModelNon-hydrostatic vertically-averaged moment equations of order
level; u, w and the non-hydrostatic pressure share the modal basis.The pressure modes are Lagrange multipliers of the divergence constraints; the predictor keeps the SWE hyperbolic structure.
The stress is truncated by order from the non-dimensional balance laws (
scaling), by default in the regimeFr, De = O(1)(thesis eq. (fr-de)) at the orders (horizontal 0, vertical 2),Stress.full(2, 2): the vertical row keeps the depth-averaged-d_x tau_xz / rho = -nu d_x d_z u(eps^2 / De, the order of the vertical inertia VAM keeps).VAMWeakViscosityis the weak-viscosity limit1/De = O(eps), which drops it (ANALYSIS 49, 63).References
Escalante et al. 2024, https://doi.org/10.1016/j.jcp.2024.112882
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(…)’
- stress#
‘OptionParam(…)’
- scaling#
‘Parameter(…)’
- closures#
‘List(…)’
- small_slope#
‘Boolean(…)’
- default_scaling()#
The truncation without a
scalingsetting: regimeFr, De = O(1), orders (horizontal 0, vertical 2), withStress.full(2, 2).
- derive_model()#
Build the declarative VAM model (sigma-map, projected mass, horizontal and vertical momentum, closures) and its 3-D projection rows; called by the base
__init__.
- chorin_split(dt=None, *, system_model=None)#
Split the lifted system into the Chorin predictor, pressure and corrector sub-systems
(SM_pred, SM_press, SM_corr), with row roles read structurally off the operators.Args
dt: time step symbol; defaults to a fresh positivedtthat the solver renames.system_model: an already configured SystemModel; attach ICs/BCs before the split and re-attach BCs onSM_predafter.
References
Chorin 1968, https://doi.org/10.1090/S0025-5718-1968-0242392-2
- class zoomy_core.model.models.vam.VAMWeakViscosity(init_functions=True, **params)#
Bases:
zoomy_core.model.models.vam.VAMVAMin the weak-viscosity limit1/De = O(eps)with the slipk_l = O(eps^2), orders (horizontal 1, vertical 2): the vertical row keeps no stress (it is eps^3), the horizontal rows the vertical shear. The VAM of the thesis results (its reductions table: VAM is1/De -> 0); at nu = 0 its numbers areVAM’s. Takes bulk closures that give only the vertical shear (Elder, calibrated eddy viscosities), whichVAMrefuses.Stress.fullkeeps nothing more at these orders and is refused (ANALYSIS 49, 63).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.
- default_scaling()#
Regime
1/De = O(eps), the bed drag at the order of the shear (k_l = O(eps^2), ManningC_n = O(eps)), orders (horizontal 1, vertical 2).