MOM_verticalGrid module reference
Provides a transparent vertical ocean grid type and supporting routines
Data Types
Describes the vertical ocean grid, including unit conversion factors |
Functions/Subroutines
Allocates and initializes the ocean model vertical grid structure. |
|
Returns the model's thickness units, usually m or kg/m^2. |
|
Returns the model's thickness flux units, usually m^3/s or kg/s. |
|
Returns the model's tracer flux units. |
|
This sets the coordinate data for the "layer mode" of the isopycnal model. |
|
Deallocates the model's vertical grid structure. |
Type Documentation
- type, public :: verticalGrid_type
Describes the vertical ocean grid, including unit conversion factors
- Parameters
ke
The number of layers/levels in the vertical
max_depth
The maximum depth of the ocean [Z ~> m].
g_Earth
The gravitational acceleration [L2 Z-1 T-2 ~> m s-2].
g_Earth_Z_T2
The gravitational acceleration in alternatively rescaled units [Z T-2 ~> m s-2]
Rho0
The density used in the Boussinesq approximation or nominal density used to convert depths into mass units [R ~> kg m-3].
zAxisUnits
The units that vertical coordinates are written in
zAxisLongName
Coordinate name to appear in files, e.g. "Target Potential Density" or "Height"
sLayer
Coordinate values of layer centers, in unscaled units that depend on the vertical coordinate, such as [kg m-3] for an isopycnal or some hybrid coordinates, [m] for a Z* coordinate, or [nondim] for a sigma coordinate.
sInterface
Coordinate values on interfaces, in the same unscale units as sLayer [various].
direction
Direction defaults to 1, positive up.
Boussinesq
If true, make the Boussinesq approximation.
semi_Boussinesq
If true, do non-Boussinesq pressure force calculations and use mass-based "thicknesses, but use Rho0 to convert layer thicknesses into certain height changes. This only applies if BOUSSINESQ is false.
Angstrom_H
A one-Angstrom thickness in the model thickness units [H ~> m or kg m-2].
Angstrom_Z
A one-Angstrom thickness in the model depth units [Z ~> m].
Angstrom_m
A one-Angstrom thickness [m].
H_subroundoff
A thickness that is so small that it can be added to a thickness of Angstrom or larger without changing it at the bit level [H ~> m or kg m-2]. If Angstrom is 0 or exceedingly small, this is negligible compared to 1e-17 m.
dZ_subroundoff
A thickness in height units that is so small that it can be added to a vertical distance of Angstrom_Z or 1e-17 m without changing it at the bit level [Z ~> m]. This is the height equivalent of H_subroundoff.
g_prime
The reduced gravity at each interface [L2 Z-1 T-2 ~> m s-2].
Rlay
The target coordinate value (potential density) in each layer [R ~> kg m-3].
nkml
The number of layers at the top that should be treated as parts of a homogeneous region.
nk_rho_varies
The number of layers at the top where the density does not track any target density.
H_to_kg_m2
A constant that translates thicknesses from the units of thickness to kg m-2 [kg m-2 H-1 ~> kg m-3 or 1].
kg_m2_to_H
A constant that translates thicknesses from kg m-2 to the units of thickness [H m2 kg-1 ~> m3 kg-1 or 1].
m_to_H
A constant that translates distances in m to the units of thickness [H m-1 ~> 1 or kg m-3].
H_to_m
A constant that translates distances in the units of thickness to m [m H-1 ~> 1 or m3 kg-1].
H_to_Pa
A constant that translates the units of thickness to pressure [Pa H-1 ~> kg m-2 s-2 or m s-2].
H_to_Z
A constant that translates thickness units to the units of depth [Z H-1 ~> 1 or m3 kg-1].
Z_to_H
A constant that translates depth units to thickness units depth [H Z-1 ~> 1 or kg m-3].
H_to_RZ
A constant that translates thickness units to the units of mass per unit area [R Z H-1 ~> kg m-3 or 1].
RZ_to_H
A constant that translates mass per unit area units to thickness units [H R-1 Z-1 ~> m3 kg-2 or 1].
H_to_MKS
A constant that translates thickness units to its MKS unit (m or kg m-2) based on GV%Boussinesq [m H-1 ~> 1] or [kg m-2 H-1 ~> 1]
m2_s_to_HZ_T
The combination of conversion factors that converts kinematic viscosities in m2 s-1 to the internal units of the kinematic (in Boussinesq mode) or dynamic viscosity [H Z s T-1 m-2 ~> 1 or kg m-3]
HZ_T_to_m2_s
The combination of conversion factors that converts the viscosities from their internal representation into a kinematic viscosity in m2 s-1 [T m2 H-1 Z-1 s-1 ~> 1 or m3 kg-1]
HZ_T_to_MKS
The combination of conversion factors that converts the viscosities from their internal representation into their unnscaled MKS units (m2 s-1 or Pa s), depending on whether the model is Boussinesq [T m2 H-1 Z-1 s-1 ~> 1] or [T Pa s H-1 Z-1 ~> 1]
Functions/Subroutine Documentation
- subroutine verticalGridInit(param_file, GV, US)
Allocates and initializes the ocean model vertical grid structure.
- Parameters
param_file [in]
Parameter file handle/type
GV
The container for vertical grid data
US [in]
A dimensional unit scaling type
Callees call graph
Text view
Callers call graph
- function get_thickness_units(GV)
Returns the model's thickness units, usually m or kg/m^2.
- Parameters
get_thickness_units
The vertical thickness units
GV [in]
The ocean's vertical grid structure
Callers call graph
Text view
mom::set_restart_fields → mom_verticalgrid::get_thickness_units
mom_ale::ale_register_diags → mom_verticalgrid::get_thickness_units
mom_diabatic_driver::diabatic_driver_init → mom_verticalgrid::get_thickness_units
mom_diagnostics::mom_diagnostics_init → mom_verticalgrid::get_thickness_units
mom_diagnostics::register_transport_diags → mom_verticalgrid::get_thickness_units
mom_dynamics_split_rk2::initialize_dyn_split_rk2 → mom_verticalgrid::get_thickness_units
mom_dynamics_split_rk2::register_restarts_dyn_split_rk2 → mom_verticalgrid::get_thickness_units
mom_dynamics_split_rk2b::initialize_dyn_split_rk2b → mom_verticalgrid::get_thickness_units
mom_dynamics_split_rk2b::register_restarts_dyn_split_rk2b → mom_verticalgrid::get_thickness_units
mom_dynamics_unsplit::register_restarts_dyn_unsplit → mom_verticalgrid::get_thickness_units
mom_dynamics_unsplit_rk2::register_restarts_dyn_unsplit_rk2 → mom_verticalgrid::get_thickness_units
mom_geothermal::geothermal_init → mom_verticalgrid::get_thickness_units
mom_mixed_layer_restrat::mixedlayer_restrat_register_restarts → mom_verticalgrid::get_thickness_units
mom_oda_incupd::init_oda_incupd_diags → mom_verticalgrid::get_thickness_units
mom_oda_incupd::output_oda_incupd_inc → mom_verticalgrid::get_thickness_units
mom_offline_main::register_diags_offline_transport → mom_verticalgrid::get_thickness_units
mom_set_visc::set_visc_register_restarts → mom_verticalgrid::get_thickness_units
- function get_flux_units(GV)
Returns the model's thickness flux units, usually m^3/s or kg/s.
- Parameters
get_flux_units
The thickness flux units
GV [in]
The ocean's vertical grid structure
Callers call graph
Text view
mom_diagnostics::mom_diagnostics_init → mom_verticalgrid::get_flux_units
mom_dynamics_split_rk2::initialize_dyn_split_rk2 → mom_verticalgrid::get_flux_units
mom_dynamics_split_rk2::register_restarts_dyn_split_rk2 → mom_verticalgrid::get_flux_units
mom_dynamics_split_rk2b::initialize_dyn_split_rk2b → mom_verticalgrid::get_flux_units
mom_dynamics_split_rk2b::register_restarts_dyn_split_rk2b → mom_verticalgrid::get_flux_units
mom_dynamics_unsplit::initialize_dyn_unsplit → mom_verticalgrid::get_flux_units
mom_dynamics_unsplit::register_restarts_dyn_unsplit → mom_verticalgrid::get_flux_units
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_verticalgrid::get_flux_units
mom_dynamics_unsplit_rk2::register_restarts_dyn_unsplit_rk2 → mom_verticalgrid::get_flux_units
- function get_tr_flux_units(GV, tr_units, tr_vol_conc_units, tr_mass_conc_units)
Returns the model's tracer flux units.
- Parameters
get_tr_flux_units
The model's flux units for a tracer.
GV [in]
The ocean's vertical grid structure.
tr_units [in]
Units for a tracer, for example Celsius or PSU.
tr_vol_conc_units [in]
The concentration units per unit volume, for example if the units are umol m-3, tr_vol_conc_units would be umol.
tr_mass_conc_units [in]
The concentration units per unit mass of sea water, for example if the units are mol kg-1, tr_vol_conc_units would be mol.
- subroutine setVerticalGridAxes(Rlay, GV, scale)
This sets the coordinate data for the "layer mode" of the isopycnal model.
- Parameters
GV [inout]
The container for vertical grid data
Rlay [in]
The layer target density [R ~> kg m-3]
scale [in]
A unit scaling factor for Rlay to convert it into the units of sInterface, usually [kg m-3 R-1 ~> 1] when used in layer mode.
Callers call graph
- subroutine verticalGridEnd(GV)
Deallocates the model's vertical grid structure.
- Parameters
GV
The ocean's vertical grid structure