MOM_tidal_mixing module reference
Interface to vertical tidal mixing schemes including CVMix tidal mixing.
Data Types
Containers for tidal mixing diagnostics |
|
Control structure with parameters for the tidal mixing module. |
Functions/Subroutines
Initializes internal tidal dissipation scheme for diapycnal 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. |
|
Calls the CVMix routines to compute tidal dissipation and to add the effect of internal-tide-driven mixing to the interface diffusivities. |
|
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.). |
|
Sets up diagnostics arrays for tidal mixing. |
|
This subroutine offers up diagnostics of the tidal mixing. |
|
This subroutine returns a zonal slice of the topographic roughness amplitudes |
|
This subroutine read tidal energy inputs from a file. |
|
This subroutine reads tidal input energy from a file by constituent. |
|
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
Text view
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
Callers call graph
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
Callers call graph
- 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
Callers call graph
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
Callers call graph
- 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
Callers call graph
- 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
Callers call graph
- 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
- 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
Text view
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
Callers call graph
- 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
Text view
Callers call graph
- subroutine tidal_mixing_end(CS)
Deallocate fields
- Parameters
CS [inout]
This module's control structure, which will be deallocated in this routine.