MOM_diagnose_mld module reference
Provides functions for some diabatic processes such as fraxil, brine rejection, tendency due to surface flux divergence.
Functions/Subroutines
Diagnose a mixed layer depth (MLD) determined by a given density difference with the surface. This routine is appropriate in MOM_diabatic_aux due to its position within the time stepping. |
|
Diagnose a mixed layer depth (MLD) determined by the depth a given energy value would mix. This routine is appropriate in MOM_diabatic_aux due to its position within the time stepping. |
Detailed Description
This module contains subroutines that apply various diabatic processes. Usually these subroutines are called from the MOM_diabatic module. All of these routines use appropriate limiters or logic to work properly with arbitrary layer thicknesses (including massless layers) and an arbitrarily large timestep.
The subroutine diagnoseMLDbyDensityDifference diagnoses a mixed layer depth based on a density difference criterion, and may also estimate the stratification of the water below this diagnosed mixed layer.
The subroutine diagnoseMLDbyEnergy diagnoses a mixed layer depth based on a mixing-energy criterion, as described by Reichl et al., 2022, JGR: Oceans, doi:10.1029/2021JC018140.
Functions/Subroutine Documentation
- subroutine diagnoseMLDbyDensityDifference(id_MLD, h, tv, densityDiff, G, GV, US, diagPtr, ref_h_mld, id_ref_z, id_ref_rho, id_N2subML, id_MLDsq, dz_subML, MLD_out)
Diagnose a mixed layer depth (MLD) determined by a given density difference with the surface. This routine is appropriate in MOM_diabatic_aux due to its position within the time stepping.
- Parameters
G [in]
Grid type
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
id_MLD [in]
Handle (ID) of MLD diagnostic
h [in]
Layer thickness [H ~> m or kg m-2]
tv [in]
Structure containing pointers to any available thermodynamic fields.
densityDiff [in]
Density difference to determine MLD [R ~> kg m-3]
diagPtr
Diagnostics structure
ref_h_mld [in]
Depth of the calculated "surface" densisty [Z ~> m]
id_ref_z [in]
Handle (ID) of reference depth diagnostic
id_ref_rho [in]
Handle (ID) of reference density diagnostic
id_N2subML [in]
Optional handle (ID) of subML stratification
id_MLDsq [in]
Optional handle (ID) of squared MLD
dz_subML [in]
The distance over which to calculate N2subML or 50 m if missing [Z ~> m]
MLD_out [out]
Send MLD to other routines [Z ~> m]
Callees call graph
Text view
mom_diagnose_mld::diagnosemldbydensitydifference → mom_diag_mediator::interface::post_data
mom_diagnose_mld::diagnosemldbydensitydifference → mom_eos::eos_domain
mom_diagnose_mld::diagnosemldbydensitydifference → mom_eos::interface::calculate_density
mom_diagnose_mld::diagnosemldbydensitydifference → mom_error_handler::mom_error
mom_diagnose_mld::diagnosemldbydensitydifference → mom_interface_heights::interface::thickness_to_dz
Callers call graph
- subroutine diagnoseMLDbyEnergy(id_MLD, h, tv, G, GV, US, Mixing_Energy, k_bounds, diagPtr, OM4_iteration, MLD_out)
Diagnose a mixed layer depth (MLD) determined by the depth a given energy value would mix. This routine is appropriate in MOM_diabatic_aux due to its position within the time stepping.
- Parameters
id_MLD [in]
Energy output diagnostic IDs
G [in]
Grid type
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
Mixing_Energy [in]
Energy values for up to 3 MLDs [R Z3 T-2 ~> J m-2]
h [in]
Layer thickness [H ~> m or kg m-2]
tv [in]
Structure containing pointers to any available thermodynamic fields.
diagPtr
Diagnostics structure
k_bounds [in]
vertical interface bounds to apply calculations
OM4_iteration [in]
Uses a legacy version of the MLD iteration it is kept to reproduce OM4 output
MLD_out [out]
Send MLD to other routines [Z ~> m]