MOM_wave_interface module reference

Interface for surface waves

Data Types

wave_parameters_CS

Container for all surface wave related parameters

Functions/Subroutines

MOM_wave_interface_init

Initializes parameters related to MOM_wave_interface

set_LF17_wave_params

Set the parameters that are used to determine the averaged Stokes drift and Langmuir numbers

query_wave_properties

This interface provides the caller with information from the waves control structure.

Update_Surface_Waves

Subroutine that handles updating of surface wave/Stokes drift related properties

Update_Stokes_Drift

Constructs the Stokes Drift profile on the model grid based on desired coupling options

one_minus_exp_x

Return the value of (1 - exp(-x))/x [nondim], using an accurate expression for small values of x.

one_minus_exp

Return the value of (1 - exp(-x)) [nondim], using an accurate expression for small values of x.

Surface_Bands_by_data_override

A subroutine to fill the Stokes drift from a NetCDF file using the data_override procedures.

get_Langmuir_Number

Interface to get Langmuir number based on options stored in wave structure

get_wave_method

function to return the wave method string set in the param file

get_StokesSL_LiFoxKemper

Get SL averaged Stokes drift from Li/FK 17 method

Get_SL_Average_Prof

Get SL Averaged Stokes drift from a Stokes drift Profile

Get_SL_Average_Band

Get SL averaged Stokes drift from the banded Spectrum method

DHH85_mid

Compute the Stokes drift at a given depth

StokesMixing

Explicit solver for Stokes mixing. Still in development do not use.

CoriolisStokes

Solver to add Coriolis-Stokes to model Still in development and not meant for general use. Can be activated (with code intervention) for LES comparison CHECK THAT RIGHT TIMESTEP IS PASSED IF YOU USE THIS**

Stokes_PGF

Computes tendency due to Stokes pressure gradient force anomaly including analytical integration of Stokes shear using multiple-exponential decay Stokes drift profile and vertical integration of the resulting pressure anomaly to the total pressure gradient force

ust_2_u10_coare3p5

Computes wind speed from ustar_air based on COARE 3.5 Cd relationship Probably doesn't belong in this module, but it is used here to estimate wind speed for wind-wave relationships. Should be a fine way to estimate the neutral wind-speed as written here.

Waves_end

Clear pointers, deallocate memory

waves_register_restarts

Register wave restart fields. To be called before MOM_wave_interface_init

Detailed Description

Author: Brandon Reichl, 2018.

This module should be moved as wave coupling progresses and likely will should mirror the iceberg or sea-ice model set-up.

This module is meant to contain the routines to read in and interpret surface wave data for MOM6. In its original form, the capabilities include setting the Stokes drift in the model (from a variety of sources including prescribed, empirical, and input files). In short order, the plan is to also amend the subroutine to accept Stokes drift information from an external coupler. Eventually, it will be necessary to break this file apart so that general wave information may be stored in the control structure and the Stokes drift effect can be isolated from processes such as sea-state dependent momentum fluxes, gas fluxes, and other wave related air-sea interaction and boundary layer phenomenon.

The Stokes drift are stored on the C-grid with the conventional protocol to interpolate to the h-grid to compute Langmuir number, the primary quantity needed for Langmuir turbulence parameterizations in both the ePBL and KPP approach. This module also computes full 3d Stokes drift profiles, which will be useful if second-order type boundary layer parameterizations are implemented (perhaps via GOTM, work in progress).

Type Documentation

type, public :: wave_parameters_CS

Container for all surface wave related parameters

