MOM_verticalGrid module reference

Provides a transparent vertical ocean grid type and supporting routines

Data Types

verticalGrid_type

Describes the vertical ocean grid, including unit conversion factors

Functions/Subroutines

verticalGridInit

Allocates and initializes the ocean model vertical grid structure.

get_thickness_units

Returns the model's thickness units, usually m or kg/m^2.

get_flux_units

Returns the model's thickness flux units, usually m^3/s or kg/s.

get_tr_flux_units

Returns the model's tracer flux units.

setVerticalGridAxes

This sets the coordinate data for the "layer mode" of the isopycnal model.

verticalGridEnd

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
Callees of mom_verticalgrid::verticalgridinit calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_verticalgrid MOM_verticalGrid mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_param log_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_verticalgrid::verticalgridinit verticalGridInit mom_verticalgrid::verticalgridinit->mom_error_handler::mom_error mom_verticalgrid::verticalgridinit->mom_file_parser::interface::get_param mom_verticalgrid::verticalgridinit->mom_file_parser::interface::log_param mom_verticalgrid::verticalgridinit->mom_file_parser::interface::log_version
Text view
Callers call graph
Callers of mom_verticalgrid::verticalgridinit calls cluster_mom MOM cluster_mom_oda_driver_mod MOM_oda_driver_mod cluster_mom_verticalgrid MOM_verticalGrid mom::initialize_mom initialize_MOM mom_verticalgrid::verticalgridinit verticalGridInit mom::initialize_mom->mom_verticalgrid::verticalgridinit mom_oda_driver_mod::init_oda init_oda mom_oda_driver_mod::init_oda->mom_verticalgrid::verticalgridinit
Text view
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
Callers of mom_verticalgrid::get_thickness_units calls cluster_mom MOM cluster_mom_ale MOM_ALE cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diagnostics MOM_diagnostics cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 cluster_mom_geothermal MOM_geothermal cluster_mom_mixed_layer_restrat MOM_mixed_layer_restrat cluster_mom_oda_incupd MOM_oda_incupd cluster_mom_offline_main MOM_offline_main cluster_mom_set_visc MOM_set_visc cluster_mom_verticalgrid MOM_verticalGrid mom::register_diags register_diags [private/internal] mom_verticalgrid::get_thickness_units get_thickness_units mom::register_diags->mom_verticalgrid::get_thickness_units mom::set_restart_fields set_restart_fields [private/internal] mom::set_restart_fields->mom_verticalgrid::get_thickness_units mom_ale::ale_register_diags ALE_register_diags mom_ale::ale_register_diags->mom_verticalgrid::get_thickness_units mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_diabatic_driver::diabatic_driver_init->mom_verticalgrid::get_thickness_units mom_diagnostics::mom_diagnostics_init MOM_diagnostics_init mom_diagnostics::mom_diagnostics_init->mom_verticalgrid::get_thickness_units mom_diagnostics::register_transport_diags register_transport_diags mom_diagnostics::register_transport_diags->mom_verticalgrid::get_thickness_units mom_dynamics_split_rk2::initialize_dyn_split_rk2 initialize_dyn_split_RK2 mom_dynamics_split_rk2::initialize_dyn_split_rk2->mom_verticalgrid::get_thickness_units mom_dynamics_split_rk2::register_restarts_dyn_split_rk2 register_restarts_dyn_split_RK2 mom_dynamics_split_rk2::register_restarts_dyn_split_rk2->mom_verticalgrid::get_thickness_units mom_dynamics_split_rk2b::initialize_dyn_split_rk2b initialize_dyn_split_RK2b mom_dynamics_split_rk2b::initialize_dyn_split_rk2b->mom_verticalgrid::get_thickness_units mom_dynamics_split_rk2b::register_restarts_dyn_split_rk2b register_restarts_dyn_split_RK2b mom_dynamics_split_rk2b::register_restarts_dyn_split_rk2b->mom_verticalgrid::get_thickness_units mom_dynamics_unsplit::register_restarts_dyn_unsplit register_restarts_dyn_unsplit mom_dynamics_unsplit::register_restarts_dyn_unsplit->mom_verticalgrid::get_thickness_units mom_dynamics_unsplit_rk2::register_restarts_dyn_unsplit_rk2 register_restarts_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::register_restarts_dyn_unsplit_rk2->mom_verticalgrid::get_thickness_units mom_geothermal::geothermal_init geothermal_init mom_geothermal::geothermal_init->mom_verticalgrid::get_thickness_units mom_mixed_layer_restrat::mixedlayer_restrat_register_restarts mixedlayer_restrat_register_restarts mom_mixed_layer_restrat::mixedlayer_restrat_register_restarts->mom_verticalgrid::get_thickness_units mom_oda_incupd::init_oda_incupd_diags init_oda_incupd_diags mom_oda_incupd::init_oda_incupd_diags->mom_verticalgrid::get_thickness_units mom_oda_incupd::output_oda_incupd_inc output_oda_incupd_inc mom_oda_incupd::output_oda_incupd_inc->mom_verticalgrid::get_thickness_units mom_offline_main::register_diags_offline_transport register_diags_offline_transport mom_offline_main::register_diags_offline_transport->mom_verticalgrid::get_thickness_units mom_set_visc::set_visc_register_restarts set_visc_register_restarts mom_set_visc::set_visc_register_restarts->mom_verticalgrid::get_thickness_units
Text view
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
Callers of mom_verticalgrid::get_flux_units calls cluster_mom MOM cluster_mom_diagnostics MOM_diagnostics cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 cluster_mom_verticalgrid MOM_verticalGrid mom::set_restart_fields set_restart_fields [private/internal] mom_verticalgrid::get_flux_units get_flux_units mom::set_restart_fields->mom_verticalgrid::get_flux_units mom_diagnostics::mom_diagnostics_init MOM_diagnostics_init mom_diagnostics::mom_diagnostics_init->mom_verticalgrid::get_flux_units mom_dynamics_split_rk2::initialize_dyn_split_rk2 initialize_dyn_split_RK2 mom_dynamics_split_rk2::initialize_dyn_split_rk2->mom_verticalgrid::get_flux_units mom_dynamics_split_rk2::register_restarts_dyn_split_rk2 register_restarts_dyn_split_RK2 mom_dynamics_split_rk2::register_restarts_dyn_split_rk2->mom_verticalgrid::get_flux_units mom_dynamics_split_rk2b::initialize_dyn_split_rk2b initialize_dyn_split_RK2b mom_dynamics_split_rk2b::initialize_dyn_split_rk2b->mom_verticalgrid::get_flux_units mom_dynamics_split_rk2b::register_restarts_dyn_split_rk2b register_restarts_dyn_split_RK2b mom_dynamics_split_rk2b::register_restarts_dyn_split_rk2b->mom_verticalgrid::get_flux_units mom_dynamics_unsplit::initialize_dyn_unsplit initialize_dyn_unsplit mom_dynamics_unsplit::initialize_dyn_unsplit->mom_verticalgrid::get_flux_units mom_dynamics_unsplit::register_restarts_dyn_unsplit register_restarts_dyn_unsplit mom_dynamics_unsplit::register_restarts_dyn_unsplit->mom_verticalgrid::get_flux_units mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 initialize_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2->mom_verticalgrid::get_flux_units mom_dynamics_unsplit_rk2::register_restarts_dyn_unsplit_rk2 register_restarts_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::register_restarts_dyn_unsplit_rk2->mom_verticalgrid::get_flux_units
Text view
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.

