MOM_tidal_mixing module reference

Interface to vertical tidal mixing schemes including CVMix tidal mixing.

Data Types

tidal_mixing_diags

Containers for tidal mixing diagnostics

tidal_mixing_cs

Control structure with parameters for the tidal mixing module.

Functions/Subroutines

tidal_mixing_init

Initializes internal tidal dissipation scheme for diapycnal mixing

calculate_tidal_mixing

Depending on whether or not CVMix is active, calls the associated subroutine to compute internal tidal dissipation and to add the effect of internal-tide-driven mixing to the layer or interface diffusivities.

calculate_CVMix_tidal

Calls the CVMix routines to compute tidal dissipation and to add the effect of internal-tide-driven mixing to the interface diffusivities.

add_int_tide_diffusivity

This subroutine adds the effect of internal-tide-driven mixing to the layer diffusivities. The mechanisms considered are (1) local dissipation of internal waves generated by the barotropic flow ("itidal"), (2) local dissipation of internal waves generated by the propagating low modes (rays) of the internal tide ("lowmode"), and (3) local dissipation of internal lee waves. Will eventually need to add diffusivity due to other wave-breaking processes (e.g. Bottom friction, Froude-number-depending breaking, PSI, etc.).

setup_tidal_diagnostics

Sets up diagnostics arrays for tidal mixing.

post_tidal_diagnostics

This subroutine offers up diagnostics of the tidal mixing.

tidal_mixing_h_amp

This subroutine returns a zonal slice of the topographic roughness amplitudes

read_tidal_energy

This subroutine read tidal energy inputs from a file.

read_tidal_constituents

This subroutine reads tidal input energy from a file by constituent.

tidal_mixing_end

Deallocate fields

Type Documentation

type, public :: tidal_mixing_diags

Containers for tidal mixing diagnostics

Parameters
  • Kd_itidal

    internal tide diffusivity at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1]

  • Fl_itidal

    vertical flux of tidal turbulent dissipation [H Z2 T-3 ~> m3 s-3 or W m-2]

  • Kd_Niku

    lee-wave diffusivity at interfaces [H Z T-1 ~> m2 s-1 or kg m-1 s-1]

  • Kd_Niku_work

    layer integrated work by lee-wave driven mixing [R Z3 T-3 ~> W m-2]

  • Kd_Itidal_Work

    layer integrated work by int tide driven mixing [R Z3 T-3 ~> W m-2]

  • Kd_Lowmode_Work

    layer integrated work by low mode driven mixing [R Z3 T-3 ~> W m-2]

  • N2_int

    Buoyancy frequency squared at interfaces [T-2 ~> s-2]

  • vert_dep_3d

    The 3-d mixing energy deposition vertical fraction [nondim]?

  • Schmittner_coeff_3d

    The coefficient in the Schmittner et al mixing scheme [nondim]

  • tidal_qe_md

    Input tidal energy dissipated locally, interpolated to model vertical coordinate [R Z3 T-3 ~> W m-2]

  • Kd_lowmode

    internal tide diffusivity at interfaces due to propagating low modes [H Z T-1 ~> m2 s-1 or kg m-1 s-1]

  • Fl_lowmode

    vertical flux of tidal turbulent dissipation due to propagating low modes [H Z2 T-3 ~> m3 s-3 or W m-2]

  • TKE_itidal_used

    internal tide TKE input at ocean bottom [R Z3 T-3 ~> W m-2]

  • N2_bot

    bottom squared buoyancy frequency [T-2 ~> s-2]

  • N2_meanz

    vertically averaged buoyancy frequency [T-2 ~> s-2]

  • Polzin_decay_scale_scaled

    Vertical scale of decay for tidal dissipation [Z ~> m]

  • Polzin_decay_scale

    Vertical decay scale for tidal dissipation with Polzin [Z ~> m]

  • Simmons_coeff_2d

    The Simmons et al mixing coefficient [nondim]

type, public :: tidal_mixing_cs