Parameters
  • UseWaves

    Flag to enable surface gravity wave feature

  • Stokes_VF

    True if Stokes vortex force is used

  • Passive_Stokes_VF

    Computes Stokes VF, but doesn't affect dynamics

  • Stokes_PGF

    True if Stokes shear pressure Gradient force is used

  • robust_Stokes_PGF

    If true, use expressions to calculate the Stokes-induced pressure gradient anomalies that are more accurate in the limit of thin layers.

  • Passive_Stokes_PGF

    Keeps Stokes_PGF on, but doesn't affect dynamics

  • Stokes_DDT

    Developmental: True if Stokes d/dt is used

  • Passive_Stokes_DDT

    Keeps Stokes_DDT on, but doesn't affect dynamics

  • Homogenize_Surfbands

    True to homogenize surface band Stokes drift in the horizontal

  • Us_x

    3d zonal Stokes drift profile [L T-1 ~> m s-1] Horizontal -> U points Vertical -> Mid-points

  • Us_y

    3d meridional Stokes drift profile [L T-1 ~> m s-1] Horizontal -> V points Vertical -> Mid-points

  • ddt_Us_x

    3d time tendency of zonal Stokes drift profile [L T-2 ~> m s-2] Horizontal -> U points Vertical -> Mid-points

  • ddt_Us_y

    3d time tendency of meridional Stokes drift profile [L T-2 ~> m s-2] Horizontal -> V points Vertical -> Mid-points

  • Us_x_from_ddt

    Check of 3d zonal Stokes drift profile [L T-1 ~> m s-1] Horizontal -> U points Vertical -> Mid-points

  • Us_y_from_ddt

    Check of 3d meridional Stokes drift profile [L T-1 ~> m s-1] Horizontal -> V points Vertical -> Mid-points

  • Us_x_prev

    3d zonal Stokes drift profile, previous dynamics call [L T-1 ~> m s-1] Horizontal -> U points Vertical -> Mid-points

  • Us_y_prev

    3d meridional Stokes drift profile, previous dynamics call [L T-1 ~> m s-1] Horizontal -> V points Vertical -> Mid-points

  • KvS

    Viscosity for Stokes Drift shear [H Z T-1 ~> m2 s-1 or Pa s]

  • WaveNum_Cen

    Wavenumber bands for read/coupled [Z-1 ~> m-1]

  • UStk_Hb

    Surface Stokes Drift spectrum (zonal) [L T-1 ~> m s-1] Horizontal -> H-points 3rd dimension -> Freq/Wavenumber

  • VStk_Hb

    Surface Stokes Drift spectrum (meridional) [L T-1 ~> m s-1] Horizontal -> H-points 3rd dimension -> Freq/Wavenumber

  • Omega_w2x

    wind direction ccw from model x- axis [nondim radians]

  • NumBands

    Number of wavenumber/frequency partitions Must match the number of bands provided via either coupling or file.

  • WaveMethod

    Options for including wave information Valid (tested) choices are: 0 - Test Profile 1 - Surface Stokes Drift Bands 2 - DHH85 3 - LF17 -99 - No waves computed, but empirical Langmuir number used.

  • LagrangianMixing

    This feature is in development and not ready True if Stokes drift is present and mixing should be applied to Lagrangian current (mean current + Stokes drift). See Reichl et al., 2016 KPP-LT approach

  • StokesMixing

    This feature is in development and not ready. True if vertical mixing of momentum should be applied directly to Stokes current (with separate mixing parameter for Eulerian mixing contribution). See Harcourt 2013, 2015 Second-Moment approach

  • CoriolisStokes

    This feature is in development and not ready.

  • Stokes_min_thick_avg

    A layer thickness below which the cell-center Stokes drift is used instead of the cell average [Z ~> m]. This is only used if WAVE_INTERFACE_ANSWER_DATE < 20230101.

  • answer_date

    The vintage of the order of arithmetic and expressions in the surface wave calculations. Values below 20230101 recover the answers from the end of 2022, while higher values use updated and more robust forms of the same expressions.

  • PartitionMode

    Method for partition mode (meant to check input) 0 - wavenumbers 1 - frequencies

  • DataSource

    Integer that specifies where the model Looks for data Valid choices are: 1 - FMS DataOverride Routine 2 - Reserved For Coupler 3 - User input (fixed values, useful for 1d testing)

  • SurfBandFileName

    Filename if using DataOverride

  • land_speed

    A large Stokes velocity that can be used to indicate land values in a data override file [L T-1 ~> m s-1]. Stokes drift components larger than this are set to zero in data override calls for the Stokes drift.

  • DataOver_initialized

    Flag for DataOverride Initialization

  • LA_FracHBL

    Fraction of OSBL for averaging Langmuir number [nondim]

  • LA_HBL_min

    Minimum boundary layer depth for averaging Langmuir number [Z ~> m]

  • LA_Misalignment

    Flag to use misalignment in Langmuir number

  • LA_misalign_bug

    Flag to use code with a sign error when calculating the misalignment between the shear and waves in the Langmuir number calculation.

  • g_Earth

    The gravitational acceleration, equivalent to GV%g_Earth but with different dimensional rescaling appropriate for deep-water gravity waves [Z T-2 ~> m s-2]

  • I_g_Earth

    The inverse of the gravitational acceleration, with dimensional rescaling appropriate for deep-water gravity waves [T2 Z-1 ~> s2 m-1]

  • Freq_Cen

    Central frequency for wave bands, including a factor of 2*pi [T-1 ~> s-1]

  • PrescribedSurfStkX

    Surface Stokes drift if prescribed [L T-1 ~> m s-1]

  • PrescribedSurfStkY

    Surface Stokes drift if prescribed [L T-1 ~> m s-1]

  • La_Turb

    Aligned Turbulent Langmuir number [nondim] Horizontal -> H points

  • US0_x

    Surface Stokes Drift (zonal) [L T-1 ~> m s-1] Horizontal -> U points

  • US0_y

    Surface Stokes Drift (meridional) [L T-1 ~> m s-1] Horizontal -> V points

  • STKx0

    Stokes Drift spectrum (zonal) [L T-1 ~> m s-1] Horizontal -> U points 3rd dimension -> Freq/Wavenumber

  • STKy0

    Stokes Drift spectrum (meridional) [L T-1 ~> m s-1] Horizontal -> V points 3rd dimension -> Freq/Wavenumber

  • La_min

    An arbitrary lower-bound on the Langmuir number [nondim]. Langmuir number is sqrt(u_star/u_stokes). When both are small but u_star is orders of magnitude smaller, the Langmuir number could have unintended consequences. Since both are small it can be safely capped to avoid such consequences.

  • La_Stk_backgnd

    A small background Stokes velocity used in the denominator of some expressions for the Langmuir number [L T-1 ~> m s-1]

  • VonKar

    The von Karman coefficient as used in the MOM_wave_interface module [nondim]

  • rho_air

    A typical density of air at sea level, as used in wave calculations [R ~> kg m-3]

  • nu_air

    The viscosity of air, as used in wave calculations [Z2 T-1 ~> m2 s-1]

  • rho_ocn

    A typical surface density of seawater, as used in wave calculations in comparison with the density of air [R ~> kg m-3]. The default is RHO_0.

  • SWH_from_u10sq

    A factor for converting the square of the 10 m wind speed to the significant wave height [Z T2 L-2 ~> s2 m-1]

  • Charnock_min

    The minimum value of the Charnock coefficient, which relates the square of the air friction velocity divided by the gravitational acceleration to the wave roughness length [nondim]

  • Charnock_slope_U10

    The partial derivative of the Charnock coefficient with the 10 m wind speed [T L-1 ~> s m-1]. Note that in eq. 13 of the Edson et al. 2013 describing the COARE 3.5 bulk flux algorithm, this slope is given as 0.017. However, 0.0017 reproduces the curve in their figure 6, so that is the default value used in MOM6.

  • Charnock_intercept

    The intercept of the fit for the Charnock coefficient in the limit of no wind [nondim]. Note that this can be negative because CHARNOCK_MIN will keep the final value for the Charnock coefficient from being from being negative.

  • TP_STKX0

    Test profile x-stokes drift amplitude [L T-1 ~> m s-1]

  • TP_STKY0

    Test profile y-stokes drift amplitude [L T-1 ~> m s-1]

  • TP_WVL

    Test profile wavelength [Z ~> m]

  • WaveAgePeakFreq

    Flag to use wave age to determine the peak frequency with DHH85

  • StaticWaves

    Flag to disable updating DHH85 Stokes drift

  • DHH85_is_set

    The if the wave properties have been set when WaveMethod = DHH85.

  • WaveAge

    The fixed wave age used with the DHH85 spectrum [nondim]

  • WaveWind

    Wind speed for the DHH85 spectrum [L T-1 ~> m s-1]

  • omega_min

    Minimum wave frequency with the DHH85 spectrum [T-1 ~> s-1]

  • omega_max

    Maximum wave frequency with the DHH85 spectrum [T-1 ~> s-1]

  • Time

    A pointer to the ocean model's clock.

  • id_PFu_Stokes

    Diagnostic handles

  • id_PFv_Stokes

    Diagnostic handles

  • id_3dstokes_x_from_ddt

    Diagnostic handles

  • id_3dstokes_y_from_ddt

    Diagnostic handles

  • id_P_deltaStokes_L

    Diagnostic handles

  • id_P_deltaStokes_i

    Diagnostic handles

  • id_surfacestokes_x

    Diagnostic handles

  • id_surfacestokes_y

    Diagnostic handles

  • id_3dstokes_x

    Diagnostic handles

  • id_3dstokes_y

    Diagnostic handles

  • id_ddt_3dstokes_x

    Diagnostic handles

  • id_ddt_3dstokes_y

    Diagnostic handles

  • id_La_turb

    Diagnostic handles

