MOM_set_diffusivity module reference
Calculate vertical diffusivity from all mixing processes
Data Types
This control structure contains parameters for MOM_set_diffusivity. |
|
This structure has memory for used in calculating diagnostics of diffusivity |
Functions/Subroutines
Convert turbulent kinetic energy to diffusivity |
|
Calculate Brunt-Vaisala frequency, N^2. |
|
This subroutine sets the additional diffusivities of temperature and salinity due to double diffusion, using the same functional form as is used in MOM4.1, and taken from the appendix of Danabasoglu et al. (2006), which updates what was in Large et al. (1994). All the coefficients here should probably be made run-time variables rather than hard-coded constants. |
|
This routine adds diffusion sustained by flow energy extracted by bottom drag. |
|
Calculates a BBL diffusivity use a Prandtl number 1 diffusivity with a law of the wall turbulent viscosity, up to a BBL height where the energy used for mixing has consumed the mechanical TKE input. |
|
This routine adds effects of mixed layer radiation to the layer diffusivities. |
|
This subroutine calculates several properties related to bottom boundary layer turbulence. |
|
Clear pointers and deallocate memory |
Type Documentation
- type, public :: set_diffusivity_CS
This control structure contains parameters for MOM_set_diffusivity.
- Parameters
initialized
True if this control structure has been initialized.
debug
If true, write verbose checksums for debugging.
bulkmixedlayer
If true, a refined bulk mixed layer is used with GV%nk_rho_varies variable density mixed & buffer layers.
FluxRi_max
The flux Richardson number where the stratification is large enough that N2 > omega2 [nondim]. The full expression for the Flux Richardson number is usually FLUX_RI_MAX*N2/(N2+OMEGA2). The default is 0.2.
bottomdraglaw
If true, the bottom stress is calculated with a drag law c_drag*|u|*u.
BBL_mixing_as_max
If true, take the maximum of the diffusivity from the BBL mixing and the other diffusivities. Otherwise, diffusivities from the BBL_mixing is added.
use_LOTW_BBL_diffusivity
If true, use simpler/less precise, BBL diffusivity.
LOTW_BBL_use_omega
If true, use simpler/less precise, BBL diffusivity.
Von_Karm
The von Karman constant as used in the BBL diffusivity calculation [nondim]. See (http://en.wikipedia.org/wiki/Von_Karman_constant)
BBL_effic
Efficiency with which the energy extracted by bottom drag drives BBL diffusion in the original BBL scheme, times conversion factors between the natural units of mean kinetic energy and those those used for TKE [Z2 L-2 ~> nondim].
ePBL_BBL_effic
efficiency with which the energy extracted by bottom drag drives BBL diffusion in the ePBL BBL scheme [nondim]
ePBL_BBL_mstar
logical if the bottom boundary layer uses an mstar x ustar^3 formulation needed here to know whether or not to populate the bottom ustar
cdrag
quadratic drag coefficient [nondim]
dz_BBL_avg_min
A minimal distance over which to average to determine the average bottom boundary layer density [Z ~> m]
IMax_decay
Inverse of a maximum decay scale for bottom-drag driven turbulence [H-1 ~> m-1 or m2 kg-1].
Kv
The interior vertical viscosity [H Z T-1 ~> m2 s-1 or Pa s]
Kd
interior diapycnal diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_min
minimum diapycnal diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_max
maximum increment for diapycnal diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1] Set to a negative value to have no limit.
Kd_add
uniform diffusivity added everywhere without filtering or scaling [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_smooth
Vertical diffusivity used to interpolate more sensible values of T & S into thin layers [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
diag
structure to regulate diagnostic output timing
limit_dissipation
If enabled, dissipation is limited to be larger than the following:
dissip_min
Minimum dissipation [R Z2 T-3 ~> W m-3]
dissip_N0
Coefficient a in minimum dissipation = a+b*N [R Z2 T-3 ~> W m-3]
dissip_N1
Coefficient b in minimum dissipation = a+b*N [R Z2 T-2 ~> J m-3]
dissip_N2
Coefficient c in minimum dissipation = c*N2 [R Z2 T-1 ~> J s m-3]
dissip_Kd_min
Minimum Kd [H Z T-1 ~> m2 s-1 or kg m-1 s-1], with dissipation Rho0*Kd_min*N^2
omega
Earth's rotation frequency [T-1 ~> s-1]
ML_radiation
allow a fraction of TKE available from wind work to penetrate below mixed layer base with a vertical decay scale determined by the minimum of (1) The depth of the mixed layer, or (2) An Ekman length scale. Energy available to drive mixing below the mixed layer is given by E = ML_RAD_COEFF*MSTAR*USTAR**3. Optionally, if ML_rad_TKE_decay is true, this is further reduced by a factor of exp(-h_ML*Idecay_len_TkE), where Idecay_len_TKE is calculated the same way as in the mixed layer code. The diapycnal diffusivity is KD(k) = E/(N2(k)+OMEGA2), where N2 is the squared buoyancy frequency [T-2 ~> s-2] and OMEGA2 is the rotation rate of the earth squared.
ML_rad_kd_max
Maximum diapycnal diffusivity due to turbulence radiated from the base of the mixed layer [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
ML_rad_efold_coeff
Coefficient to scale penetration depth [nondim]
ML_rad_coeff
Coefficient which scales MSTAR*USTAR^3 to obtain energy available for mixing below mixed layer base [nondim]
ML_rad_bug
If true use code with a bug that reduces the energy available in the transition layer by a factor of the inverse of the energy deposition lenthscale (in m).
ML_rad_TKE_decay
If true, apply same exponential decay to ML_rad as applied to the other surface sources of TKE in the mixed layer code.
ustar_min
A minimum value of ustar to avoid numerical problems [Z T-1 ~> m s-1]. If the value is small enough, this parameter should not affect the solution.
TKE_decay
ratio of natural Ekman depth to TKE decay scale [nondim]
mstar
ratio of friction velocity cubed to TKE input to the mixed layer [nondim]
ML_use_omega
If true, use absolute rotation rate instead of the vertical component of rotation when setting the decay scale for mixed layer turbulence.
ML_omega_frac
When setting the decay scale for turbulence, use this fraction [nondim] of the absolute rotation rate blended with the local value of f, as f^2 ~= (1-of)*f^2 + of*4*omega^2.
user_change_diff
If true, call user-defined code to change diffusivity.
useKappaShear
If true, use the kappa_shear module to find the shear-driven diapycnal diffusivity.
Vertex_Shear
If true, do the calculations of the shear-driven mixing at the cell vertices (i.e., the vorticity points).
use_CVMix_shear
If true, use one of the CVMix modules to find shear-driven diapycnal diffusivity.
double_diffusion
If true, enable double-diffusive mixing using an old method.
use_CVMix_ddiff
If true, enable double-diffusive mixing via CVMix.
use_tidal_mixing
If true, activate tidal mixing diffusivity.
use_int_tides
If true, use internal tides ray tracing
simple_TKE_to_Kd
If true, uses a simple estimate of Kd/TKE that does not rely on a layer-formulation.
Max_Rrho_salt_fingers
max density ratio for salt fingering [nondim]
Max_salt_diff_salt_fingers
max salt diffusivity for salt fingers [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kv_molecular
Molecular viscosity for double diffusive convection [H Z T-1 ~> m2 s-1 or Pa s]
answer_date
The vintage of the order of arithmetic and expressions in this module's calculations. Values below 20190101 recover the answers from the end of 2018, while higher values use updated and more robust forms of the same expressions. Values above 20240630 use more accurate expressions for cases where USE_LOTW_BBL_DIFFUSIVITY is true. Values above 20250301 use less confusing expressions to set the bottom-drag generated diffusivity when USE_LOTW_BBL_DIFFUSIVITY is false.
LOTW_BBL_answer_date
The vintage of the order of arithmetic and expressions in the LOTW_BBL calculations. Values below 20240630 recover the original answers, while higher values use more accurate expressions. This only applies when USE_LOTW_BBL_DIFFUSIVITY is true.
drag_diff_answer_date
The vintage of the order of arithmetic in the drag diffusivity calculations. Values above 20250301 use less confusing expressions to set the bottom-drag generated diffusivity when USE_LOTW_BBL_DIFFUSIVITY is false.
inputdir
The directory in which input files are found
user_change_diff_CSp
Control structure for a child module
kappaShear_CSp
Control structure for a child module
CVMix_shear_csp
Control structure for a child module
CVMix_ddiff_csp
Control structure for a child module
bkgnd_mixing_csp
Control structure for a child module
int_tide_CSp
Control structure for a child module
id_maxTKE
Diagnostic IDs
id_TKE_to_Kd
Diagnostic IDs
id_Kd_user
Diagnostic IDs
id_Kd_layer
Diagnostic IDs
id_Kd_BBL
Diagnostic IDs
id_N2
Diagnostic IDs
id_Kd_Work
Diagnostic IDs
id_KT_extra
Diagnostic IDs
id_KS_extra
Diagnostic IDs
id_R_rho
Diagnostic IDs
id_Kd_bkgnd
Diagnostic IDs
id_Kv_bkgnd
Diagnostic IDs
id_Kd_leak
Diagnostic IDs
id_Kd_quad
Diagnostic IDs
id_Kd_itidal
Diagnostic IDs
id_Kd_Froude
Diagnostic IDs
id_Kd_slope
Diagnostic IDs
id_prof_leak
Diagnostic IDs
id_prof_quad
Diagnostic IDs
id_prof_itidal
Diagnostic IDs
id_prof_Froude
Diagnostic IDs
id_prof_slope
Diagnostic IDs
id_bbl_thick
Diagnostic IDs
id_kbbl
Diagnostic IDs
id_Kd_Work_added
Diagnostic IDs
- type diffusivity_diags
This structure has memory for used in calculating diagnostics of diffusivity
- Parameters
N2_3d
squared buoyancy frequency at interfaces [T-2 ~> s-2]
Kd_user
user-added diffusivity at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_BBL
BBL diffusivity at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_Work
layer integrated work by diapycnal mixing [R Z3 T-3 ~> W m-2]
Kd_Work_added
layer integrated work by added mixing [R Z3 T-3 ~> W m-2]
maxTKE
energy required to entrain to h_max [H Z2 T-3 ~> m3 s-3 or W m-2]
Kd_bkgnd
Background diffusivity at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kv_bkgnd
Viscosity from background diffusivity at interfaces [H Z T-1 ~> m2 s-1 or Pa s]
KT_extra
Double diffusion diffusivity for temperature [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
KS_extra
Double diffusion diffusivity for salinity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
drho_rat
The density difference ratio used in double diffusion [nondim].
Kd_leak
internal tides leakage diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_quad
internal tides bottom drag diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_itidal
internal tides wave drag diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_Froude
internal tides high Froude diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_slope
internal tides critical slopes diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
prof_leak
vertical profile for leakage [H-1 ~> m-1 or m2 kg-1]
prof_quad
vertical profile for bottom drag [H-1 ~> m-1 or m2 kg-1]
prof_itidal
vertical profile for wave drag [H-1 ~> m-1 or m2 kg-1]
prof_Froude
vertical profile for Froude drag [H-1 ~> m-1 or m2 kg-1]
prof_slope
vertical profile for critical slopes [H-1 ~> m-1 or m2 kg-1]
bbl_thick
bottom boundary layer thickness [H ~> m or kg m-2]
kbbl
top of bottom boundary layer
TKE_to_Kd
conversion rate (~1.0 / (G_Earth + dRho_lay)) between TKE dissipated within a layer and Kd in that layer [T2 Z-1 ~> s2 m-1]
Functions/Subroutine Documentation
subroutine set_diffusivity(u, v, h, u_h, v_h, tv, fluxes, optics, visc, dt, Kd_int, G, GV, US, CS, VBF, Kd_lay, Kd_extra_T, Kd_extra_S)
- Parameters
G [in]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
u [in]
The zonal velocity [L T-1 ~> m s-1].
v [in]
The meridional velocity [L T-1 ~> m s-1].
h [in]
Layer thicknesses [H ~> m or kg m-2].
u_h [in]
Zonal velocity interpolated to h points [L T-1 ~> m s-1].
v_h [in]
Meridional velocity interpolated to h points [L T-1 ~> m s-1].
tv [inout]
Structure with pointers to thermodynamic fields. Out is for tv%TempxPmE.
fluxes [in]
A structure of thermodynamic surface fluxes
optics
A structure describing the optical properties of the ocean.
visc [inout]
Structure containing vertical viscosities, bottom boundary layer properties and related fields.
dt [in]
Time increment [T ~> s].
Kd_int [out]
Diapycnal diffusivity at each interface [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
CS
Module control structure.
VBF
A diagnostic control structure for vertical buoyancy fluxes
Kd_lay [out]
Diapycnal diffusivity of each layer [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
Kd_extra_T [out]
The extra diffusivity at interfaces of temperature due to double diffusion relative to the diffusivity of density [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_extra_S [out]
The extra diffusivity at interfaces of salinity due to double diffusion relative to the diffusivity of density [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
N2_lay
Squared buoyancy frequency associated with layers [T-2 ~> s-2]
Kd_lay_2d
The layer diffusivities [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
dz
Height change across layers [Z ~> m]
maxTKE
Energy required to entrain to h_max [H Z2 T-3 ~> m3 s-3 or W m-2]
prof_leak_2d
vertical profile for leakage [Z-1 ~> m-1]
prof_quad_2d
vertical profile for bottom drag [Z-1 ~> m-1]
prof_itidal_2d
vertical profile for wave drag [Z-1 ~> m-1]
prof_Froude_2d
vertical profile for Froude drag [Z-1 ~> m-1]
prof_slope_2d
vertical profile for critical slopes [Z-1 ~> m-1]
TKE_to_Kd
Conversion rate (~1.0 / (G_Earth + dRho_lay)) between TKE dissipated within a layer and Kd in that layer [T2 Z-1 ~> s2 m-1]
N2_int
squared buoyancy frequency associated at interfaces [T-2 ~> s-2]
Kd_int_2d
The interface diffusivities [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kv_bkgnd
The background diffusion related interface viscosities [H Z T-1 ~> m2 s-1 or Pa s]
Kd_leak_2d
internal tides leakage diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_quad_2d
internal tides bottom drag diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_itidal_2d
internal tides wave drag diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_Froude_2d
internal tides high Froude diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_slope_2d
internal tides critical slopes diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
dRho_int
Locally referenced potential density difference across interfaces [R ~> kg m-3]
KT_extra
Double diffusion diffusivity of temperature [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
KS_extra
Double diffusion diffusivity of salinity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Callees call graph
Text view
mom_set_diffusivity::set_diffusivity → mom_bkgnd_mixing::calculate_bkgnd_mixing
mom_set_diffusivity::set_diffusivity → mom_checksums::interface::bchksum
mom_set_diffusivity::set_diffusivity → mom_checksums::interface::hchksum
mom_set_diffusivity::set_diffusivity → mom_checksums::interface::hchksum_pair
mom_set_diffusivity::set_diffusivity → mom_checksums::interface::uvchksum
mom_set_diffusivity::set_diffusivity → mom_cpu_clock_infra::cpu_clock_begin
mom_set_diffusivity::set_diffusivity → mom_cpu_clock_infra::cpu_clock_end
mom_set_diffusivity::set_diffusivity → mom_cvmix_ddiff::compute_ddiff_coeffs
mom_set_diffusivity::set_diffusivity → mom_cvmix_shear::calculate_cvmix_shear
mom_set_diffusivity::set_diffusivity → mom_diag_mediator::interface::post_data
mom_set_diffusivity::set_diffusivity → mom_error_handler::calltree_enter
mom_set_diffusivity::set_diffusivity → mom_error_handler::calltree_leave
mom_set_diffusivity::set_diffusivity → mom_error_handler::calltree_showquery
mom_set_diffusivity::set_diffusivity → mom_error_handler::calltree_waypoint
mom_set_diffusivity::set_diffusivity → mom_error_handler::mom_error
mom_set_diffusivity::set_diffusivity → mom_full_convection::full_convection
mom_set_diffusivity::set_diffusivity → mom_interface_heights::interface::thickness_to_dz
mom_set_diffusivity::set_diffusivity → mom_internal_tides::get_lowmode_diffusivity
mom_set_diffusivity::set_diffusivity → mom_isopycnal_slopes::vert_fill_ts
mom_set_diffusivity::set_diffusivity → mom_kappa_shear::calc_kappa_shear_vertex
mom_set_diffusivity::set_diffusivity → mom_kappa_shear::calculate_kappa_shear
mom_set_diffusivity::set_diffusivity → mom_set_diffusivity::add_drag_diffusivity
mom_set_diffusivity::set_diffusivity → mom_set_diffusivity::add_lotw_bbl_diffusivity
mom_set_diffusivity::set_diffusivity → mom_set_diffusivity::add_mlrad_diffusivity
mom_set_diffusivity::set_diffusivity → mom_set_diffusivity::double_diffusion
mom_set_diffusivity::set_diffusivity → mom_set_diffusivity::find_n2
mom_set_diffusivity::set_diffusivity → mom_set_diffusivity::find_tke_to_kd
mom_set_diffusivity::set_diffusivity → mom_tidal_mixing::calculate_tidal_mixing
mom_set_diffusivity::set_diffusivity → mom_tidal_mixing::post_tidal_diagnostics
mom_set_diffusivity::set_diffusivity → mom_tidal_mixing::setup_tidal_diagnostics
mom_set_diffusivity::set_diffusivity → user_change_diffusivity::user_change_diff
- subroutine find_TKE_to_Kd(h, tv, dRho_int, N2_lay, j, dt, G, GV, US, CS, TKE_to_Kd, maxTKE, kb)
Convert turbulent kinetic energy to diffusivity
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
h [in]
Layer thicknesses [H ~> m or kg m-2]
tv [in]
Structure containing pointers to any available thermodynamic fields.
dRho_int [in]
Change in locally referenced potential density across each interface [R ~> kg m-3].
N2_lay [in]
The squared buoyancy frequency of the layers [T-2 ~> s-2].
j [in]
j-index of row to work on
dt [in]
Time increment [T ~> s].
CS
Diffusivity control structure
TKE_to_Kd [out]
The conversion rate between the TKE dissipated within a layer and the diapycnal diffusivity within that layer, usually (~Rho_0 / (G_Earth * dRho_lay)) [T2 Z-1 ~> s2 m-1]
maxTKE [out]
The energy required to for a layer to entrain to its maximum realizable thickness [H Z2 T-3 ~> m3 s-3 or W m-2]
kb [out]
Index of lightest layer denser than the buffer layer, or -1 without a bulk mixed layer.
Callees call graph
Text view
Callers call graph
- subroutine find_N2(h, tv, T_f, S_f, fluxes, j, G, GV, US, CS, dRho_int, N2_lay, N2_int, N2_bot, Rho_bot, h_bot, k_bot)
Calculate Brunt-Vaisala frequency, N^2.
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
h [in]
Layer thicknesses [H ~> m or kg m-2]
tv [in]
Structure containing pointers to any available thermodynamic fields.
T_f [in]
layer temperature with the values in massless layers filled vertically by diffusion [C ~> degC].
S_f [in]
Layer salinities with values in massless layers filled vertically by diffusion [S ~> ppt].
fluxes [in]
A structure of thermodynamic surface fluxes
j [in]
j-index of row to work on
CS
Diffusivity control structure
dRho_int [out]
Change in locally referenced potential density across each interface [R ~> kg m-3].
N2_int [out]
The squared buoyancy frequency at the interfaces [T-2 ~> s-2].
N2_lay [out]
The squared buoyancy frequency of the layers [T-2 ~> s-2].
N2_bot [out]
The near-bottom squared buoyancy frequency [T-2 ~> s-2].
Rho_bot [out]
Near-bottom density [R ~> kg m-3].
h_bot [out]
Bottom boundary layer thickness [H ~> m or kg m-2].
k_bot [out]
Bottom boundary layer top layer index.
Callees call graph
Text view
- subroutine double_diffusion(tv, h, T_f, S_f, j, G, GV, US, CS, Kd_T_dd, Kd_S_dd)
This subroutine sets the additional diffusivities of temperature and salinity due to double diffusion, using the same functional form as is used in MOM4.1, and taken from the appendix of Danabasoglu et al. (2006), which updates what was in Large et al. (1994). All the coefficients here should probably be made run-time variables rather than hard-coded constants.
Todo: Find reference for NCAR tech note above.
- Parameters
G [in]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
tv [in]
Structure containing pointers to any available thermodynamic fields; absent fields have NULL ptrs.
h [in]
Layer thicknesses [H ~> m or kg m-2].
T_f [in]
layer temperatures with the values in massless layers filled vertically by diffusion [C ~> degC].
S_f [in]
Layer salinities with values in massless layers filled vertically by diffusion [S ~> ppt].
j [in]
Meridional index upon which to work.
CS
Module control structure.
Kd_T_dd [out]
Interface double diffusion diapycnal diffusivity for temp [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_S_dd [out]
Interface double diffusion diapycnal diffusivity for saln [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Callees call graph
Callers call graph
- subroutine add_drag_diffusivity(h, u, v, tv, fluxes, visc, j, TKE_to_Kd, maxTKE, kb, rho_bot, G, GV, US, CS, Kd_lay, Kd_int, Kd_BBL)
This routine adds diffusion sustained by flow energy extracted by bottom drag.
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
u [in]
The zonal velocity [L T-1 ~> m s-1]
v [in]
The meridional velocity [L T-1 ~> m s-1]
h [in]
Layer thicknesses [H ~> m or kg m-2]
tv [in]
Structure containing pointers to any available thermodynamic fields.
fluxes [in]
A structure of thermodynamic surface fluxes
visc [in]
Structure containing vertical viscosities, bottom boundary layer properties and related fields
j [in]
j-index of row to work on
TKE_to_Kd [in]
The conversion rate between the TKE TKE dissipated within a layer and the diapycnal diffusivity within that layer, usually (~Rho_0 / (G_Earth * dRho_lay)) [T2 Z-1 ~> s2 m-1]
maxTKE [in]
The energy required to for a layer to entrain to its maximum-realizable thickness [H Z2 T-3 ~> m3 s-3 or W m-2]
kb [in]
Index of lightest layer denser than the buffer layer, or -1 without a bulk mixed layer
rho_bot [in]
In situ density averaged over a near-bottom region [R ~> kg m-3]
CS
Diffusivity control structure
Kd_lay [inout]
The diapycnal diffusivity in layers, [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_int [inout]
The diapycnal diffusivity at interfaces, [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_BBL
Interface BBL diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Callers call graph
- subroutine add_LOTW_BBL_diffusivity(h, u, v, tv, fluxes, visc, j, N2_int, Rho_bot, Kd_int, G, GV, US, CS, Kd_BBL, Kd_lay)
Calculates a BBL diffusivity use a Prandtl number 1 diffusivity with a law of the wall turbulent viscosity, up to a BBL height where the energy used for mixing has consumed the mechanical TKE input.
- Parameters
G [in]
Grid structure
GV [in]
Vertical grid structure
US [in]
A dimensional unit scaling type
u [in]
u component of flow [L T-1 ~> m s-1]
v [in]
v component of flow [L T-1 ~> m s-1]
h [in]
Layer thickness [H ~> m or kg m-2]
tv [in]
Structure containing pointers to any available thermodynamic fields.
fluxes [in]
Surface fluxes structure
visc [in]
Structure containing vertical viscosities, bottom boundary layer properties and related fields.
j [in]
j-index of row to work on
N2_int [in]
Square of Brunt-Vaisala at interfaces [T-2 ~> s-2]
rho_bot [in]
In situ density averaged over a near-bottom region [R ~> kg m-3]
Kd_int [inout]
Interface net diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
CS
Diffusivity control structure
Kd_BBL
Interface BBL diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_lay [inout]
Layer net diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Callees call graph
Callers call graph
- subroutine add_MLrad_diffusivity(dz, fluxes, tv, j, Kd_int, G, GV, US, CS, TKE_to_Kd, Kd_lay)
This routine adds effects of mixed layer radiation to the layer diffusivities.
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
dz [in]
Height change across layers [Z ~> m]
fluxes [in]
Surface fluxes structure
tv [in]
Structure containing pointers to any available thermodynamic fields.
j [in]
The j-index to work on
Kd_int [inout]
The diapycnal diffusivity at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
CS
Diffusivity control structure
TKE_to_Kd [in]
The conversion rate between the TKE TKE dissipated within a layer and the diapycnal diffusivity witin that layer, usually (~Rho_0 / (G_Earth * dRho_lay)) [T2 Z-1 ~> s2 m-1]
Kd_lay [inout]
The diapycnal diffusivity in layers [H Z T-1 ~> m2 s-1 or kg m-1 s-1].
Callers call graph
- subroutine set_BBL_TKE(u, v, h, tv, fluxes, visc, G, GV, US, CS, OBC)
This subroutine calculates several properties related to bottom boundary layer turbulence.
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
u [in]
The zonal velocity [L T-1 ~> m s-1]
v [in]
The meridional velocity [L T-1 ~> m s-1]
h [in]
Layer thicknesses [H ~> m or kg m-2]
tv [in]
Structure with pointers to thermodynamic fields
fluxes [in]
A structure of thermodynamic surface fluxes
visc [inout]
Structure containing vertical viscosities, bottom boundary layer properties and related fields.
CS
Diffusivity control structure
OBC
Open boundaries control structure.
Callees call graph
subroutine set_density_ratios(h, tv, kb, G, GV, US, CS, j, ds_dsp1, rho_0)
- Parameters
G [in]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure.
h [in]
Layer thicknesses [H ~> m or kg m-2].
tv [in]
Structure containing pointers to any available thermodynamic fields; absent fields have NULL ptrs.
kb [in]
Index of lightest layer denser than the buffer layer, or -1 without a bulk mixed layer.
US [in]
A dimensional unit scaling type
CS
Control structure returned by previous call to diabatic_entrain_init.
j [in]
Meridional index upon which to work.
ds_dsp1 [out]
Coordinate variable (sigma-2) difference across an interface divided by the difference across the interface below it [nondim]
rho_0 [in]
Layer potential densities relative to surface press [R ~> kg m-3].
Callees call graph
Callers call graph
subroutine set_diffusivity_init(Time, G, GV, US, param_file, diag, CS, int_tide_CSp, halo_TS, double_diffuse, physical_OBL_scheme)
- Parameters
Time [in]
The current model time
G [inout]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
param_file [in]
A structure to parse for run-time parameters.
diag [inout]
A structure used to regulate diagnostic output.
CS
pointer set to point to the module control structure.
int_tide_CSp
Internal tide control structure
halo_TS [out]
The halo size of tracer points that must be valid for the calculations in set_diffusivity.
double_diffuse [out]
This indicates whether some version of double diffusion is being used.
physical_OBL_scheme [in]
If true, a physically based parameterization (like KPP or ePBL or a bulk mixed layer) is used outside of set_diffusivity to specify the mixing that occurs in the ocean's surface boundary layer.
Callees call graph
Text view
mom_set_diffusivity::set_diffusivity_init → mom_bkgnd_mixing::bkgnd_mixing_init
mom_set_diffusivity::set_diffusivity_init → mom_cpu_clock_infra::cpu_clock_id
mom_set_diffusivity::set_diffusivity_init → mom_cvmix_ddiff::cvmix_ddiff_init
mom_set_diffusivity::set_diffusivity_init → mom_cvmix_shear::cvmix_shear_init
mom_set_diffusivity::set_diffusivity_init → mom_diag_mediator::register_diag_field
mom_set_diffusivity::set_diffusivity_init → mom_error_handler::mom_error
mom_set_diffusivity::set_diffusivity_init → mom_file_parser::interface::get_param
mom_set_diffusivity::set_diffusivity_init → mom_file_parser::interface::log_version
mom_set_diffusivity::set_diffusivity_init → mom_kappa_shear::kappa_shear_at_vertex
mom_set_diffusivity::set_diffusivity_init → mom_kappa_shear::kappa_shear_init
mom_set_diffusivity::set_diffusivity_init → mom_string_functions::slasher
mom_set_diffusivity::set_diffusivity_init → mom_tidal_mixing::tidal_mixing_init
mom_set_diffusivity::set_diffusivity_init → user_change_diffusivity::user_change_diff_init
Callers call graph
- subroutine set_diffusivity_end(CS)
Clear pointers and deallocate memory
- Parameters
CS [inout]
Control structure for this module
Callees call graph
Text view
mom_set_diffusivity::set_diffusivity_end → mom_bkgnd_mixing::bkgnd_mixing_end
mom_set_diffusivity::set_diffusivity_end → mom_cvmix_shear::cvmix_shear_end
mom_set_diffusivity::set_diffusivity_end → mom_tidal_mixing::tidal_mixing_end
mom_set_diffusivity::set_diffusivity_end → user_change_diffusivity::user_change_diff_end