MOM_hybgen_unmix module reference

This module contains the hybgen unmixing routines from HYCOM, with modifications to follow the MOM6 coding conventions and several bugs fixed

Data Types

hybgen_unmix_CS

Control structure containing required parameters for the hybgen coordinate generator

Functions/Subroutines

init_hybgen_unmix

Initialise a hybgen_unmix_CS control structure and store its parameters

end_hybgen_unmix

This subroutine deallocates memory in the control structure for the hybgen unmixing module

set_hybgen_unmix_params

This subroutine can be used to set the parameters for the hybgen module

hybgen_unmix

Unmix the properties in the lowest layer with mass if it is too light, and make any other changes to the water column to prepare for regridding.

hybgen_column_unmix

Unmix the properties in the lowest layer if it is too light.

Type Documentation

type, public :: hybgen_unmix_CS

Control structure containing required parameters for the hybgen coordinate generator

Parameters
  • nsigma

    Number of sigma levels used by HYBGEN

  • hybiso

    Hybgen uses PCM if layer is within hybiso of target density [R ~> kg m-3]

  • dp00i

    Deep isopycnal spacing minimum thickness [H ~> m or kg m-2]

  • qhybrlx

    Hybgen relaxation amount per thermodynamic time steps [nondim]

  • dp0k

    minimum deep z-layer separation [H ~> m or kg m-2]

  • ds0k

    minimum shallow z-layer separation [H ~> m or kg m-2]

  • dpns

    depth to start terrain following [H ~> m or kg m-2]

  • dsns

    depth to stop terrain following [H ~> m or kg m-2]

  • min_dilate

    The minimum amount of dilation that is permitted when converting target coordinates from z to z* [nondim]. This limit applies when wetting occurs.

  • max_dilate

    The maximum amount of dilation that is permitted when converting target coordinates from z to z* [nondim]. This limit applies when drying occurs.

  • topiso_const

    Shallowest depth for isopycnal layers [H ~> m or kg m-2]

  • ref_pressure

    Reference pressure for density calculations [R L2 T-2 ~> Pa]

  • target_density

    Nominal density of interfaces [R ~> kg m-3]

Functions/Subroutine Documentation

subroutine init_hybgen_unmix(CS, GV, US, param_file, hybgen_regridCS)

Initialise a hybgen_unmix_CS control structure and store its parameters

Parameters
  • CS

    Unassociated pointer to hold the control structure

  • GV [in]

    Ocean vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    Parameter file

  • hybgen_regridCS

    Control structure for hybgen regridding for sharing parameters.

Callees call graph
Callees of mom_hybgen_unmix::init_hybgen_unmix calls cluster_mom_error_handler MOM_error_handler cluster_mom_hybgen_regrid MOM_hybgen_regrid cluster_mom_hybgen_unmix MOM_hybgen_unmix mom_error_handler::mom_error MOM_error mom_hybgen_regrid::get_hybgen_regrid_params get_hybgen_regrid_params mom_hybgen_unmix::init_hybgen_unmix init_hybgen_unmix mom_hybgen_unmix::init_hybgen_unmix->mom_error_handler::mom_error mom_hybgen_unmix::init_hybgen_unmix->mom_hybgen_regrid::get_hybgen_regrid_params
Text view
Callers call graph
Callers of mom_hybgen_unmix::init_hybgen_unmix calls cluster_mom_ale MOM_ALE cluster_mom_hybgen_unmix MOM_hybgen_unmix mom_ale::ale_init ALE_init mom_hybgen_unmix::init_hybgen_unmix init_hybgen_unmix mom_ale::ale_init->mom_hybgen_unmix::init_hybgen_unmix
Text view
subroutine end_hybgen_unmix(CS)

This subroutine deallocates memory in the control structure for the hybgen unmixing module

Parameters
  • CS

    Coordinate control structure

Callers call graph
Callers of mom_hybgen_unmix::end_hybgen_unmix calls cluster_mom_ale MOM_ALE cluster_mom_hybgen_unmix MOM_hybgen_unmix mom_ale::ale_end ALE_end mom_hybgen_unmix::end_hybgen_unmix end_hybgen_unmix mom_ale::ale_end->mom_hybgen_unmix::end_hybgen_unmix
Text view
subroutine set_hybgen_unmix_params(CS, min_thickness)

This subroutine can be used to set the parameters for the hybgen module

Parameters
  • CS

    Coordinate unmixing control structure

  • min_thickness [in]

    Minimum allowed thickness [H ~> m or kg m-2]

Callees call graph
Callees of mom_hybgen_unmix::set_hybgen_unmix_params calls cluster_mom_error_handler MOM_error_handler cluster_mom_hybgen_unmix MOM_hybgen_unmix mom_error_handler::mom_error MOM_error mom_hybgen_unmix::set_hybgen_unmix_params set_hybgen_unmix_params mom_hybgen_unmix::set_hybgen_unmix_params->mom_error_handler::mom_error
Text view
subroutine hybgen_unmix(G, GV, US, CS, tv, Reg, ntr, h)