Functions/Subroutine Documentation

subroutine MOM_wave_interface_init(time, G, GV, US, param_file, CS, diag)

Initializes parameters related to MOM_wave_interface

Parameters
  • Time [in]

    Model time

  • G [inout]

    Grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    Input parameter structure

  • CS

    Wave parameter control structure

  • diag [inout]

    Diagnostic Pointer

  • mdl

    This module's name.

Callees call graph
Callees of mom_wave_interface::mom_wave_interface_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_wave_interface MOM_wave_interface 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_version log_version (interface) mom_wave_interface::mom_wave_interface_init MOM_wave_interface_init mom_wave_interface::mom_wave_interface_init->mom_diag_mediator::register_diag_field mom_wave_interface::mom_wave_interface_init->mom_error_handler::mom_error mom_wave_interface::mom_wave_interface_init->mom_file_parser::interface::get_param mom_wave_interface::mom_wave_interface_init->mom_file_parser::interface::log_version mom_wave_interface::set_lf17_wave_params set_LF17_wave_params [private/internal] mom_wave_interface::mom_wave_interface_init->mom_wave_interface::set_lf17_wave_params
Text view
Callers call graph
Callers of mom_wave_interface::mom_wave_interface_init calls cluster_External External cluster_mom_wave_interface MOM_wave_interface External::mom6 MOM6 mom_wave_interface::mom_wave_interface_init MOM_wave_interface_init External::mom6->mom_wave_interface::mom_wave_interface_init
Text view
subroutine set_LF17_wave_params(param_file, mdl, GV, US, CS)

