MOM_thickness_diffuse module reference

Isopycnal height diffusion (or Gent McWilliams diffusion)

Data Types

thickness_diffuse_CS

Control structure for thickness_diffuse

Functions/Subroutines

thickness_diffuse

Calculates isopycnal height diffusion coefficients and applies isopycnal height diffusion by modifying to the layer thicknesses, h. Diffusivities are limited to ensure stability. Also returns along-layer mass fluxes used in the continuity equation.

thickness_diffuse_full

Calculates parameterized layer transports for use in the continuity equation. Fluxes are limited to give positive definite thicknesses. Called by thickness_diffuse().

streamfn_solver

Tridiagonal solver for streamfunction at interfaces

add_interface_Kh

Add a diffusivity that acts on the isopycnal heights, regardless of the densities

add_detangling_Kh

Modifies isopycnal height diffusivities to untangle layer structures

thickness_diffuse_init

Initialize the isopycnal height diffusion module and its control structure

thickness_diffuse_get_KH

Copies KH_u_GME and KH_v_GME from private type into arrays provided as arguments

thickness_diffuse_end

Deallocate the thickness_diffus3 control structure

Detailed Description

Isopycnal height diffusion (aka Gent-McWilliams)

Isopycnal height diffusion is implemented via along-layer mass fluxes

\begin{equation*} h^\dagger \leftarrow h^n - \Delta t \nabla \cdot ( \vec{uh}^* ) \end{equation*}

where the mass fluxes are cast as the difference in vector streamfunction

\begin{equation*} \vec{uh}^* = \delta_k \vec{\psi} . \end{equation*}

The GM implementation of isopycnal height diffusion made the streamfunction proportional to the potential density slope

\begin{equation*} \vec{\psi} = - \kappa_h \frac{\nabla_z \rho}{\partial_z \rho} = \frac{g\kappa_h}{\rho_o} \frac{\nabla \rho}{N^2} = -\kappa_h \frac{M^2}{N^2} \end{equation*}

but for robustness the scheme is implemented as

\begin{equation*} \vec{\psi} = -\kappa_h \frac{M^2}{\sqrt{N^4 + M^4}} \end{equation*}

since the quantity \(\frac{M^2}{\sqrt{N^4 + M^4}}\) is bounded between $-1$ and $1$ and does not change sign if \(N^2<0\).

Optionally, the method of [23], can be used to obtain the streamfunction which solves the vertically elliptic equation:

\begin{equation*} \gamma_F \partial_z c^2 \partial_z \psi - N_*^2 \psi = -( 1 + \gamma_F ) \kappa_h N_*^2 \frac{M^2}{\sqrt{N^4+M^4}} \end{equation*}

which recovers the previous streamfunction relation in the limit that \(c \rightarrow 0\). Here, \(c=\max(c_{min},c_g)\) is the maximum of either \(c_{min}\) and either the first baroclinic mode wave-speed or the equivalent barotropic mode wave-speed. \(N_*^2 = \max(N^2,0)\) is a non-negative form of the square of the buoyancy frequency. The parameter \(\gamma_F\) is used to reduce the vertical smoothing length scale.

\begin{equation*} \kappa_h = \left( \kappa_o + \alpha_{s} L_{s}^2 < S N > + \alpha_{M} \kappa_{M} \right) r(\Delta x,L_d) \end{equation*}

