zoomy_core.model.models.vam

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#

VAM

Non-hydrostatic vertically-averaged moment equations of order level; u, w and the non-hydrostatic pressure share the modal basis.

VAMWeakViscosity

VAM in the weak-viscosity limit 1/De = O(eps) with the slip k_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 is 1/De -> 0); at nu = 0 its numbers are VAM’s. Takes bulk closures that give only the vertical shear (Elder, calibrated eddy viscosities), which VAM refuses. Stress.full keeps nothing more at these orders and is refused (ANALYSIS 49, 63).

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.Model

Non-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 regime Fr, 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). VAMWeakViscosity is the weak-viscosity limit 1/De = O(eps), which drops it (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.

level#

‘Integer(…)’

dimension#

‘Integer(…)’

stress#

‘OptionParam(…)’

scaling#

‘Parameter(…)’

closures#

‘List(…)’

small_slope#

‘Boolean(…)’

default_scaling()#

The truncation without a scaling setting: regime Fr, De = O(1), orders (horizontal 0, vertical 2), with Stress.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 positive dt that the solver renames.

  • system_model: an already configured SystemModel; attach ICs/BCs before the split and re-attach BCs on SM_pred after.

References

class zoomy_core.model.models.vam.VAMWeakViscosity(init_functions=True, **params)#

Bases: zoomy_core.model.models.vam.VAM

VAM in the weak-viscosity limit 1/De = O(eps) with the slip k_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 is 1/De -> 0); at nu = 0 its numbers are VAM’s. Takes bulk closures that give only the vertical shear (Elder, calibrated eddy viscosities), which VAM refuses. Stress.full keeps 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), Manning C_n = O(eps)), orders (horizontal 1, vertical 2).