Control structure with parameters for the tidal mixing module.

Parameters
  • debug

    If true, do more extensive debugging checks. This is hard-coded.

  • int_tide_dissipation

    Internal tide conversion (from barotropic) with the schemes of St Laurent et al (2002) & Simmons et al (2004)

  • Int_tide_profile

    A coded integer indicating the vertical profile for dissipation of the internal waves. Schemes that are currently encoded are St Laurent et al (2002) and Polzin (2009).

  • Lee_wave_dissipation

    Enable lee-wave driven mixing, following Nikurashin (2010), with a vertical energy deposition profile specified by Lee_wave_profile to be St Laurent et al (2002) or Simmons et al (2004) scheme

  • Lee_wave_profile

    A coded integer indicating the vertical profile for dissipation of the lee waves. Schemes that are currently encoded are St Laurent et al (2002) and Polzin (2009).

  • Int_tide_decay_scale

    decay scale for internal wave TKE [Z ~> m]

  • Mu_itides

    efficiency for conversion of dissipation to potential energy [nondim]

  • Gamma_itides

    fraction of local dissipation [nondim]

  • Gamma_lee

    fraction of local dissipation for lee waves (Nikurashin's energy input) [nondim]

  • Decay_scale_factor_lee

    Scaling factor for the decay scale of lee wave energy dissipation [nondim]

  • min_zbot_itides

    minimum depth for internal tide conversion [Z ~> m].

  • Lowmode_itidal_dissipation

    If true, consider mixing due to breaking low modes that have been remotely generated using an internal tidal dissipation scheme to specify the vertical profile of the energy input to drive diapycnal mixing, along the lines of St. Laurent et al. (2002) and Simmons et al. (2004).

  • Nu_Polzin

    The non-dimensional constant used in Polzin form of the vertical scale of decay of tidal dissipation [nondim]

  • Nbotref_Polzin

    Reference value for the buoyancy frequency at the ocean bottom used in Polzin formulation of the vertical scale of decay of tidal dissipation [T-1 ~> s-1]

  • Polzin_decay_scale_factor

    Scaling factor for the decay length scale of the tidal dissipation profile in Polzin [nondim]

  • Polzin_decay_scale_max_factor

    The decay length scale of tidal dissipation profile in Polzin formulation should not exceed Polzin_decay_scale_max_factor * depth of the ocean [nondim].

  • Polzin_min_decay_scale

    minimum decay scale of the tidal dissipation profile in Polzin formulation [Z ~> m]

  • TKE_itide_max

    maximum internal tide conversion [R Z3 T-3 ~> W m-2] available to mix above the BBL

  • utide

    constant tidal amplitude [Z T-1 ~> m s-1] if READ_TIDEAMP is false.

  • kappa_itides

    topographic wavenumber and non-dimensional scaling [Z-1 ~> m-1].

  • kappa_h2_factor

    factor for the product of wavenumber * rms sgs height [nondim]

  • inputdir

    The directory in which to find input files

  • use_CVMix_tidal

    true if CVMix is to be used for determining diffusivity due to tidal mixing

  • min_thickness

    Minimum thickness allowed [Z ~> m]

  • CVMix_tidal_scheme

    1 for Simmons, 2 for Schmittner

  • CVMix_tidal_params

    A CVMix-specific type with parameters for tidal mixing

  • CVMix_glb_params

    CVMix-specific for Prandtl number only

  • tidal_max_coef

    CVMix-specific maximum allowable tidal diffusivity. [Z2 T-1 ~> m2 s-1]

  • tidal_diss_lim_tc

    CVMix-specific dissipation limit depth for tidal-energy-constituent data [Z ~> m].

  • remap_CS

    The control structure for remapping

  • remap_answer_date

    The vintage of the order of arithmetic and expressions to use for remapping. Values below 20190101 recover the remapping answers from 2018, while higher values use more robust forms of the same remapping expressions.

  • tidal_answer_date

    The vintage of the order of arithmetic and expressions in the tidal mixing 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.

  • int_tide_CSp

    Control structure for a child module

  • TKE_Niku

    Lee wave driven Turbulent Kinetic Energy input [R Z3 T-3 ~> W m-2]

  • TKE_itidal

    The internal Turbulent Kinetic Energy input divided by the bottom stratification and in non-Boussinesq mode by the near-bottom density [R Z4 H-1 T-2 ~> J m-2 or J m kg-1]

  • Nb

    The near bottom buoyancy frequency [T-1 ~> s-1].

  • mask_itidal

    A mask of where internal tide energy is input [nondim]

  • h2

    Squared bottom depth variance [Z2 ~> m2].

  • tideamp

    RMS tidal amplitude [Z T-1 ~> m s-1]

  • h_src

    tidal constituent input layer thickness [m]

  • tidal_qe_2d

    Tidal energy input times the local dissipation fraction, q*E(x,y), with the CVMix implementation of Jayne et al tidal mixing [R Z3 T-3 ~> W m-2]. TODO: make this E(x,y) only

  • tidal_qe_3d_in

    q*E(x,y,z) with the Schmittner parameterization [R Z3 T-3 ~> W m-2]

  • diag

    structure to regulate diagnostic output timing

  • id_TKE_itidal

    Diagnostic identifiers

  • id_TKE_leewave

    Diagnostic identifiers

  • id_Kd_itidal

    Diagnostic identifiers

  • id_Kd_Niku

    Diagnostic identifiers

  • id_Kd_lowmode

    Diagnostic identifiers

  • id_Kd_Itidal_Work

    Diagnostic identifiers

  • id_Kd_Niku_Work

    Diagnostic identifiers

  • id_Kd_Lowmode_Work

    Diagnostic identifiers

  • id_Nb

    Diagnostic identifiers

  • id_N2_bot

    Diagnostic identifiers

  • id_N2_meanz

    Diagnostic identifiers

  • id_Fl_itidal

    Diagnostic identifiers

  • id_Fl_lowmode

    Diagnostic identifiers

  • id_Polzin_decay_scale

    Diagnostic identifiers

  • id_Polzin_decay_scale_scaled

    Diagnostic identifiers

  • id_N2_int

    Diagnostic identifiers

  • id_Simmons_coeff

    Diagnostic identifiers

  • id_Schmittner_coeff

    Diagnostic identifiers

  • id_tidal_qe_md

    Diagnostic identifiers

  • id_vert_dep

    Diagnostic identifiers

Functions/Subroutine Documentation

logical function tidal_mixing_init(Time, G, GV, US, param_file, int_tide_CSp, diag, CS)

Initializes internal tidal dissipation scheme for diapycnal mixing

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

  • int_tide_CSp

    A pointer to the internal tides control structure

  • diag [inout]

    Diagnostics control structure.

  • CS [inout]

    This module's control structure.

  • mdl

    This module's name.

Callees call graph
Callees of mom_tidal_mixing::tidal_mixing_init calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_string_functions MOM_string_functions cluster_mom_tidal_mixing MOM_tidal_mixing mom_diag_mediator::register_diag_field register_diag_field mom_error_handler::mom_error MOM_error mom_error_infra::is_root_pe is_root_pe mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_param log_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_io::interface::mom_read_data MOM_read_data (interface) mom_io::interface::read_netcdf_data read_netCDF_data (interface) mom_string_functions::lowercase lowercase mom_string_functions::slasher slasher mom_string_functions::uppercase uppercase mom_tidal_mixing::read_tidal_energy read_tidal_energy [private/internal] mom_tidal_mixing::tidal_mixing_init tidal_mixing_init mom_tidal_mixing::tidal_mixing_init->mom_diag_mediator::register_diag_field mom_tidal_mixing::tidal_mixing_init->mom_error_handler::mom_error mom_tidal_mixing::tidal_mixing_init->mom_error_infra::is_root_pe mom_tidal_mixing::tidal_mixing_init->mom_file_parser::interface::get_param mom_tidal_mixing::tidal_mixing_init->mom_file_parser::interface::log_param mom_tidal_mixing::tidal_mixing_init->mom_file_parser::interface::log_version mom_tidal_mixing::tidal_mixing_init->mom_io::interface::mom_read_data mom_tidal_mixing::tidal_mixing_init->mom_io::interface::read_netcdf_data mom_tidal_mixing::tidal_mixing_init->mom_string_functions::lowercase mom_tidal_mixing::tidal_mixing_init->mom_string_functions::slasher mom_tidal_mixing::tidal_mixing_init->mom_string_functions::uppercase mom_tidal_mixing::tidal_mixing_init->mom_tidal_mixing::read_tidal_energy
Text view
Callers call graph
Callers of mom_tidal_mixing::tidal_mixing_init calls cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_tidal_mixing MOM_tidal_mixing mom_set_diffusivity::set_diffusivity_init set_diffusivity_init mom_tidal_mixing::tidal_mixing_init tidal_mixing_init mom_set_diffusivity::set_diffusivity_init->mom_tidal_mixing::tidal_mixing_init
Text view

External calls

cvmix_put_get
  • CVMix_put (cvmix_put_get::cvmix_put)

cvmix_tidal
  • CVMix_init_tidal (cvmix_tidal::cvmix_init_tidal)

subroutine calculate_tidal_mixing(dz, j, N2_bot, Rho_bot, N2_lay, N2_int, TKE_to_Kd, max_TKE, G, GV, US, CS, Kd_max, Kv, Kd_lay, Kd_int, VBF)

Depending on whether or not CVMix is active, calls the associated subroutine to compute internal tidal dissipation and to add the effect of internal-tide-driven mixing to the layer or interface 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]

    The vertical distance across layers [Z ~> m]

  • j [in]

    The j-index to work on

  • N2_bot [in]

    The near-bottom squared buoyancy frequency [T-2 ~> s-2].

  • Rho_bot [in]

    The near-bottom in situ density [R ~> kg m-3]

  • N2_lay [in]

    The squared buoyancy frequency of the layers [T-2 ~> s-2].

  • N2_int [in]

    The squared buoyancy frequency at the interfaces [T-2 ~> s-2].

  • TKE_to_Kd [in]

    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]

  • max_TKE [in]

    The energy required for a layer to entrain to its maximum realizable thickness [H Z2 T-3 ~> m3 s-3 or W m-2]

  • CS [inout]

    The control structure for this module

  • Kd_max [in]

    The maximum increment for diapycnal diffusivity due to TKE-based processes, [H Z T-1 ~> m2 s-1 or kg m-1 s-1] Set this to a negative value to have no limit.

  • Kv

    The "slow" vertical viscosity at each interface (not layer!) [H Z T-1 ~> m2 s-1 or Pa s]

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

  • VBF

    A diagnostic structure for vertical buoyancy fluxes