where \(S\) is the isoneutral slope magnitude, \(N\) is the buoyancy frequency, \(\kappa_{M}\) is the diffusivity calculated by the MEKE parameterization (mom_meke module) and \(r(\Delta x,L_d)\) is a function of the local resolution (ratio of grid-spacing, \(\Delta x\), to deformation radius, \(L_d\)). The length \(L_s\) is provided by the mom_lateral_mixing_coeffs module (enabled with USE_VARIABLE_MIXING=True and the term \(<SN>\) is the vertical average slope times the buoyancy frequency prescribed by [87].

The result of the above expression is subsequently bounded by minimum and maximum values, including an upper diffusivity consistent with numerical stability (\(\kappa_{cfl}\) is calculated internally).

\begin{equation*} \kappa_h \leftarrow \min{\left( \kappa_{max}, \kappa_{cfl}, \max{\left( \kappa_{min}, \kappa_h \right)} \right)} f(c_g,z) \end{equation*}

where \(f(c_g,z)\) is a vertical structure function. \(f(c_g,z)\) is calculated in module mom_lateral_mixing_coeffs. If KHTH_USE_EBT_STRUCT=True then \(f(c_g,z)\) is set to look like the equivalent barotropic modal velocity structure. Otherwise \(f(c_g,z)=1\) and the diffusivity is independent of depth.

In order to calculate meaningful slopes in vanished layers, temporary copies of the thermodynamic variables are passed through a vertical smoother, function vert_fill_ts():

\begin{equation*} \begin{aligned} \left[ 1 + \Delta t \kappa_{smth} \frac{\partial^2}{\partial_z^2} \right] \theta &\leftarrow \theta \\ \left[ 1 + \Delta t \kappa_{smth} \frac{\partial^2}{\partial_z^2} \right] s &\leftarrow s \end{aligned} \end{equation*}

Module mom_thickness_diffuse parameters

Symbol

Module parameter

-

THICKNESSDIFFUSE

\(\kappa_o\)

KHTH

\(\alpha_{s}\)

KHTH_SLOPE_CFF

\(\kappa_{min}\)

KHTH_MIN

\(\kappa_{max}\)

KHTH_MAX

-

KHTH_MAX_CFL

\(\kappa_{smth}\)

KD_SMOOTH

\(\alpha_{M}\)

MEKE_KHTH_FAC (from mom_meke module)

-

KHTH_USE_EBT_STRUCT (from mom_lateral_mixing_coeffs module)

-

KHTH_USE_FGNV_STREAMFUNCTION

\(\gamma_F\)

FGNV_FILTER_SCALE

\(c_{min}\)

FGNV_C_MIN

References

Ferrari, R., S.M. Griffies, A.J.G. Nurser and G.K. Vallis, 2010: A boundary-value problem for the parameterized mesoscale eddy transport. Ocean Modelling, 32, 143-156. http://doi.org/10.1016/j.ocemod.2010.01.004

Visbeck, M., J.C. Marshall, H. Jones, 1996: Dynamics of isolated convective regions in the ocean. J. Phys. Oceangr., 26, 1721-1734. http://dx.doi.org/10.1175/1520-0485(1996)026%3C1721:DOICRI%3E2.0.CO;2

Type Documentation

type, public :: thickness_diffuse_CS

Control structure for thickness_diffuse

Parameters
  • initialized

    True if this control structure has been initialized.

  • Khth

    Background isopycnal depth diffusivity [L2 T-1 ~> m2 s-1]

  • Khth_Slope_Cff

    Slope dependence coefficient of Khth [nondim]

  • max_Khth_CFL

    Maximum value of the diffusive CFL for isopycnal height diffusion [nondim]

  • Khth_Min

    Minimum value of Khth [L2 T-1 ~> m2 s-1]

  • Khth_Max

    Maximum value of Khth [L2 T-1 ~> m2 s-1], or 0 for no max

  • Kh_eta_bg

    Background isopycnal height diffusivity [L2 T-1 ~> m2 s-1]

  • Kh_eta_vel

    Velocity scale that is multiplied by the grid spacing to give the isopycnal height diffusivity [L T-1 ~> m s-1]

  • slope_max

    Slopes steeper than slope_max are limited in some way [Z L-1 ~> nondim]

  • kappa_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]

  • thickness_diffuse

    If true, interfaces heights are diffused.

  • full_depth_khth_min

    If true, KHTH_MIN is enforced throughout the whole water column. Otherwise, KHTH_MIN is only enforced at the surface. This parameter is only available when KHTH_USE_EBT_STRUCT=True and KHTH_MIN>0.

  • use_FGNV_streamfn

    If true, use the streamfunction formulation of Ferrari et al., 2010, which effectively emphasizes graver vertical modes by smoothing in the vertical.

  • FGNV_scale

    A coefficient scaling the vertical smoothing term in the Ferrari et al., 2010, streamfunction formulation [nondim].

  • FGNV_c_min

    A minimum wave speed used in the Ferrari et al., 2010, streamfunction formulation [L T-1 ~> m s-1].

  • N2_floor

    A floor for squared buoyancy frequency in the Ferrari et al., 2010, streamfunction formulation divided by aspect ratio rescaling factors [L2 Z-2 T-2 ~> s-2].

  • detangle_interfaces

    If true, add 3-d structured interface height diffusivities to horizontally smooth jagged layers.

  • detangle_time

    If detangle_interfaces is true, this is the timescale over which maximally jagged grid-scale thickness variations are suppressed [T ~> s]. This must be longer than DT, or 0 (the default) to use DT.

  • nkml

    number of layers within mixed layer

  • debug

    write verbose checksums for debugging purposes

  • use_GME_thickness_diffuse

    If true, passes GM coefficients to MOM_hor_visc for use with GME closure.

  • MEKE_GEOMETRIC

    If true, uses the GM coefficient formulation from the GEOMETRIC framework (Marshall et al., 2012)

  • MEKE_GEOMETRIC_alpha

    The nondimensional coefficient governing the efficiency of the GEOMETRIC isopycnal height diffusion [nondim]

  • MEKE_GEOMETRIC_epsilon

    Minimum Eady growth rate for the GEOMETRIC thickness diffusivity [T-1 ~> s-1].

  • MEKE_GEOM_answer_date

    The vintage of the expressions in the MEKE_GEOMETRIC calculation. Values below 20190101 recover the answers from the original implementation, while higher values use expressions that satisfy rotational symmetry.

  • Use_KH_in_MEKE

    If true, uses the isopycnal height diffusivity calculated here to diffuse MEKE.

  • MEKE_min_depth_diff

    The minimum total depth over which to average the diffusivity used for MEKE [H ~> m or kg m-2]. When the total depth is less than this, the diffusivity is scaled away.

  • GM_src_alt

    If true, use the GM energy conversion form S^2*N^2*kappa rather than the streamfunction for the GM source term for MEKE.

  • MEKE_src_answer_date

    The vintage of the expressions in the GM energy conversion calculation when MEKE_GM_SRC_ALT is true. Values below 20240601 recover the answers from the original implementation, while higher values use expressions that satisfy rotational symmetry.

  • MEKE_src_slope_bug

    If true, use a bug that limits the positive values, but not the negative values, of the slopes used when MEKE_GM_SRC_ALT is true. When this is true, it breaks rotational symmetry.

  • use_GM_work_bug

    If true, use the incorrect sign for the top-level work tendency on the top layer.

  • read_khth

    If true, read a file containing the spatially varying horizontal isopycnal height diffusivity

  • use_stanley_gm

    If true, also use the Stanley parameterization in MOM_thickness_diffuse

  • use_meso_sfn_ANN

    If true, use the meso-scale streamfunction ANN parameterization

  • meso_sfn_ANN_CS

    Control structure for the meso-scale streamfunction ANN parameterization

  • diag

    structure used to regulate timing of diagnostics

  • GMwork

    Work by isopycnal height diffusion [R Z L2 T-3 ~> W m-2]

  • diagSlopeX

    Diagnostic: zonal neutral slope [Z L-1 ~> nondim]

  • diagSlopeY

    Diagnostic: zonal neutral slope [Z L-1 ~> nondim]

  • Kh_eta_u

    Isopycnal height diffusivities at u points [L2 T-1 ~> m2 s-1]

  • Kh_eta_v

    Isopycnal height diffusivities in v points [L2 T-1 ~> m2 s-1]

  • KH_u_GME

    Isopycnal height diffusivities in u-columns [L2 T-1 ~> m2 s-1]

  • KH_v_GME

    Isopycnal height diffusivities in v-columns [L2 T-1 ~> m2 s-1]

  • id_uhGM

    Diagnostic identifier

  • id_vhGM

    Diagnostic identifier

  • id_GMwork

    Diagnostic identifier

  • id_KH_u

    Diagnostic identifier

  • id_KH_v

    Diagnostic identifier

  • id_KH_t

    Diagnostic identifier

  • id_KH_u1

    Diagnostic identifier

  • id_KH_v1

    Diagnostic identifier

  • id_KH_t1

    Diagnostic identifier

  • id_slope_x

    Diagnostic identifier

  • id_slope_y

    Diagnostic identifier

  • id_sfn_unlim_x

    Diagnostic identifier

  • id_sfn_unlim_y

    Diagnostic identifier

  • id_sfn_x

    Diagnostic identifier

  • id_sfn_y

    Diagnostic identifier

