MOM_int_tide_input module reference

Calculates energy input to the internal tides

Data Types

int_tide_input_CS

This control structure holds parameters that regulate internal tide energy inputs.

int_tide_input_type

This type is used to exchange fields related to the internal tides.

Functions/Subroutines

set_int_tide_input

Sets the model-state dependent internal tide energy sources.

find_N2_bottom

Estimates the near-bottom buoyancy frequency (N^2).

get_input_TKE

Returns TKE_itidal_input

get_barotropic_tidal_vel

Returns barotropic tidal velocities

int_tide_input_init

Initializes the data related to the internal tide input module

int_tide_input_end

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
Callees of mom_int_tide_input::set_int_tide_input calls cluster_mom_checksums MOM_checksums cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_isopycnal_slopes MOM_isopycnal_slopes mom_checksums::interface::hchksum hchksum (interface) mom_diag_mediator::disable_averaging disable_averaging mom_diag_mediator::enable_averages enable_averages 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_int_tide_input::find_n2_bottom find_N2_bottom [private/internal] mom_int_tide_input::set_int_tide_input set_int_tide_input 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_isopycnal_slopes::vert_fill_ts vert_fill_TS mom_int_tide_input::set_int_tide_input->mom_isopycnal_slopes::vert_fill_ts
Text view
Callers call graph
Callers of mom_int_tide_input::set_int_tide_input calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_int_tide_input MOM_int_tide_input mom_diabatic_driver::diabatic diabatic mom_int_tide_input::set_int_tide_input set_int_tide_input mom_diabatic_driver::diabatic->mom_int_tide_input::set_int_tide_input
Text view
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
Callees of mom_int_tide_input::find_n2_bottom calls cluster_mom_eos MOM_EOS cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_interface_heights MOM_interface_heights mom_eos::eos_domain EOS_domain mom_eos::interface::calculate_density_derivs calculate_density_derivs (interface) mom_int_tide_input::find_n2_bottom find_N2_bottom [private/internal] mom_int_tide_input::find_n2_bottom->mom_eos::eos_domain mom_int_tide_input::find_n2_bottom->mom_eos::interface::calculate_density_derivs mom_interface_heights::find_rho_bottom find_rho_bottom mom_int_tide_input::find_n2_bottom->mom_interface_heights::find_rho_bottom mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_int_tide_input::find_n2_bottom->mom_interface_heights::interface::thickness_to_dz
Text view
Callers call graph
Callers of mom_int_tide_input::find_n2_bottom calls cluster_mom_int_tide_input MOM_int_tide_input mom_int_tide_input::find_n2_bottom find_N2_bottom [private/internal] mom_int_tide_input::set_int_tide_input set_int_tide_input mom_int_tide_input::set_int_tide_input->mom_int_tide_input::find_n2_bottom
Text view
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
Callers of mom_int_tide_input::get_input_tke calls cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_internal_tides MOM_internal_tides mom_int_tide_input::get_input_tke get_input_TKE mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_int_tide_input::get_input_tke
Text view
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
Callers of mom_int_tide_input::get_barotropic_tidal_vel calls cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_internal_tides MOM_internal_tides mom_int_tide_input::get_barotropic_tidal_vel get_barotropic_tidal_vel mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_int_tide_input::get_barotropic_tidal_vel
Text view
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
Callees of mom_int_tide_input::int_tide_input_init calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_io MOM_io cluster_mom_string_functions MOM_string_functions mom_diag_mediator::register_diag_field register_diag_field mom_error_handler::mom_error MOM_error 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_file_parser::interface::read_param read_param (interface) mom_int_tide_input::int_tide_input_init int_tide_input_init 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_io::interface::mom_read_data MOM_read_data (interface) mom_int_tide_input::int_tide_input_init->mom_io::interface::mom_read_data mom_string_functions::extractword extractWord mom_int_tide_input::int_tide_input_init->mom_string_functions::extractword mom_string_functions::slasher slasher mom_int_tide_input::int_tide_input_init->mom_string_functions::slasher
Text view
Callers call graph
Callers of mom_int_tide_input::int_tide_input_init calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_int_tide_input MOM_int_tide_input mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_int_tide_input::int_tide_input_init int_tide_input_init mom_diabatic_driver::diabatic_driver_init->mom_int_tide_input::int_tide_input_init
Text view

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.

API generated with Flint · Rendered from reStructuredText