Callees call graph
Callees of mom_tidal_mixing::calculate_tidal_mixing calls cluster_mom_tidal_mixing MOM_tidal_mixing mom_tidal_mixing::add_int_tide_diffusivity add_int_tide_diffusivity [private/internal] mom_tidal_mixing::calculate_cvmix_tidal calculate_CVMix_tidal [private/internal] mom_tidal_mixing::calculate_tidal_mixing calculate_tidal_mixing mom_tidal_mixing::calculate_tidal_mixing->mom_tidal_mixing::add_int_tide_diffusivity mom_tidal_mixing::calculate_tidal_mixing->mom_tidal_mixing::calculate_cvmix_tidal
Text view
Callers call graph
Callers of mom_tidal_mixing::calculate_tidal_mixing calls cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_tidal_mixing MOM_tidal_mixing mom_set_diffusivity::set_diffusivity set_diffusivity mom_tidal_mixing::calculate_tidal_mixing calculate_tidal_mixing mom_set_diffusivity::set_diffusivity->mom_tidal_mixing::calculate_tidal_mixing
Text view
subroutine calculate_CVMix_tidal(dz, j, N2_int, G, GV, US, CS, Kv, Kd_lay, Kd_int)

Calls the CVMix routines to compute tidal dissipation and to add the effect of internal-tide-driven mixing to the interface diffusivities.