Functions/Subroutine Documentation

subroutine thickness_diffuse(h, uhtr, vhtr, tv, dt, G, GV, US, MEKE, VarMix, CDp, CS, STOCH, u, v)

Calculates isopycnal height diffusion coefficients and applies isopycnal height diffusion by modifying to the layer thicknesses, h. Diffusivities are limited to ensure stability. Also returns along-layer mass fluxes used in the continuity equation.

Parameters
  • G [in]

    Ocean grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • h [inout]

    Layer thickness [H ~> m or kg m-2]

  • uhtr [inout]

    Accumulated zonal mass flux [L2 H ~> m3 or kg]

  • vhtr [inout]

    Accumulated meridional mass flux [L2 H ~> m3 or kg]

  • tv [in]

    Thermodynamics structure

  • dt [in]

    Time increment [T ~> s]

  • MEKE [inout]

    MEKE fields

  • VarMix [in]

    Variable mixing coefficients

  • CDp [inout]

    Diagnostics for the continuity equation

  • CS [inout]

    Control structure for thickness_diffuse

  • STOCH [inout]

    Stochastic control structure

  • u [in]

    Zonal velocity [L T-1 ~> m s-1].

  • v [in]

    Meridional velocity [L T-1 ~> m s-1].

  • cg1

    Wave speed [L T-1 ~> m s-1]

