MOM_CVMix_shear module reference
Interface to CVMix interior shear schemes
Data Types
Control structure including parameters for CVMix interior shear schemes. |
Functions/Subroutines
Subroutine for calculating (internal) vertical diffusivities/viscosities |
|
Initialized the CVMix internal shear mixing routine. |
|
Reads the parameters "USE_LMD94" and "USE_PP81" and returns true if either is true. This function allows other modules to know whether this parameterization will be used without needing to duplicate the log entry. |
|
Clear pointers and deallocate memory |
Type Documentation
- type, public :: CVMix_shear_cs
Control structure including parameters for CVMix interior shear schemes.
- Parameters
use_LMD94
Flags to use the LMD94 scheme
use_PP81
Flags to use Pacanowski and Philander (JPO 1981)
n_smooth_ri
Number of times to smooth Ri using a 1-2-1 filter
Ri_zero
LMD94 critical Richardson number [nondim]
Nu_zero
LMD94 maximum interior diffusivity [Z2 T-1 ~> m2 s-1]
Prandtl
The turbulent Prandtl number to be used in the CVMIX shear mixing [nondim]
KPP_exp
Exponent of unitless factor of diffusivities for KPP internal shear mixing scheme [nondim]
N2
Squared Brunt-Vaisala frequency [T-2 ~> s-2]
S2
Squared shear frequency [T-2 ~> s-2]
ri_grad
Gradient Richardson number [nondim]
ri_grad_orig
Gradient Richardson number after smoothing [nondim]
Mix_Scheme
Mixing scheme name (string)
id_N2
Diagnostic handles
id_S2
Diagnostic handles
id_ri_grad
Diagnostic handles
id_kv
Diagnostic handles
id_kd
Diagnostic handles
id_ri_grad_orig
Diagnostic handles
Functions/Subroutine Documentation
- subroutine calculate_CVMix_shear(u_H, v_H, h, tv, kd, kv, G, GV, US, CS)
Subroutine for calculating (internal) vertical diffusivities/viscosities
- Parameters
G [in]
Grid structure.
GV [in]
Vertical grid structure.
US [in]
A dimensional unit scaling type
u_H [in]
Initial zonal velocity on T points [L T-1 ~> m s-1]
v_H [in]
Initial meridional velocity on T points [L T-1 ~> m s-1]
h [in]
Layer thickness [H ~> m or kg m-2].
tv [in]
Thermodynamics structure.
kd [out]
The vertical diffusivity at each interface (not layer!) [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
kv [out]
The vertical viscosity at each interface (not layer!) [H Z T-1 ~> m2 s-1 or Pa s]
CS
The control structure returned by a previous call to CVMix_shear_init.
Ri_Grad
Gradient Richardson number [nondim]
Ri_Grad_prev
Gradient Richardson number before s.th smoothing iteration [nondim]
Kvisc
Vertical viscosity at interfaces [m2 s-1]
Kdiff
Diapycnal diffusivity at interfaces [m2 s-1]
epsln
Threshold to identify vanished layers [H ~> m or kg m-2]
Callees call graph
Callers call graph
External calls
- cvmix_shear
CVMix_coeffs_shear (cvmix_shear::cvmix_coeffs_shear)
- logical function CVMix_shear_init(Time, G, GV, US, param_file, diag, CS)
Initialized the CVMix internal shear mixing routine.
Todo: Does this note require emphasis?
Note: *This is where we test to make sure multiple internal shear mixing routines (including JHL) are not enabled at the same time.* (returns) CVMix_shear_init - True if module is to be used, False otherwise
- Parameters
Time [in]
The current time.
G [in]
Grid structure.
GV [in]
Vertical grid structure.
US [in]
A dimensional unit scaling type
param_file [in]
Run-time parameter file handle
diag [inout]
Diagnostics control structure.
CS
This module's control structure.
Callees call graph
Text view
mom_cvmix_shear::cvmix_shear_init → mom_diag_mediator::register_diag_field
mom_cvmix_shear::cvmix_shear_init → mom_error_handler::mom_error
mom_cvmix_shear::cvmix_shear_init → mom_file_parser::interface::get_param
mom_cvmix_shear::cvmix_shear_init → mom_file_parser::interface::log_version
mom_cvmix_shear::cvmix_shear_init → mom_kappa_shear::kappa_shear_is_used
Callers call graph
External calls
- cvmix_shear
cvmix_init_shear (cvmix_shear::cvmix_init_shear)
- logical function CVMix_shear_is_used(param_file)
Reads the parameters "USE_LMD94" and "USE_PP81" and returns true if either is true. This function allows other modules to know whether this parameterization will be used without needing to duplicate the log entry.
- Parameters
param_file [in]
Run-time parameter files handle.
Callees call graph
- subroutine CVMix_shear_end(CS)
Clear pointers and deallocate memory
- Parameters
CS [inout]
Control structure for this module that will be deallocated in this subroutine