MOM_bkgnd_mixing module reference
Interface to background mixing schemes, including the Bryan and Lewis (1979) which is applied via CVMix.
Data Types
Control structure including parameters for this module. |
Functions/Subroutines
Initialize the background mixing routine. |
|
Calculates the vertical background diffusivities/viscosities |
|
Reads the parameter "USE_CVMix_BACKGROUND" and returns state. This function allows other modules to know whether this parameterization will be used without needing to duplicate the log entry. |
|
Sets CS%bkgnd_scheme_str to check whether multiple background diffusivity schemes are activated. The string is also for error/log messages. |
|
Clear pointers and deallocate memory |
Type Documentation
- type, public :: bkgnd_mixing_cs
Control structure including parameters for this module.
- Parameters
Bryan_Lewis_c1
The vertical diffusivity values for Bryan-Lewis profile at |z|=D [Z2 T-1 ~> m2 s-1]
Bryan_Lewis_c2
The amplitude of variation in diffusivity for the Bryan-Lewis diffusivity profile [Z2 T-1 ~> m2 s-1]
Bryan_Lewis_c3
The inverse length scale for transition region in the Bryan-Lewis diffusivity profile [Z-1 ~> m-1]
Bryan_Lewis_c4
The depth where diffusivity is Bryan_Lewis_bl1 in the Bryan-Lewis profile [Z ~> m]
bckgrnd_vdc1
Background diffusivity (Ledwell) when horiz_varying_background=.true. [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
bckgrnd_vdc_eq
Equatorial diffusivity (Gregg) when horiz_varying_background=.true. [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
bckgrnd_vdc_psim
Max. PSI induced diffusivity (MacKinnon) when horiz_varying_background=.true. [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
bckgrnd_vdc_Banda
Banda Sea diffusivity (Gordon) when horiz_varying_background=.true. [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
interior diapycnal diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
omega
The Earth's rotation rate [T-1 ~> s-1].
N0_2Omega
ratio of the typical Buoyancy frequency to twice the Earth's rotation period, used with the Henyey scaling from the mixing [nondim]
Henyey_max_lat
A latitude poleward of which the Henyey profile is returned to the minimum diffusivity [degrees_N]
prandtl_bkgnd
Turbulent Prandtl number used to convert vertical background diffusivity into viscosity [nondim]
Kd_tanh_lat_scale
A nondimensional scaling for the range of diffusivities with Kd_tanh_lat_fn [nondim]. Valid values are in the range of -2 to 2; 0.4 reproduces CM2M.
Kd_tot_ml
The mixed layer diapycnal diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1] when no other physically based mixed layer turbulence parameterization is being used.
Hmix
mixed layer thickness [H ~> m or kg m-2] when no physically based ocean surface boundary layer parameterization is used.
Kd_tanh_lat_fn
If true, use the tanh dependence of Kd_sfc on latitude, like GFDL CM2.1/CM2M. There is no physical justification for this form, and it can not be used with Henyey_IGW_background.
Bryan_Lewis_diffusivity
If true, background vertical diffusivity uses Bryan-Lewis (1979) like tanh profile.
horiz_varying_background
If true, apply vertically uniform, latitude-dependent background diffusivity, as described in Danabasoglu et al., 2012
Henyey_IGW_background
If true, use a simplified variant of the Henyey et al, JGR (1986) latitudinal scaling for the background diapycnal diffusivity, which gives a marked decrease in the diffusivity near the equator. The simplification here is to assume that the in-situ stratification is the same as the reference stratificaiton.
physical_OBL_scheme
If true, a physically-based scheme is used to determine mixing in the ocean's surface boundary layer, such as ePBL, KPP, or a refined bulk mixed layer scheme.
debug
If true, turn on debugging in this module
diag
A structure that regulates diagnostic output
bkgnd_scheme_str
Background scheme identifier
Functions/Subroutine Documentation
- subroutine bkgnd_mixing_init(Time, G, GV, US, param_file, diag, CS, physical_OBL_scheme)
Initialize the background mixing routine.
- 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.
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_bkgnd_mixing::bkgnd_mixing_init → mom_bkgnd_mixing::check_bkgnd_scheme
mom_bkgnd_mixing::bkgnd_mixing_init → mom_error_handler::mom_error
mom_bkgnd_mixing::bkgnd_mixing_init → mom_file_parser::interface::get_param
mom_bkgnd_mixing::bkgnd_mixing_init → mom_file_parser::interface::log_param
mom_bkgnd_mixing::bkgnd_mixing_init → mom_file_parser::interface::log_version
Callers call graph
- subroutine calculate_bkgnd_mixing(h, tv, N2_lay, Kd_lay, Kd_int, Kv_bkgnd, j, G, GV, US, CS)
Calculates the vertical background diffusivities/viscosities
- Parameters
G [in]
Grid structure.
GV [in]
Vertical grid structure.
h [in]
Layer thickness [H ~> m or kg m-2].
tv [in]
Thermodynamics structure.
N2_lay [in]
squared buoyancy frequency associated with layers [T-2 ~> s-2]
Kd_lay [out]
The background diapycnal diffusivity of each layer [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kd_int [out]
The background diapycnal diffusivity of each interface [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Kv_bkgnd [out]
The background vertical viscosity at each interface [H Z T-1 ~> m2 s-1 or Pa s]
j [in]
Meridional grid index
US [in]
A dimensional unit scaling type
CS
The control structure returned by a previous call to bkgnd_mixing_init.
depth_int
Distance from surface of the interfaces [m]
Kd_col
Diffusivities at the interfaces [m2 s-1]
Kv_col
Viscosities at the interfaces [m2 s-1]
Kd_sfc
Surface value of the diffusivity [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
depth
Distance from surface of an interface [H ~> m or kg m-2]
dz
Height change across layers [Z ~> m]
depth_c
depth of the center of a layer [H ~> m or kg m-2]
I_Hmix
inverse of fixed mixed layer thickness [H-1 ~> m-1 or m2 kg-1]
I_x30
2/acos(2) = 1/(sin(30 deg) * acosh(1/sin(30 deg))) [nondim]
deg_to_rad
factor converting degrees to radians [radians degree-1], pi/180.
abs_sinlat
absolute value of sine of latitude [nondim]
bckgrnd_vdc_psin
PSI diffusivity in northern hemisphere [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
bckgrnd_vdc_psis
PSI diffusivity in southern hemisphere [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
Callees call graph
Callers call graph
External calls
- cvmix_background
CVMix_coeffs_bkgnd (cvmix_background::cvmix_coeffs_bkgnd)
CVMix_init_bkgnd (cvmix_background::cvmix_init_bkgnd)
- logical function CVMix_bkgnd_is_used(param_file)
Reads the parameter "USE_CVMix_BACKGROUND" 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
- subroutine check_bkgnd_scheme(CS, str)
Sets CS%bkgnd_scheme_str to check whether multiple background diffusivity schemes are activated. The string is also for error/log messages.
- Parameters
CS
Control structure
str [in]
Background scheme identifier deducted from MOM_input parameters
Callers call graph
- subroutine bkgnd_mixing_end(CS)
Clear pointers and deallocate memory
- Parameters
CS
Control structure for this module that will be deallocated in this subroutine