Callees call graph
Callees of mom_thickness_diffuse::thickness_diffuse calls cluster_mom_checksums MOM_checksums cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_interface_heights MOM_interface_heights cluster_mom_meso_sfn_ann MOM_meso_sfn_ANN cluster_mom_thickness_diffuse MOM_thickness_diffuse mom_checksums::interface::hchksum hchksum (interface) mom_checksums::interface::uvchksum uvchksum (interface) mom_diag_mediator::diag_update_remap_grids diag_update_remap_grids mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::query_averaging_enabled query_averaging_enabled mom_error_handler::mom_error MOM_error mom_interface_heights::interface::find_eta find_eta (interface) mom_meso_sfn_ann::meso_sfn_ann_compute meso_sfn_ANN_compute mom_thickness_diffuse::add_detangling_kh add_detangling_Kh [private/internal] mom_thickness_diffuse::add_interface_kh add_interface_Kh [private/internal] mom_thickness_diffuse::thickness_diffuse thickness_diffuse mom_thickness_diffuse::thickness_diffuse->mom_checksums::interface::hchksum mom_thickness_diffuse::thickness_diffuse->mom_checksums::interface::uvchksum mom_thickness_diffuse::thickness_diffuse->mom_diag_mediator::diag_update_remap_grids mom_thickness_diffuse::thickness_diffuse->mom_diag_mediator::interface::post_data mom_thickness_diffuse::thickness_diffuse->mom_diag_mediator::query_averaging_enabled mom_thickness_diffuse::thickness_diffuse->mom_error_handler::mom_error mom_thickness_diffuse::thickness_diffuse->mom_interface_heights::interface::find_eta mom_thickness_diffuse::thickness_diffuse->mom_meso_sfn_ann::meso_sfn_ann_compute mom_thickness_diffuse::thickness_diffuse->mom_thickness_diffuse::add_detangling_kh mom_thickness_diffuse::thickness_diffuse->mom_thickness_diffuse::add_interface_kh mom_thickness_diffuse::thickness_diffuse_full thickness_diffuse_full [private/internal] mom_thickness_diffuse::thickness_diffuse->mom_thickness_diffuse::thickness_diffuse_full
Text view
Callers call graph
Callers of mom_thickness_diffuse::thickness_diffuse calls cluster_mom MOM cluster_mom_thickness_diffuse MOM_thickness_diffuse mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom_thickness_diffuse::thickness_diffuse thickness_diffuse mom::step_mom_dynamics->mom_thickness_diffuse::thickness_diffuse
Text view
subroutine thickness_diffuse_full(h, e, Kh_u, Kh_v, tv, uhD, vhD, cg1, dt, G, GV, US, MEKE, CS, int_slope_u, int_slope_v, slope_x, slope_y, STOCH, VarMix, Sfn_unlim_u_3D, Sfn_unlim_v_3D)

Calculates parameterized layer transports for use in the continuity equation. Fluxes are limited to give positive definite thicknesses. Called by thickness_diffuse().

