MOM_bkgnd_mixing module reference

Interface to background mixing schemes, including the Bryan and Lewis (1979) which is applied via CVMix.

Data Types

bkgnd_mixing_cs

Control structure including parameters for this module.

Functions/Subroutines

bkgnd_mixing_init

Initialize the background mixing routine.

calculate_bkgnd_mixing

Calculates the vertical background diffusivities/viscosities

CVMix_bkgnd_is_used

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.

check_bkgnd_scheme

Sets CS%bkgnd_scheme_str to check whether multiple background diffusivity schemes are activated. The string is also for error/log messages.

bkgnd_mixing_end

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
Callees of mom_bkgnd_mixing::bkgnd_mixing_init calls cluster_mom_bkgnd_mixing MOM_bkgnd_mixing cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser mom_bkgnd_mixing::bkgnd_mixing_init bkgnd_mixing_init mom_bkgnd_mixing::check_bkgnd_scheme check_bkgnd_scheme [private/internal] mom_bkgnd_mixing::bkgnd_mixing_init->mom_bkgnd_mixing::check_bkgnd_scheme mom_error_handler::mom_error MOM_error mom_bkgnd_mixing::bkgnd_mixing_init->mom_error_handler::mom_error mom_file_parser::interface::get_param get_param (interface) mom_bkgnd_mixing::bkgnd_mixing_init->mom_file_parser::interface::get_param mom_file_parser::interface::log_param log_param (interface) mom_bkgnd_mixing::bkgnd_mixing_init->mom_file_parser::interface::log_param mom_file_parser::interface::log_version log_version (interface) mom_bkgnd_mixing::bkgnd_mixing_init->mom_file_parser::interface::log_version
Text view
Callers call graph
Callers of mom_bkgnd_mixing::bkgnd_mixing_init calls cluster_mom_bkgnd_mixing MOM_bkgnd_mixing cluster_mom_set_diffusivity MOM_set_diffusivity mom_bkgnd_mixing::bkgnd_mixing_init bkgnd_mixing_init mom_set_diffusivity::set_diffusivity_init set_diffusivity_init mom_set_diffusivity::set_diffusivity_init->mom_bkgnd_mixing::bkgnd_mixing_init
Text view
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
Callees of mom_bkgnd_mixing::calculate_bkgnd_mixing calls cluster_mom_bkgnd_mixing MOM_bkgnd_mixing cluster_mom_interface_heights MOM_interface_heights cluster_mom_intrinsic_functions MOM_intrinsic_functions mom_bkgnd_mixing::calculate_bkgnd_mixing calculate_bkgnd_mixing mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_bkgnd_mixing::calculate_bkgnd_mixing->mom_interface_heights::interface::thickness_to_dz mom_intrinsic_functions::invcosh invcosh mom_bkgnd_mixing::calculate_bkgnd_mixing->mom_intrinsic_functions::invcosh
Text view
Callers call graph
Callers of mom_bkgnd_mixing::calculate_bkgnd_mixing calls cluster_mom_bkgnd_mixing MOM_bkgnd_mixing cluster_mom_set_diffusivity MOM_set_diffusivity mom_bkgnd_mixing::calculate_bkgnd_mixing calculate_bkgnd_mixing mom_set_diffusivity::set_diffusivity set_diffusivity mom_set_diffusivity::set_diffusivity->mom_bkgnd_mixing::calculate_bkgnd_mixing
Text view

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
Callees of mom_bkgnd_mixing::cvmix_bkgnd_is_used calls cluster_mom_bkgnd_mixing MOM_bkgnd_mixing cluster_mom_file_parser MOM_file_parser mom_bkgnd_mixing::cvmix_bkgnd_is_used CVMix_bkgnd_is_used [private/internal] mom_file_parser::interface::get_param get_param (interface) mom_bkgnd_mixing::cvmix_bkgnd_is_used->mom_file_parser::interface::get_param
Text view
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

Callees call graph
Callees of mom_bkgnd_mixing::check_bkgnd_scheme calls cluster_mom_bkgnd_mixing MOM_bkgnd_mixing cluster_mom_error_handler MOM_error_handler mom_bkgnd_mixing::check_bkgnd_scheme check_bkgnd_scheme [private/internal] mom_error_handler::mom_error MOM_error mom_bkgnd_mixing::check_bkgnd_scheme->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_bkgnd_mixing::check_bkgnd_scheme calls cluster_mom_bkgnd_mixing MOM_bkgnd_mixing mom_bkgnd_mixing::bkgnd_mixing_init bkgnd_mixing_init mom_bkgnd_mixing::check_bkgnd_scheme check_bkgnd_scheme [private/internal] mom_bkgnd_mixing::bkgnd_mixing_init->mom_bkgnd_mixing::check_bkgnd_scheme
Text view
subroutine bkgnd_mixing_end(CS)

Clear pointers and deallocate memory

Parameters
  • CS

    Control structure for this module that will be deallocated in this subroutine

Callers call graph
Callers of mom_bkgnd_mixing::bkgnd_mixing_end calls cluster_mom_bkgnd_mixing MOM_bkgnd_mixing cluster_mom_set_diffusivity MOM_set_diffusivity mom_bkgnd_mixing::bkgnd_mixing_end bkgnd_mixing_end mom_set_diffusivity::set_diffusivity_end set_diffusivity_end mom_set_diffusivity::set_diffusivity_end->mom_bkgnd_mixing::bkgnd_mixing_end
Text view
API generated with Flint · Rendered from reStructuredText