MOM_CVMix_ddiff module reference
Interface to CVMix double diffusion scheme.
Data Types
Control structure including parameters for CVMix double diffusion. |
Functions/Subroutines
Initialized the CVMix double diffusion module. |
|
Subroutine for computing vertical diffusion coefficients for the double diffusion mixing parameterization. |
|
Reads the parameter "USE_CVMIX_DDIFF" and returns state. 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_ddiff_cs
Control structure including parameters for CVMix double diffusion.
- Parameters
strat_param_max
maximum value for the stratification parameter [nondim]
kappa_ddiff_s
leading coefficient in formula for salt-fingering regime for salinity diffusion [Z2 T-1 ~> m2 s-1]
ddiff_exp1
interior exponent in salt-fingering regime formula [nondim]
ddiff_exp2
exterior exponent in salt-fingering regime formula [nondim]
mol_diff
molecular diffusivity [Z2 T-1 ~> m2 s-1]
kappa_ddiff_param1
exterior coefficient in diffusive convection regime [nondim]
kappa_ddiff_param2
middle coefficient in diffusive convection regime [nondim]
kappa_ddiff_param3
interior coefficient in diffusive convection regime [nondim]
min_thickness
Minimum thickness allowed [H ~> m or kg m-2]
diff_conv_type
type of diffusive convection to use. Options are Marmorino & Caldwell 1976 ("MC76"; default) and Kelley 1988, 1990 ("K90")
debug
If true, turn on debugging
Functions/Subroutine Documentation
- logical function CVMix_ddiff_init(Time, G, GV, US, param_file, diag, CS)
Initialized the CVMix double diffusion module.
- 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_ddiff::cvmix_ddiff_init → mom_error_handler::mom_error
mom_cvmix_ddiff::cvmix_ddiff_init → mom_file_parser::closeparameterblock
mom_cvmix_ddiff::cvmix_ddiff_init → mom_file_parser::interface::get_param
mom_cvmix_ddiff::cvmix_ddiff_init → mom_file_parser::interface::log_version
mom_cvmix_ddiff::cvmix_ddiff_init → mom_file_parser::openparameterblock
Callers call graph
External calls
- cvmix_ddiff
cvmix_init_ddiff (cvmix_ddiff::cvmix_init_ddiff)
- subroutine compute_ddiff_coeffs(h, tv, G, GV, US, j, Kd_T, Kd_S, CS, R_rho)
Subroutine for computing vertical diffusion coefficients for the double diffusion mixing parameterization.
- Parameters
G [in]
Grid structure.
GV [in]
Vertical grid structure.
h [in]
Layer thickness [H ~> m or kg m-2].
tv [in]
Thermodynamics structure.
US [in]
A dimensional unit scaling type
j [in]
Meridional grid index to work on.
Kd_T [inout]
Interface double diffusion diapycnal diffusivity for temperature [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_S [inout]
Interface double diffusion diapycnal diffusivity for salinity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
CS
The control structure returned by a previous call to CVMix_ddiff_init.
R_rho [inout]
The density ratios at interfaces [nondim].
cellHeight
Height of cell centers relative to the sea surface [H ~> m or kg m-2]
dRho_dT
partial derivatives of density with temperature [R C-1 ~> kg m-3 degC-1]
dRho_dS
partial derivatives of density with salinity [R S-1 ~> kg m-3 ppt-1]
pres_int
pressure at each interface [R L2 T-2 ~> Pa]
temp_int
temp and at interfaces [C ~> degC]
salt_int
salt at at interfaces [S ~> ppt]
alpha_dT
alpha*dT across interfaces [kg m-3]
beta_dS
beta*dS across interfaces [kg m-3]
dT
temperature difference between adjacent layers [C ~> degC]
dS
salinity difference between adjacent layers [S ~> ppt]
Kd1_T
Diapycanal diffusivity of temperature [m2 s-1].
Kd1_S
Diapycanal diffusivity of salinity [m2 s-1].
iFaceHeight
Height of interfaces relative to the sea surface [H ~> m or kg m-2]
Callees call graph
Callers call graph
External calls
- cvmix_ddiff
CVMix_coeffs_ddiff (cvmix_ddiff::cvmix_coeffs_ddiff)
- logical function CVMix_ddiff_is_used(param_file)
Reads the parameter "USE_CVMIX_DDIFF" and returns state. This function allows other modules to know whether this parameterization will be used without needing to duplicate the log entry.
- Parameters
param_file [in]
A structure to parse for run-time parameters
Callees call graph
Callers call graph
- subroutine CVMix_ddiff_end(CS)
Clear pointers and deallocate memory
- Parameters
CS
Control structure for this module that will be deallocated in this subroutine