Parameters
  • G [in]

    Ocean grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • h [in]

    Layer thickness [H ~> m or kg m-2]

  • e [in]

    Interface positions [Z ~> m]

  • Kh_u [in]

    Isopycnal height diffusivity at u points [L2 T-1 ~> m2 s-1]

  • Kh_v [in]

    Isopycnal height diffusivity at v points [L2 T-1 ~> m2 s-1]

  • tv [in]

    Thermodynamics structure

  • uhD [out]

    Zonal mass fluxes [H L2 T-1 ~> m3 s-1 or kg s-1]

  • vhD [out]

    Meridional mass fluxes [H L2 T-1 ~> m3 s-1 or kg s-1]

  • cg1

    Wave speed [L T-1 ~> m s-1]

  • dt [in]

    Time increment [T ~> s]

  • MEKE [inout]

    MEKE fields

  • CS [inout]

    Control structure for thickness_diffuse

  • int_slope_u [in]

    Ratio that determine how much of the isopycnal slopes are taken directly from the interface slopes without consideration of density gradients [nondim].

  • int_slope_v [in]

    Ratio that determine how much of the isopycnal slopes are taken directly from the interface slopes without consideration of density gradients [nondim].

  • slope_x [in]

    Isopyc. slope at u [Z L-1 ~> nondim]

  • slope_y [in]

    Isopyc. slope at v [Z L-1 ~> nondim]

  • Sfn_unlim_u_3D [in]

    ANN streamfunction at u [Z L2 T-1 ~> m3 s-1]

  • Sfn_unlim_v_3D [in]

    ANN streamfunction at v [Z L2 T-1 ~> m3 s-1]

  • STOCH [inout]

    Stochastic control structure

  • VarMix [in]

    Variable mixing coefficents

Callees call graph
Callees of mom_thickness_diffuse::thickness_diffuse_full calls cluster_mom_checksums MOM_checksums cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_eos MOM_EOS cluster_mom_error_handler MOM_error_handler cluster_mom_interface_heights MOM_interface_heights cluster_mom_isopycnal_slopes MOM_isopycnal_slopes cluster_mom_thickness_diffuse MOM_thickness_diffuse mom_checksums::interface::hchksum hchksum (interface) mom_checksums::interface::uvchksum uvchksum (interface) mom_diag_mediator::interface::post_data post_data (interface) mom_eos::eos_domain EOS_domain mom_eos::interface::calculate_density_derivs calculate_density_derivs (interface) mom_eos::interface::calculate_density_second_derivs calculate_density_second_derivs (interface) mom_error_handler::mom_error MOM_error mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_isopycnal_slopes::vert_fill_ts vert_fill_TS mom_thickness_diffuse::streamfn_solver streamfn_solver [private/internal] mom_thickness_diffuse::thickness_diffuse_full thickness_diffuse_full [private/internal] mom_thickness_diffuse::thickness_diffuse_full->mom_checksums::interface::hchksum mom_thickness_diffuse::thickness_diffuse_full->mom_checksums::interface::uvchksum mom_thickness_diffuse::thickness_diffuse_full->mom_diag_mediator::interface::post_data mom_thickness_diffuse::thickness_diffuse_full->mom_eos::eos_domain mom_thickness_diffuse::thickness_diffuse_full->mom_eos::interface::calculate_density_derivs mom_thickness_diffuse::thickness_diffuse_full->mom_eos::interface::calculate_density_second_derivs mom_thickness_diffuse::thickness_diffuse_full->mom_error_handler::mom_error mom_thickness_diffuse::thickness_diffuse_full->mom_interface_heights::interface::thickness_to_dz mom_thickness_diffuse::thickness_diffuse_full->mom_isopycnal_slopes::vert_fill_ts mom_thickness_diffuse::thickness_diffuse_full->mom_thickness_diffuse::streamfn_solver
Text view
Callers call graph
Callers of mom_thickness_diffuse::thickness_diffuse_full calls cluster_mom_thickness_diffuse MOM_thickness_diffuse mom_thickness_diffuse::thickness_diffuse thickness_diffuse mom_thickness_diffuse::thickness_diffuse_full thickness_diffuse_full [private/internal] mom_thickness_diffuse::thickness_diffuse->mom_thickness_diffuse::thickness_diffuse_full
Text view
subroutine streamfn_solver(nk, c2_h, hN2, sfn)

Tridiagonal solver for streamfunction at interfaces