Parameters
  • G [in]

    Grid structure.

  • GV [in]

    ocean vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • CS [inout]

    This module's control structure.

  • dz [in]

    The vertical distance across layers [Z ~> m]

  • j [in]

    The j-index to work on

  • N2_int [in]

    The squared buoyancy frequency at the interfaces [T-2 ~> s-2].

  • Kv

    The "slow" vertical viscosity at each interface (not layer!) [H Z T-1 ~> m2 s-1 or Pa s]

  • Kd_lay [inout]

    The diapycnal diffusivity in the 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].

Callees call graph
Callees of mom_tidal_mixing::calculate_cvmix_tidal calls cluster_mom_error_handler MOM_error_handler cluster_mom_remapping MOM_remapping cluster_mom_tidal_mixing MOM_tidal_mixing mom_error_handler::mom_error MOM_error mom_remapping::remapping_core_h remapping_core_h mom_tidal_mixing::calculate_cvmix_tidal calculate_CVMix_tidal [private/internal] mom_tidal_mixing::calculate_cvmix_tidal->mom_error_handler::mom_error mom_tidal_mixing::calculate_cvmix_tidal->mom_remapping::remapping_core_h
Text view
Callers call graph
Callers of mom_tidal_mixing::calculate_cvmix_tidal calls cluster_mom_tidal_mixing MOM_tidal_mixing mom_tidal_mixing::calculate_cvmix_tidal calculate_CVMix_tidal [private/internal] mom_tidal_mixing::calculate_tidal_mixing calculate_tidal_mixing mom_tidal_mixing::calculate_tidal_mixing->mom_tidal_mixing::calculate_cvmix_tidal
Text view

