MOM_int_tide_input module reference
Calculates energy input to the internal tides
Data Types
This control structure holds parameters that regulate internal tide energy inputs. |
|
This type is used to exchange fields related to the internal tides. |
Functions/Subroutines
Sets the model-state dependent internal tide energy sources. |
|
Estimates the near-bottom buoyancy frequency (N^2). |
|
Returns TKE_itidal_input |
|
Returns barotropic tidal velocities |
|
Initializes the data related to the internal tide input module |
|
Deallocates any memory related to the internal tide input module. |
Type Documentation
- type, public :: int_tide_input_CS
This control structure holds parameters that regulate internal tide energy inputs.
- Parameters
initialized
True if this control structure has been initialized.
debug
If true, write verbose checksums for debugging.
diag
A structure that is used to regulate the timing of diagnostic output.
TKE_itide_maxi
Maximum Internal tide conversion available to mix above the BBL [H Z2 T-3 ~> m3 s-3 or W m-2]
kappa_fill
Vertical diffusivity used to interpolate sensible values of T & S into thin layers [H Z T-1 ~> m2 s-1 or kg m-1 s-1]
TKE_itidal_coef
The time-invariant field that enters the TKE_itidal input calculation noting that the stratification and perhaps density are time-varying [R Z4 H-1 T-2 ~> J m-2 or J m kg-1].
TKE_itidal_input
The internal tide TKE input at the bottom of the ocean [H Z2 T-3 ~> m3 s-3 or W m-2].
tideamp
The amplitude of the tidal velocities [L T-1 ~> m s-1].
inputdir
The directory for input files.
int_tide_source_test
If true, apply an arbitrary generation site for internal tide testing
time_max_source
A time for use in testing internal tides
int_tide_source_x
X Location of generation site for internal tide for testing [degrees_E] or [km]
int_tide_source_y
Y Location of generation site for internal tide for testing [degrees_N] or [km]
int_tide_source_i
I Location of generation site
int_tide_source_j
J Location of generation site
int_tide_use_glob_ij
Use global indices for generation site
id_TKE_itidal_itide
Diagnostic IDs
id_Nb
Diagnostic IDs
id_N2_bot
Diagnostic IDs
- type, public :: int_tide_input_type
This type is used to exchange fields related to the internal tides.
- Parameters
h2
The squared topographic roughness height [Z2 ~> m2].
Nb
The bottom stratification [T-1 ~> s-1].
Rho_bot
The bottom density or the Boussinesq reference density [R ~> kg m-3].
Functions/Subroutine Documentation
- subroutine set_int_tide_input(u, v, h, tv, fluxes, itide, dt, G, GV, US, CS)
Sets the model-state dependent internal tide energy sources.
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
u [in]
The zonal velocity [L T-1 ~> m s-1]
v [in]
The meridional velocity [L T-1 ~> m s-1]
h [in]
Layer thicknesses [H ~> m or kg m-2]
tv [in]
A structure containing pointers to the thermodynamic fields
fluxes [in]
A structure of thermodynamic surface fluxes
itide [inout]
A structure containing fields related to the internal tide sources.
dt [in]
The time increment [T ~> s].
CS
This module's control structure.
time_end
For use in testing internal tides (BDM)
Callees call graph
Text view
mom_int_tide_input::set_int_tide_input → mom_checksums::interface::hchksum
mom_int_tide_input::set_int_tide_input → mom_diag_mediator::disable_averaging
mom_int_tide_input::set_int_tide_input → mom_diag_mediator::enable_averages
mom_int_tide_input::set_int_tide_input → mom_diag_mediator::interface::post_data
mom_int_tide_input::set_int_tide_input → mom_diag_mediator::query_averaging_enabled
mom_int_tide_input::set_int_tide_input → mom_error_handler::mom_error
mom_int_tide_input::set_int_tide_input → mom_int_tide_input::find_n2_bottom
mom_int_tide_input::set_int_tide_input → mom_isopycnal_slopes::vert_fill_ts
- subroutine find_N2_bottom(G, GV, US, tv, fluxes, h, T_f, S_f, h2, N2_bot, Rho_bot, h_bot, k_bot)
Estimates the near-bottom buoyancy frequency (N^2).
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
tv [in]
A structure containing pointers to the thermodynamic fields
fluxes [in]
A structure of thermodynamic surface fluxes
h [in]
Layer thicknesses [H ~> m or kg m-2]
T_f [in]
Temperature after vertical filtering to smooth out the values in thin layers [C ~> degC].
S_f [in]
Salinity after vertical filtering to smooth out the values in thin layers [S ~> ppt].
h2 [in]
Bottom topographic roughness [Z2 ~> m2].
N2_bot [out]
The squared buoyancy frequency at the ocean bottom [T-2 ~> s-2].
Rho_bot [out]
The average density near the ocean bottom [R ~> kg m-3]
h_bot [out]
Bottom boundary layer thickness [H ~> m or kg m-2]
k_bot [out]
Bottom boundary layer top layer index
Callees call graph
Callers call graph
- subroutine get_input_TKE(G, TKE_itidal_input, nFreq, CS)
Returns TKE_itidal_input
- Parameters
G [in]
The ocean's grid structure (in).
nFreq [in]
number of frequencies
TKE_itidal_input [out]
The energy input to the internal waves [H Z2 T-3 ~> m3 s-3 or W m-2].
CS
A pointer that is set to point to the control structure for the internal tide input module.
Callers call graph
- subroutine get_barotropic_tidal_vel(G, vel_btTide, nFreq, CS)
Returns barotropic tidal velocities
- Parameters
G [in]
The ocean's grid structure (in).
nFreq [in]
number of frequencies
vel_btTide [out]
Barotropic velocity read from file [L T-1 ~> m s-1].
CS
A pointer that is set to point to the control structure for the internal tide input module.
Callers call graph
- subroutine int_tide_input_init(Time, G, GV, US, param_file, diag, CS, itide)
Initializes the data related to the internal tide input module
- Parameters
Time [in]
The current model time
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
param_file [in]
A structure to parse for run-time parameters
diag [inout]
structure used to regulate diagnostic output.
CS
This module's control structure, which is initialized here.
itide
A structure containing fields related to the internal tide sources.
tlen_days
Time interval from start for adding wave source for testing internal tides (BDM)
Callees call graph
Text view
mom_int_tide_input::int_tide_input_init → mom_diag_mediator::register_diag_field
mom_int_tide_input::int_tide_input_init → mom_error_handler::mom_error
mom_int_tide_input::int_tide_input_init → mom_file_parser::interface::get_param
mom_int_tide_input::int_tide_input_init → mom_file_parser::interface::log_param
mom_int_tide_input::int_tide_input_init → mom_file_parser::interface::log_version
mom_int_tide_input::int_tide_input_init → mom_file_parser::interface::read_param
mom_int_tide_input::int_tide_input_init → mom_io::interface::mom_read_data
mom_int_tide_input::int_tide_input_init → mom_string_functions::extractword
mom_int_tide_input::int_tide_input_init → mom_string_functions::slasher
Callers call graph
External calls
- time_manager_mod
set_time (time_manager_mod::set_time)
- subroutine int_tide_input_end(CS)
Deallocates any memory related to the internal tide input module.
- Parameters
CS
This module's control structure, which is deallocated here.