Parameters
  • nk [in]

    Number of layers

  • c2_h [in]

    Wave speed squared over thickness in layers, rescaled to [H L2 Z-2 T-2 ~> m s-2 or kg m-2 s-2]

  • hN2 [in]

    Thickness times N2 at interfaces times rescaling factors [H L2 Z-2 T-2 ~> m s-2 or kg m-2 s-2]

  • sfn [inout]

    Streamfunction [H L2 T-1 ~> m3 s-1 or kg s-1] or arbitrary units On entry, equals diffusivity times slope. On exit, equals the streamfunction.

Callers call graph
Callers of mom_thickness_diffuse::streamfn_solver calls cluster_mom_thickness_diffuse MOM_thickness_diffuse mom_thickness_diffuse::streamfn_solver streamfn_solver [private/internal] mom_thickness_diffuse::thickness_diffuse_full thickness_diffuse_full [private/internal] mom_thickness_diffuse::thickness_diffuse_full->mom_thickness_diffuse::streamfn_solver
Text view
subroutine add_interface_Kh(G, GV, US, CS, Kh_u, Kh_v, Kh_u_CFL, Kh_v_CFL, int_slope_u, int_slope_v)

Add a diffusivity that acts on the isopycnal heights, regardless of the densities

Parameters
  • G [in]

    Ocean grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Control structure for thickness_diffuse

  • Kh_u [inout]

    Isopycnal height diffusivity at u points [L2 T-1 ~> m2 s-1]

  • Kh_v [inout]

    Isopycnal height diffusivity at v points [L2 T-1 ~> m2 s-1]

  • Kh_u_CFL [in]

    Maximum stable isopycnal height diffusivity at u points [L2 T-1 ~> m2 s-1]

  • Kh_v_CFL [in]

    Maximum stable isopycnal height diffusivity at v points [L2 T-1 ~> m2 s-1]

  • int_slope_u [inout]

    Ratio that determine how much of the isopycnal slopes are taken directly from the interface slopes without consideration of density gradients [nondim].

  • int_slope_v [inout]

    Ratio that determine how much of the isopycnal slopes are taken directly from the interface slopes without consideration of density gradients [nondim].

Callers call graph
Callers of mom_thickness_diffuse::add_interface_kh calls cluster_mom_thickness_diffuse MOM_thickness_diffuse mom_thickness_diffuse::add_interface_kh add_interface_Kh [private/internal] mom_thickness_diffuse::thickness_diffuse thickness_diffuse mom_thickness_diffuse::thickness_diffuse->mom_thickness_diffuse::add_interface_kh
Text view
subroutine add_detangling_Kh(h, e, Kh_u, Kh_v, KH_u_CFL, KH_v_CFL, tv, dt, G, GV, US, CS, int_slope_u, int_slope_v)

Modifies isopycnal height diffusivities to untangle layer structures

Parameters
  • G [in]

    Ocean grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • h [in]

    Layer thickness [H ~> m or kg m-2]

  • e [in]

    Interface positions [Z ~> m]

  • Kh_u [inout]

    Isopycnal height diffusivity at u points [L2 T-1 ~> m2 s-1]

  • Kh_v [inout]

    Isopycnal height diffusivity at v points [L2 T-1 ~> m2 s-1]

  • Kh_u_CFL [in]

    Maximum stable isopycnal height diffusivity at u points [L2 T-1 ~> m2 s-1]

  • Kh_v_CFL [in]

    Maximum stable isopycnal height diffusivity at v points [L2 T-1 ~> m2 s-1]

  • tv [in]

    Thermodynamics structure

  • dt [in]

    Time increment [T ~> s]

  • CS [in]

    Control structure for thickness_diffuse

  • int_slope_u [inout]

    Ratio that determine how much of the isopycnal slopes are taken directly from the interface slopes without consideration of density gradients [nondim].

  • int_slope_v [inout]

    Ratio that determine how much of the isopycnal slopes are taken directly from the interface slopes without consideration of density gradients [nondim].

Callers call graph
Callers of mom_thickness_diffuse::add_detangling_kh calls cluster_mom_thickness_diffuse MOM_thickness_diffuse mom_thickness_diffuse::add_detangling_kh add_detangling_Kh [private/internal] mom_thickness_diffuse::thickness_diffuse thickness_diffuse mom_thickness_diffuse::thickness_diffuse->mom_thickness_diffuse::add_detangling_kh
Text view
subroutine thickness_diffuse_init(Time, G, GV, US, param_file, diag, CDp, CS)