Set the parameters that are used to determine the averaged Stokes drift and Langmuir numbers

Parameters
  • param_file [in]

    Input parameter structure

  • mdl [in]

    A module name to use in the get_param calls

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    Wave parameter control structure

Callees call graph
Callees of mom_wave_interface::set_lf17_wave_params calls cluster_mom_file_parser MOM_file_parser cluster_mom_wave_interface MOM_wave_interface mom_file_parser::interface::get_param get_param (interface) mom_wave_interface::set_lf17_wave_params set_LF17_wave_params [private/internal] mom_wave_interface::set_lf17_wave_params->mom_file_parser::interface::get_param
Text view
Callers call graph
Callers of mom_wave_interface::set_lf17_wave_params calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::mom_wave_interface_init MOM_wave_interface_init mom_wave_interface::set_lf17_wave_params set_LF17_wave_params [private/internal] mom_wave_interface::mom_wave_interface_init->mom_wave_interface::set_lf17_wave_params
Text view
subroutine query_wave_properties(CS, NumBands, WaveNumbers, US)

This interface provides the caller with information from the waves control structure.

Parameters
  • CS

    Wave parameter Control structure

  • NumBands [out]

    If present, this returns the number of < wavenumber partitions in the wave discretization

  • Wavenumbers [out]

    If present this returns the characteristic wavenumbers of the wave discretization [m-1] or [Z-1 ~> m-1]

  • US [in]

    A dimensional unit scaling type that is used to undo the dimensional scaling of the output variables, if present

Callees call graph
Callees of mom_wave_interface::query_wave_properties calls cluster_mom_error_handler MOM_error_handler cluster_mom_wave_interface MOM_wave_interface mom_error_handler::mom_error MOM_error mom_wave_interface::query_wave_properties query_wave_properties mom_wave_interface::query_wave_properties->mom_error_handler::mom_error
Text view
subroutine Update_Surface_Waves(G, GV, US, Time_present, dt, CS, forces)

Subroutine that handles updating of surface wave/Stokes drift related properties

Parameters
  • CS

    Wave parameter Control structure

  • G [inout]

    Grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • Time_present [in]

    Model Time

  • dt [in]

    Time increment as a time-type

  • forces [in]

    MOM_forcing_type

Callees call graph
Callees of mom_wave_interface::update_surface_waves calls cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_wave_interface MOM_wave_interface mom_domain_infra::interface::pass_vector pass_vector (interface) mom_error_handler::mom_error MOM_error mom_wave_interface::surface_bands_by_data_override Surface_Bands_by_data_override [private/internal] mom_wave_interface::update_surface_waves Update_Surface_Waves mom_wave_interface::update_surface_waves->mom_domain_infra::interface::pass_vector mom_wave_interface::update_surface_waves->mom_error_handler::mom_error mom_wave_interface::update_surface_waves->mom_wave_interface::surface_bands_by_data_override
Text view
Callers call graph
Callers of mom_wave_interface::update_surface_waves calls cluster_External External cluster_mom_wave_interface MOM_wave_interface External::mom6 MOM6 mom_wave_interface::update_surface_waves Update_Surface_Waves External::mom6->mom_wave_interface::update_surface_waves
Text view
subroutine Update_Stokes_Drift(G, GV, US, CS, dz, ustar, dt, dynamics_step)

Constructs the Stokes Drift profile on the model grid based on desired coupling options

Parameters
  • CS

    Wave parameter Control structure

  • G [inout]

    Grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • dz [in]

    Thickness in height units [Z ~> m]

  • ustar [in]

    Wind friction velocity [Z T-1 ~> m s-1].

  • dt [in]

    Time-step for computing Stokes-tendency [T ~> s]

  • dynamics_step [in]

    True if this call is on a dynamics step