Callees call graph
Callees of mom_verticalgrid::get_tr_flux_units calls cluster_mom_error_handler MOM_error_handler cluster_mom_verticalgrid MOM_verticalGrid mom_error_handler::mom_error MOM_error mom_verticalgrid::get_tr_flux_units get_tr_flux_units mom_verticalgrid::get_tr_flux_units->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_verticalgrid::get_tr_flux_units calls cluster_mom MOM cluster_mom_verticalgrid MOM_verticalGrid mom::initialize_mom initialize_MOM mom_verticalgrid::get_tr_flux_units get_tr_flux_units mom::initialize_mom->mom_verticalgrid::get_tr_flux_units
Text view
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
Callers of mom_verticalgrid::setverticalgridaxes calls cluster_mom_coord_initialization MOM_coord_initialization cluster_mom_verticalgrid MOM_verticalGrid mom_coord_initialization::mom_initialize_coord MOM_initialize_coord mom_verticalgrid::setverticalgridaxes setVerticalGridAxes mom_coord_initialization::mom_initialize_coord->mom_verticalgrid::setverticalgridaxes
Text view
subroutine verticalGridEnd(GV)

Deallocates the model's vertical grid structure.

Parameters
  • GV

    The ocean's vertical grid structure

Callers call graph
Callers of mom_verticalgrid::verticalgridend calls cluster_mom MOM cluster_mom_verticalgrid MOM_verticalGrid mom::mom_end MOM_end mom_verticalgrid::verticalgridend verticalGridEnd mom::mom_end->mom_verticalgrid::verticalgridend
Text view
API generated with Flint · Rendered from reStructuredText