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
Control structure containing required parameters for the hybgen coordinate generator |
Functions/Subroutines
Initialise a hybgen_unmix_CS control structure and store its parameters |
|
This subroutine deallocates memory in the control structure for the hybgen unmixing module |
|
This subroutine can be used to set the parameters for the hybgen module |
|
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. |
|
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
- subroutine end_hybgen_unmix(CS)
This subroutine deallocates memory in the control structure for the hybgen unmixing module
- Parameters
CS
Coordinate control structure
- 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
- 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
Text view
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_hybgen_unmix::hybgen_unmix → mom_interface_heights::calc_derived_thermo
- 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]