Callees call graph
Callees of mom_wave_interface::update_stokes_drift calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_domain_infra MOM_domain_infra cluster_mom_wave_interface MOM_wave_interface mom_diag_mediator::interface::post_data post_data (interface) mom_domain_infra::interface::pass_vector pass_vector (interface) mom_wave_interface::dhh85_mid DHH85_mid [private/internal] mom_wave_interface::get_langmuir_number get_Langmuir_Number mom_wave_interface::one_minus_exp_x one_minus_exp_x [private/internal] mom_wave_interface::update_stokes_drift Update_Stokes_Drift mom_wave_interface::update_stokes_drift->mom_diag_mediator::interface::post_data mom_wave_interface::update_stokes_drift->mom_domain_infra::interface::pass_vector mom_wave_interface::update_stokes_drift->mom_wave_interface::dhh85_mid mom_wave_interface::update_stokes_drift->mom_wave_interface::get_langmuir_number mom_wave_interface::update_stokes_drift->mom_wave_interface::one_minus_exp_x
Text view
Callers call graph
Callers of mom_wave_interface::update_stokes_drift calls cluster_mom MOM cluster_mom_wave_interface MOM_wave_interface mom::step_mom step_MOM mom_wave_interface::update_stokes_drift Update_Stokes_Drift mom::step_mom->mom_wave_interface::update_stokes_drift
Text view
real function one_minus_exp_x(x)

Return the value of (1 - exp(-x))/x [nondim], using an accurate expression for small values of x.

Parameters
  • x [in]

    The argument of the function ((1 - exp(-x))/x) [nondim]

Callers call graph
Callers of mom_wave_interface::one_minus_exp_x calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::get_stokessl_lifoxkemper get_StokesSL_LiFoxKemper [private/internal] mom_wave_interface::one_minus_exp_x one_minus_exp_x [private/internal] mom_wave_interface::get_stokessl_lifoxkemper->mom_wave_interface::one_minus_exp_x mom_wave_interface::stokes_pgf Stokes_PGF mom_wave_interface::stokes_pgf->mom_wave_interface::one_minus_exp_x mom_wave_interface::update_stokes_drift Update_Stokes_Drift mom_wave_interface::update_stokes_drift->mom_wave_interface::one_minus_exp_x
Text view
real function one_minus_exp(x)

Return the value of (1 - exp(-x)) [nondim], using an accurate expression for small values of x.

Parameters
  • x [in]

    The argument of the function ((1 - exp(-x))/x) [nondim]

Callers call graph
Callers of mom_wave_interface::one_minus_exp calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::one_minus_exp one_minus_exp [private/internal] mom_wave_interface::stokes_pgf Stokes_PGF mom_wave_interface::stokes_pgf->mom_wave_interface::one_minus_exp
Text view
subroutine Surface_Bands_by_data_override(Time, G, GV, US, CS)

A subroutine to fill the Stokes drift from a NetCDF file using the data_override procedures.

Parameters
  • Time [in]

    Time to get Stokes drift bands

  • CS

    Wave structure

  • G [inout]

    Grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

Callees call graph
Callees of mom_wave_interface::surface_bands_by_data_override calls cluster_mom_data_override_infra MOM_data_override_infra cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io cluster_mom_io_infra MOM_io_infra cluster_mom_spatial_means MOM_spatial_means cluster_mom_wave_interface MOM_wave_interface mom_data_override_infra::impose_data_init impose_data_init mom_data_override_infra::interface::impose_data impose_data (interface) mom_domain_infra::interface::pass_vector pass_vector (interface) mom_error_handler::mom_error MOM_error mom_io::get_var_sizes get_var_sizes mom_io::interface::read_variable read_variable (interface) mom_io_infra::interface::file_exists file_exists (interface) mom_spatial_means::global_area_mean global_area_mean mom_wave_interface::surface_bands_by_data_override Surface_Bands_by_data_override [private/internal] mom_wave_interface::surface_bands_by_data_override->mom_data_override_infra::impose_data_init mom_wave_interface::surface_bands_by_data_override->mom_data_override_infra::interface::impose_data mom_wave_interface::surface_bands_by_data_override->mom_domain_infra::interface::pass_vector mom_wave_interface::surface_bands_by_data_override->mom_error_handler::mom_error mom_wave_interface::surface_bands_by_data_override->mom_io::get_var_sizes mom_wave_interface::surface_bands_by_data_override->mom_io::interface::read_variable mom_wave_interface::surface_bands_by_data_override->mom_io_infra::interface::file_exists mom_wave_interface::surface_bands_by_data_override->mom_spatial_means::global_area_mean
Text view
Callers call graph
Callers of mom_wave_interface::surface_bands_by_data_override calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::surface_bands_by_data_override Surface_Bands_by_data_override [private/internal] mom_wave_interface::update_surface_waves Update_Surface_Waves mom_wave_interface::update_surface_waves->mom_wave_interface::surface_bands_by_data_override
Text view
subroutine get_Langmuir_Number(LA, G, GV, US, HBL, ustar, i, j, dz, Waves, U_H, V_H, Override_MA)

