multimodemodel.Parameter#
- class multimodemodel.Parameter(g=9.80665, H=array([1000.]), rho_0=1024.0, a_h=2000.0, gamma_h=None, gamma_v=None, free_slip=True, no_slip=False, coriolis_func=None, on_grid=None, f=None)[source]#
Class to organise all parameters.
The parameters may be constant in space and/or time. Note that the objects compute_f method needs to be called after creation to provide the coriolis parameter on all subgrids of a staggered grid instance.
- Parameters:
g (
float, default9.81) – Gravitational acceleration m/s^2H (
floatorArray, default1000.0) – Depth of the fluid or thickness of the undisturbed layer in mrho_0 (
float, default1024.0) – Reference density of sea water in kg / m^3coriolis_func (
Optional[CoriolisFunc], defaultNone) – Function used to compute the coriolis parameter on each subgrid of a staggered grid. It is called with the y coordinate of the respective grid.on_grid (
StaggeredGrid, defaultNone) – StaggeredGrid object providing the necessary grid information if a parameter depends on space, such as the Coriolis parameter. Only required if such a parameter is part of the system to solve.
- Variables:
f (
dict[str,numpy.ndarray]) – Mapping of the subgrid names (e.g. “u”, “v”, “eta”) to the coriolis parameter on those grids
- __init__(g=9.80665, H=array([1000.]), rho_0=1024.0, a_h=2000.0, gamma_h=None, gamma_v=None, free_slip=True, no_slip=False, coriolis_func=None, on_grid=None, f=None)[source]#
Initialize Parameter object.
Methods
__init__([g, H, rho_0, a_h, gamma_h, ...])Initialize Parameter object.
merge(others, merger)Merge Parameter's spatially varying data.
split(splitter)Split Parameter's spatially dependent data.
Attributes
a_hGetter of the dictionary holding the Coriolis parameter.
free_slipgno_sliprho_0Hgamma_hgamma_v