External calls

cvmix_tidal
  • CVMix_coeffs_tidal (cvmix_tidal::cvmix_coeffs_tidal)

  • CVMix_coeffs_tidal_schmittner (cvmix_tidal::cvmix_coeffs_tidal_schmittner)

  • CVMix_compute_SchmittnerCoeff (cvmix_tidal::cvmix_compute_schmittnercoeff)

  • CVMix_compute_Schmittner_invariant (cvmix_tidal::cvmix_compute_schmittner_invariant)

  • CVMix_compute_Simmons_invariant (cvmix_tidal::cvmix_compute_simmons_invariant)

subroutine add_int_tide_diffusivity(dz, j, N2_bot, Rho_bot, N2_lay, TKE_to_Kd, max_TKE, G, GV, US, CS, Kd_max, Kd_lay, Kd_int, VBF)

This subroutine adds the effect of internal-tide-driven mixing to the layer diffusivities. The mechanisms considered are (1) local dissipation of internal waves generated by the barotropic flow ("itidal"), (2) local dissipation of internal waves generated by the propagating low modes (rays) of the internal tide ("lowmode"), and (3) local dissipation of internal lee waves. Will eventually need to add diffusivity due to other wave-breaking processes (e.g. Bottom friction, Froude-number-depending breaking, PSI, etc.).

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]

    The vertical distance across layers [Z ~> m]

  • j [in]

    The j-index to work on

  • N2_bot [in]

    The near-bottom squared buoyancy frequency frequency [T-2 ~> s-2].

  • Rho_bot [in]

    The near-bottom in situ density [R ~> kg m-3]

  • N2_lay [in]

    The squared buoyancy frequency of the layers [T-2 ~> s-2].

  • TKE_to_Kd [in]

    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]

  • max_TKE [in]

    The energy required for a layer to entrain to its maximum realizable thickness [H Z2 T-3 ~> m3 s-3 or W m-2]

  • CS [inout]

    The control structure for this module

  • Kd_max [in]

    The maximum increment for diapycnal diffusivity due to TKE-based processes [H Z T-1 ~> m2 s-1 or kg m-1 s-1]. Set this to a negative value to have no limit.

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

  • VBF

    A diagnostics structure for vertical buoyancy fluxes