Interface to get Langmuir number based on options stored in wave structure

Note this can be called with an unallocated Waves pointer, which is okay if we want the wind-speed only dependent Langmuir number. Therefore, we need to be careful about what we try to access here.

Parameters
  • G [in]

    Ocean grid structure

  • GV [in]

    Ocean vertical grid structure

  • LA [out]

    Langmuir number [nondim]

  • US [in]

    A dimensional unit scaling type

  • HBL [in]

    (Positive) thickness of boundary layer [Z ~> m]

  • ustar [in]

    Friction velocity [Z T-1 ~> m s-1]

  • i [in]

    Meridional index of h-point

  • j [in]

    Zonal index of h-point

  • dz [in]

    Grid layer thickness [Z ~> m]

  • Waves

    Surface wave control structure.

  • U_H [in]

    Zonal velocity at H point [L T-1 ~> m s-1] or [m s-1]

  • V_H [in]

    Meridional velocity at H point [L T-1 ~> m s-1] or [m s-1]

  • Override_MA [in]

    Override to use misalignment in LA calculation. This can be used if diagnostic LA outputs are desired that are different than those used by the dynamical model.

Callees call graph
Callees of mom_wave_interface::get_langmuir_number calls cluster_mom_error_handler MOM_error_handler cluster_mom_wave_interface MOM_wave_interface mom_error_handler::mom_error MOM_error mom_wave_interface::get_langmuir_number get_Langmuir_Number mom_wave_interface::get_langmuir_number->mom_error_handler::mom_error mom_wave_interface::get_sl_average_band Get_SL_Average_Band [private/internal] mom_wave_interface::get_langmuir_number->mom_wave_interface::get_sl_average_band mom_wave_interface::get_sl_average_prof Get_SL_Average_Prof [private/internal] mom_wave_interface::get_langmuir_number->mom_wave_interface::get_sl_average_prof mom_wave_interface::get_stokessl_lifoxkemper get_StokesSL_LiFoxKemper [private/internal] mom_wave_interface::get_langmuir_number->mom_wave_interface::get_stokessl_lifoxkemper
Text view
Callers call graph
Callers of mom_wave_interface::get_langmuir_number calls cluster_mom_cvmix_kpp MOM_CVMix_KPP cluster_mom_energetic_pbl MOM_energetic_PBL cluster_mom_wave_interface MOM_wave_interface mom_cvmix_kpp::kpp_compute_bld KPP_compute_BLD mom_wave_interface::get_langmuir_number get_Langmuir_Number mom_cvmix_kpp::kpp_compute_bld->mom_wave_interface::get_langmuir_number mom_energetic_pbl::epbl_column ePBL_column [private/internal] mom_energetic_pbl::epbl_column->mom_wave_interface::get_langmuir_number mom_wave_interface::update_stokes_drift Update_Stokes_Drift mom_wave_interface::update_stokes_drift->mom_wave_interface::get_langmuir_number
Text view
function get_wave_method(CS)

function to return the wave method string set in the param file

Parameters
  • CS

    Control structure

subroutine get_StokesSL_LiFoxKemper(ustar, hbl, GV, US, CS, UStokes_SL, LA)

Get SL averaged Stokes drift from Li/FK 17 method

Original description:

  • This function returns the enhancement factor, given the 10-meter wind [m s-1], friction velocity [m s-1] and the boundary layer depth [m].

Update (Jan/25):

  • Converted from function to subroutine, now returns Langmuir number.

  • Compute 10m wind internally, so only ustar and hbl need passed to subroutine.

Qing Li, 160606

  • BGR port from CVMix to MOM6 Jan/25/2017

  • BGR change output to LA from Efactor

  • BGR remove u10 input

  • BGR note: fixed parameter values should be changed to "get_params"

Parameters
  • ustar [in]

    water-side surface friction velocity [Z T-1 ~> m s-1].

  • hbl [in]

    boundary layer depth [Z ~> m].

  • GV [in]

    Ocean vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    Wave parameter Control structure

  • UStokes_SL [out]

    Surface layer averaged Stokes drift [L T-1 ~> m s-1]

  • LA [out]

    Langmuir number [nondim]