Initialize the isopycnal height diffusion module and its control structure

Parameters
  • Time [in]

    Current model time

  • G [in]

    Ocean grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    Parameter file handles

  • diag [inout]

    Diagnostics control structure

  • CDp [inout]

    Continuity equation diagnostics

  • CS [inout]

    Control structure for thickness_diffuse

Callees call graph
Callees of mom_thickness_diffuse::thickness_diffuse_init calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_meso_sfn_ann MOM_meso_sfn_ANN cluster_mom_safe_alloc MOM_safe_alloc cluster_mom_string_functions MOM_string_functions cluster_mom_thickness_diffuse MOM_thickness_diffuse mom_diag_mediator::register_diag_field register_diag_field mom_domain_infra::interface::pass_var pass_var (interface) mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_io::interface::mom_read_data MOM_read_data (interface) mom_meso_sfn_ann::meso_sfn_ann_init meso_sfn_ANN_init mom_safe_alloc::interface::safe_alloc_ptr safe_alloc_ptr (interface) mom_string_functions::slasher slasher mom_thickness_diffuse::thickness_diffuse_init thickness_diffuse_init mom_thickness_diffuse::thickness_diffuse_init->mom_diag_mediator::register_diag_field mom_thickness_diffuse::thickness_diffuse_init->mom_domain_infra::interface::pass_var mom_thickness_diffuse::thickness_diffuse_init->mom_error_handler::mom_error mom_thickness_diffuse::thickness_diffuse_init->mom_file_parser::interface::get_param mom_thickness_diffuse::thickness_diffuse_init->mom_file_parser::interface::log_version mom_thickness_diffuse::thickness_diffuse_init->mom_io::interface::mom_read_data mom_thickness_diffuse::thickness_diffuse_init->mom_meso_sfn_ann::meso_sfn_ann_init mom_thickness_diffuse::thickness_diffuse_init->mom_safe_alloc::interface::safe_alloc_ptr mom_thickness_diffuse::thickness_diffuse_init->mom_string_functions::slasher
Text view
Callers call graph
Callers of mom_thickness_diffuse::thickness_diffuse_init calls cluster_mom MOM cluster_mom_thickness_diffuse MOM_thickness_diffuse mom::initialize_mom initialize_MOM mom_thickness_diffuse::thickness_diffuse_init thickness_diffuse_init mom::initialize_mom->mom_thickness_diffuse::thickness_diffuse_init
Text view
subroutine thickness_diffuse_get_KH(CS, KH_u_GME, KH_v_GME, G, GV)

Copies KH_u_GME and KH_v_GME from private type into arrays provided as arguments

Parameters
  • CS [in]

    Control structure for this module

  • G [in]

    Grid structure

  • GV [in]

    Vertical grid structure

  • KH_u_GME [inout]

    Isopycnal height diffusivities at u-faces [L2 T-1 ~> m2 s-1]

  • KH_v_GME [inout]

    Isopycnal height diffusivities at v-faces [L2 T-1 ~> m2 s-1]

Callers call graph
Callers of mom_thickness_diffuse::thickness_diffuse_get_kh calls cluster_mom_hor_visc MOM_hor_visc cluster_mom_thickness_diffuse MOM_thickness_diffuse mom_hor_visc::hor_visc_gme_setup hor_visc_GME_setup [private/internal] mom_thickness_diffuse::thickness_diffuse_get_kh thickness_diffuse_get_KH mom_hor_visc::hor_visc_gme_setup->mom_thickness_diffuse::thickness_diffuse_get_kh
Text view
subroutine thickness_diffuse_end(CS, CDp)

Deallocate the thickness_diffus3 control structure

Parameters
  • CS [inout]

    Control structure for thickness_diffuse

  • CDp [inout]

    Continuity diagnostic control structure

Callers call graph
Callers of mom_thickness_diffuse::thickness_diffuse_end calls cluster_mom MOM cluster_mom_thickness_diffuse MOM_thickness_diffuse mom::mom_end MOM_end mom_thickness_diffuse::thickness_diffuse_end thickness_diffuse_end mom::mom_end->mom_thickness_diffuse::thickness_diffuse_end
Text view
API generated with Flint · Rendered from reStructuredText