Callees call graph
Callees of mom_tidal_mixing::add_int_tide_diffusivity calls cluster_mom_internal_tides MOM_internal_tides cluster_mom_tidal_mixing MOM_tidal_mixing mom_internal_tides::get_lowmode_loss get_lowmode_loss mom_tidal_mixing::add_int_tide_diffusivity add_int_tide_diffusivity [private/internal] mom_tidal_mixing::add_int_tide_diffusivity->mom_internal_tides::get_lowmode_loss
Text view
Callers call graph
Callers of mom_tidal_mixing::add_int_tide_diffusivity calls cluster_mom_tidal_mixing MOM_tidal_mixing mom_tidal_mixing::add_int_tide_diffusivity add_int_tide_diffusivity [private/internal] mom_tidal_mixing::calculate_tidal_mixing calculate_tidal_mixing mom_tidal_mixing::calculate_tidal_mixing->mom_tidal_mixing::add_int_tide_diffusivity
Text view
subroutine setup_tidal_diagnostics(G, GV, CS)

Sets up diagnostics arrays for tidal mixing.

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • CS [inout]

    The control structure for this module

Callees call graph
Callees of mom_tidal_mixing::setup_tidal_diagnostics calls cluster_mom_error_handler MOM_error_handler cluster_mom_tidal_mixing MOM_tidal_mixing mom_error_handler::mom_error MOM_error mom_tidal_mixing::setup_tidal_diagnostics setup_tidal_diagnostics mom_tidal_mixing::setup_tidal_diagnostics->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_tidal_mixing::setup_tidal_diagnostics calls cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_tidal_mixing MOM_tidal_mixing mom_set_diffusivity::set_diffusivity set_diffusivity mom_tidal_mixing::setup_tidal_diagnostics setup_tidal_diagnostics mom_set_diffusivity::set_diffusivity->mom_tidal_mixing::setup_tidal_diagnostics
Text view
subroutine post_tidal_diagnostics(G, GV, h, CS)

This subroutine offers up diagnostics of the tidal mixing.

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].

  • CS [inout]

    The control structure for this module

Callees call graph
Callees of mom_tidal_mixing::post_tidal_diagnostics calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_tidal_mixing MOM_tidal_mixing mom_diag_mediator::interface::post_data post_data (interface) mom_tidal_mixing::post_tidal_diagnostics post_tidal_diagnostics mom_tidal_mixing::post_tidal_diagnostics->mom_diag_mediator::interface::post_data
Text view
Callers call graph
Callers of mom_tidal_mixing::post_tidal_diagnostics calls cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_tidal_mixing MOM_tidal_mixing mom_set_diffusivity::set_diffusivity set_diffusivity mom_tidal_mixing::post_tidal_diagnostics post_tidal_diagnostics mom_set_diffusivity::set_diffusivity->mom_tidal_mixing::post_tidal_diagnostics
Text view
subroutine tidal_mixing_h_amp(h_amp, G, j, CS)

This subroutine returns a zonal slice of the topographic roughness amplitudes

Parameters
  • G [in]

    The ocean's grid structure

  • h_amp [out]

    The topographic roughness amplitude [Z ~> m]

  • j [in]

    j-index of the row to work on

  • CS [in]

    The control structure for this module

Callers call graph
Callers of mom_tidal_mixing::tidal_mixing_h_amp calls cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_tidal_mixing MOM_tidal_mixing mom_set_diffusivity::find_n2 find_N2 [private/internal] mom_tidal_mixing::tidal_mixing_h_amp tidal_mixing_h_amp mom_set_diffusivity::find_n2->mom_tidal_mixing::tidal_mixing_h_amp
Text view
subroutine read_tidal_energy(G, GV, US, tidal_energy_type, param_file, CS)