Callees call graph
Callees of mom_wave_interface::get_stokessl_lifoxkemper calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::get_stokessl_lifoxkemper get_StokesSL_LiFoxKemper [private/internal] mom_wave_interface::one_minus_exp_x one_minus_exp_x [private/internal] mom_wave_interface::get_stokessl_lifoxkemper->mom_wave_interface::one_minus_exp_x mom_wave_interface::ust_2_u10_coare3p5 ust_2_u10_coare3p5 [private/internal] mom_wave_interface::get_stokessl_lifoxkemper->mom_wave_interface::ust_2_u10_coare3p5
Text view
Callers call graph
Callers of mom_wave_interface::get_stokessl_lifoxkemper calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::get_langmuir_number get_Langmuir_Number mom_wave_interface::get_stokessl_lifoxkemper get_StokesSL_LiFoxKemper [private/internal] mom_wave_interface::get_langmuir_number->mom_wave_interface::get_stokessl_lifoxkemper
Text view
subroutine Get_SL_Average_Prof(GV, AvgDepth, dz, Profile, Average)

Get SL Averaged Stokes drift from a Stokes drift Profile

Parameters
  • GV [in]

    Ocean vertical grid structure

  • AvgDepth [in]

    Depth to average over (negative) [Z ~> m]

  • dz [in]

    Grid thickness [Z ~> m]

  • Profile [in]

    Profile of quantity to be averaged in arbitrary units [A] (used here for Stokes drift)

  • Average [out]

    Output quantity averaged over depth AvgDepth [A] (used here for Stokes drift)

Callers call graph
Callers of mom_wave_interface::get_sl_average_prof calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::get_langmuir_number get_Langmuir_Number mom_wave_interface::get_sl_average_prof Get_SL_Average_Prof [private/internal] mom_wave_interface::get_langmuir_number->mom_wave_interface::get_sl_average_prof
Text view
subroutine Get_SL_Average_Band(GV, AvgDepth, NB, WaveNumbers, SurfStokes, Average)

Get SL averaged Stokes drift from the banded Spectrum method

Parameters
  • GV [in]

    Ocean vertical grid

  • AvgDepth [in]

    Depth to average over [Z ~> m].

  • NB [in]

    Number of bands used

  • WaveNumbers [in]

    Wavenumber corresponding to each band [Z-1 ~> m-1]

  • SurfStokes [in]

    Surface Stokes drift for each band [L T-1 ~> m s-1]

  • Average [out]

    Output average Stokes drift over depth AvgDepth [L T-1 ~> m s-1]

Callers call graph
Callers of mom_wave_interface::get_sl_average_band calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::get_langmuir_number get_Langmuir_Number mom_wave_interface::get_sl_average_band Get_SL_Average_Band [private/internal] mom_wave_interface::get_langmuir_number->mom_wave_interface::get_sl_average_band
Text view
subroutine DHH85_mid(GV, US, CS, zpt, UStokes)

Compute the Stokes drift at a given depth