Unmix the properties in the lowest layer with mass if it is too light, and make any other changes to the water column to prepare for regridding.

Parameters
  • G [in]

    Ocean grid structure

  • GV [in]

    Ocean vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    hybgen control structure

  • tv [inout]

    Thermodynamics structure

  • Reg

    Tracer registry structure

  • ntr [in]

    The number of tracers in the registry, or 0 if the registry is not in use.

  • h [inout]

    Layer thicknesses [H ~> m or kg m-2]

Callees call graph
Callees of mom_hybgen_unmix::hybgen_unmix calls cluster_mom_eos MOM_EOS cluster_mom_error_handler MOM_error_handler cluster_mom_hybgen_regrid MOM_hybgen_regrid cluster_mom_hybgen_unmix MOM_hybgen_unmix cluster_mom_interface_heights MOM_interface_heights mom_eos::interface::calculate_density calculate_density (interface) mom_error_handler::mom_error MOM_error mom_hybgen_regrid::hybgen_column_init hybgen_column_init mom_hybgen_unmix::hybgen_column_unmix hybgen_column_unmix [private/internal] mom_hybgen_unmix::hybgen_unmix hybgen_unmix mom_hybgen_unmix::hybgen_unmix->mom_eos::interface::calculate_density mom_hybgen_unmix::hybgen_unmix->mom_error_handler::mom_error mom_hybgen_unmix::hybgen_unmix->mom_hybgen_regrid::hybgen_column_init mom_hybgen_unmix::hybgen_unmix->mom_hybgen_unmix::hybgen_column_unmix mom_interface_heights::calc_derived_thermo calc_derived_thermo mom_hybgen_unmix::hybgen_unmix->mom_interface_heights::calc_derived_thermo
Text view
Callers call graph
Callers of mom_hybgen_unmix::hybgen_unmix calls cluster_mom_ale MOM_ALE cluster_mom_hybgen_unmix MOM_hybgen_unmix mom_ale::pre_ale_adjustments pre_ALE_adjustments mom_hybgen_unmix::hybgen_unmix hybgen_unmix mom_ale::pre_ale_adjustments->mom_hybgen_unmix::hybgen_unmix
Text view
subroutine hybgen_column_unmix(CS, nk, Rcv_tgt, temp, saln, Rcv, eqn_of_state, ntr, tracer, trcflg, fixlay, qhrlx, h_col, terrain_following, h_thin)

Unmix the properties in the lowest layer if it is too light.

Parameters
  • CS [in]

    hybgen unmixing control structure

  • nk [in]

    The number of layers

  • fixlay [in]

    deepest fixed coordinate layer

  • qhrlx [in]

    Relaxation fraction per timestep [nondim], < 1.

  • Rcv_tgt [in]

    Target potential density [R ~> kg m-3]

  • temp [inout]

    A column of potential temperature [C ~> degC]

  • saln [inout]

    A column of salinity [S ~> ppt]

  • Rcv [inout]

    Coordinate potential density [R ~> kg m-3]

  • eqn_of_state [in]

    Equation of state structure

  • ntr [in]

    The number of registered passive tracers

  • tracer [inout]

    Columns of the passive tracers [Conc]

  • trcflg [in]

    Hycom tracer type flag for each tracer

  • h_col [inout]

    Layer thicknesses [H ~> m or kg m-2]

  • terrain_following [in]

    True if this column is terrain following

  • h_thin [in]

    A negligibly small thickness to identify essentially vanished layers [H ~> m or kg m-2]

Callees call graph
Callees of mom_hybgen_unmix::hybgen_column_unmix calls cluster_mom_eos MOM_EOS cluster_mom_hybgen_unmix MOM_hybgen_unmix mom_eos::interface::calculate_density calculate_density (interface) mom_eos::interface::calculate_density_derivs calculate_density_derivs (interface) mom_hybgen_unmix::hybgen_column_unmix hybgen_column_unmix [private/internal] mom_hybgen_unmix::hybgen_column_unmix->mom_eos::interface::calculate_density mom_hybgen_unmix::hybgen_column_unmix->mom_eos::interface::calculate_density_derivs
Text view
Callers call graph
Callers of mom_hybgen_unmix::hybgen_column_unmix calls cluster_mom_hybgen_unmix MOM_hybgen_unmix mom_hybgen_unmix::hybgen_column_unmix hybgen_column_unmix [private/internal] mom_hybgen_unmix::hybgen_unmix hybgen_unmix mom_hybgen_unmix::hybgen_unmix->mom_hybgen_unmix::hybgen_column_unmix
Text view
API generated with Flint · Rendered from reStructuredText