This subroutine read tidal energy inputs from a file.

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • tidal_energy_type [in]

    The type of tidal energy inputs to read

  • param_file [in]

    Run-time parameter file handle

  • CS [inout]

    The control structure for this module

  • mdl

    This module's name.

Callees call graph
Callees of mom_tidal_mixing::read_tidal_energy calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_string_functions MOM_string_functions cluster_mom_tidal_mixing MOM_tidal_mixing mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_io::interface::mom_read_data MOM_read_data (interface) mom_string_functions::uppercase uppercase mom_tidal_mixing::read_tidal_constituents read_tidal_constituents [private/internal] mom_tidal_mixing::read_tidal_energy read_tidal_energy [private/internal] mom_tidal_mixing::read_tidal_energy->mom_error_handler::mom_error mom_tidal_mixing::read_tidal_energy->mom_file_parser::interface::get_param mom_tidal_mixing::read_tidal_energy->mom_io::interface::mom_read_data mom_tidal_mixing::read_tidal_energy->mom_string_functions::uppercase mom_tidal_mixing::read_tidal_energy->mom_tidal_mixing::read_tidal_constituents
Text view
Callers call graph
Callers of mom_tidal_mixing::read_tidal_energy calls cluster_mom_tidal_mixing MOM_tidal_mixing mom_tidal_mixing::read_tidal_energy read_tidal_energy [private/internal] mom_tidal_mixing::tidal_mixing_init tidal_mixing_init mom_tidal_mixing::tidal_mixing_init->mom_tidal_mixing::read_tidal_energy
Text view
subroutine read_tidal_constituents(G, GV, US, tidal_energy_file, param_file, CS)

This subroutine reads tidal input energy from a file by constituent.

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • tidal_energy_file [in]

    The file from which to read tidal energy inputs

  • param_file [in]

    Run-time parameter file handle

  • CS [inout]

    The control structure for this module

Callees call graph
Callees of mom_tidal_mixing::read_tidal_constituents calls cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io cluster_mom_remapping MOM_remapping cluster_mom_tidal_mixing MOM_tidal_mixing mom_error_handler::mom_error MOM_error mom_io::field_size field_size mom_io::interface::mom_read_data MOM_read_data (interface) mom_remapping::initialize_remapping initialize_remapping mom_tidal_mixing::read_tidal_constituents read_tidal_constituents [private/internal] mom_tidal_mixing::read_tidal_constituents->mom_error_handler::mom_error mom_tidal_mixing::read_tidal_constituents->mom_io::field_size mom_tidal_mixing::read_tidal_constituents->mom_io::interface::mom_read_data mom_tidal_mixing::read_tidal_constituents->mom_remapping::initialize_remapping
Text view
Callers call graph
Callers of mom_tidal_mixing::read_tidal_constituents calls cluster_mom_tidal_mixing MOM_tidal_mixing mom_tidal_mixing::read_tidal_constituents read_tidal_constituents [private/internal] mom_tidal_mixing::read_tidal_energy read_tidal_energy [private/internal] mom_tidal_mixing::read_tidal_energy->mom_tidal_mixing::read_tidal_constituents
Text view
subroutine tidal_mixing_end(CS)

Deallocate fields

Parameters
  • CS [inout]

    This module's control structure, which will be deallocated in this routine.

Callers call graph
Callers of mom_tidal_mixing::tidal_mixing_end calls cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_tidal_mixing MOM_tidal_mixing mom_set_diffusivity::set_diffusivity_end set_diffusivity_end mom_tidal_mixing::tidal_mixing_end tidal_mixing_end mom_set_diffusivity::set_diffusivity_end->mom_tidal_mixing::tidal_mixing_end
Text view
API generated with Flint · Rendered from reStructuredText