Taken from Qing Li (Brown) use for comparing MOM6 simulation to his LES computed at z mid point (I think) and not depth averaged. Should be fine to integrate in frequency from 0.1 to sqrt(-0.2*grav*2pi/dz

Parameters
  • GV [in]

    Ocean vertical grid

  • US [in]

    A dimensional unit scaling type

  • CS

    Wave parameter Control structure

  • zpt [in]

    Depth to get Stokes drift [Z ~> m].

  • UStokes [out]

    Stokes drift [L T-1 ~> m s-1]

Callers call graph
Callers of mom_wave_interface::dhh85_mid calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::dhh85_mid DHH85_mid [private/internal] mom_wave_interface::update_stokes_drift Update_Stokes_Drift mom_wave_interface::update_stokes_drift->mom_wave_interface::dhh85_mid
Text view
subroutine StokesMixing(G, GV, dt, h, dz, u, v, Waves)

Explicit solver for Stokes mixing. Still in development do not use.

Parameters
  • G [in]

    Ocean grid

  • GV [in]

    Ocean vertical grid

  • dt [in]

    Time step of MOM6 [T ~> s] for explicit solver

  • h [in]

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

  • dz [in]

    Vertical distance between interfaces around a layer [Z ~> m]

  • u [inout]

    Velocity i-component [L T-1 ~> m s-1]

  • v [inout]

    Velocity j-component [L T-1 ~> m s-1]

  • Waves

    Surface wave related control structure.

subroutine CoriolisStokes(G, GV, dt, h, u, v, Waves)

Solver to add Coriolis-Stokes to model Still in development and not meant for general use. Can be activated (with code intervention) for LES comparison CHECK THAT RIGHT TIMESTEP IS PASSED IF YOU USE THIS**

Not accessed in the standard code.

Parameters
  • G [in]

    Ocean grid

  • GV [in]

    Ocean vertical grid

  • dt [in]

    Time step of MOM6 [T ~> s]

  • h [in]

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

  • u [inout]

    Velocity i-component [L T-1 ~> m s-1]

  • v [inout]

    Velocity j-component [L T-1 ~> m s-1]

  • Waves

    Surface wave related control structure.

subroutine Stokes_PGF(G, GV, US, dz, u, v, PFu_Stokes, PFv_Stokes, CS)

Computes tendency due to Stokes pressure gradient force anomaly including analytical integration of Stokes shear using multiple-exponential decay Stokes drift profile and vertical integration of the resulting pressure anomaly to the total pressure gradient force

Parameters
  • G [in]

    Ocean grid

  • GV [in]

    Ocean vertical grid

  • US [in]

    A dimensional unit scaling type

  • dz [in]

    Layer thicknesses in height units [Z ~> m]

  • u [in]

    Lagrangian Velocity i-component [L T-1 ~> m s-1]

  • v [in]

    Lagrangian Velocity j-component [L T-1 ~> m s-1]

  • PFu_Stokes [out]

    PGF Stokes-shear i-component [L T-2 ~> m s-2]

  • PFv_Stokes [out]

    PGF Stokes-shear j-component [L T-2 ~> m s-2]

  • CS

    Surface wave related control structure.

Callees call graph
Callees of mom_wave_interface::stokes_pgf calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_wave_interface MOM_wave_interface mom_diag_mediator::interface::post_data post_data (interface) mom_wave_interface::one_minus_exp one_minus_exp [private/internal] mom_wave_interface::one_minus_exp_x one_minus_exp_x [private/internal] mom_wave_interface::stokes_pgf Stokes_PGF mom_wave_interface::stokes_pgf->mom_diag_mediator::interface::post_data mom_wave_interface::stokes_pgf->mom_wave_interface::one_minus_exp mom_wave_interface::stokes_pgf->mom_wave_interface::one_minus_exp_x
Text view
Callers call graph
Callers of mom_wave_interface::stokes_pgf calls cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_wave_interface MOM_wave_interface mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_wave_interface::stokes_pgf Stokes_PGF mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_wave_interface::stokes_pgf mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_wave_interface::stokes_pgf
Text view
subroutine ust_2_u10_coare3p5(USTair, U10, GV, US, CS)

Computes wind speed from ustar_air based on COARE 3.5 Cd relationship Probably doesn't belong in this module, but it is used here to estimate wind speed for wind-wave relationships. Should be a fine way to estimate the neutral wind-speed as written here.

Parameters
  • USTair [in]

    Wind friction velocity [Z T-1 ~> m s-1]

  • U10 [out]

    10-m neutral wind speed [L T-1 ~> m s-1]

  • GV [in]

    vertical grid type

  • US [in]

    A dimensional unit scaling type

  • CS

    Wave parameter Control structure

Callees call graph
Callees of mom_wave_interface::ust_2_u10_coare3p5 calls cluster_mom_error_handler MOM_error_handler cluster_mom_wave_interface MOM_wave_interface mom_error_handler::mom_error MOM_error mom_wave_interface::ust_2_u10_coare3p5 ust_2_u10_coare3p5 [private/internal] mom_wave_interface::ust_2_u10_coare3p5->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_wave_interface::ust_2_u10_coare3p5 calls cluster_mom_wave_interface MOM_wave_interface mom_wave_interface::get_stokessl_lifoxkemper get_StokesSL_LiFoxKemper [private/internal] mom_wave_interface::ust_2_u10_coare3p5 ust_2_u10_coare3p5 [private/internal] mom_wave_interface::get_stokessl_lifoxkemper->mom_wave_interface::ust_2_u10_coare3p5
Text view
subroutine Waves_end(CS)

Clear pointers, deallocate memory

Parameters
  • CS

    Control structure

subroutine waves_register_restarts(CS, HI, GV, US, param_file, restart_CSp)

Register wave restart fields. To be called before MOM_wave_interface_init

Parameters
  • CS

    Wave parameter Control structure

  • HI [inout]

    Grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    Input parameter structure

  • restart_CSp

    Restart structure, data intent(inout)

  • mdl

    This module's name.

Callees call graph
Callees of mom_wave_interface::waves_register_restarts calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_restart MOM_restart cluster_mom_wave_interface MOM_wave_interface mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_io::var_desc var_desc mom_restart::interface::register_restart_pair register_restart_pair (interface) mom_wave_interface::waves_register_restarts waves_register_restarts mom_wave_interface::waves_register_restarts->mom_error_handler::mom_error mom_wave_interface::waves_register_restarts->mom_file_parser::interface::get_param mom_wave_interface::waves_register_restarts->mom_io::var_desc mom_wave_interface::waves_register_restarts->mom_restart::interface::register_restart_pair
Text view
Callers call graph
Callers of mom_wave_interface::waves_register_restarts calls cluster_mom MOM cluster_mom_wave_interface MOM_wave_interface mom::initialize_mom initialize_MOM mom_wave_interface::waves_register_restarts waves_register_restarts mom::initialize_mom->mom_wave_interface::waves_register_restarts
Text view
API generated with Flint · Rendered from reStructuredText