MOM_self_attr_load module reference

Data Types

SAL_CS

The control structure for the MOM_self_attr_load module

Functions/Subroutines

calc_SAL

This subroutine calculates seawater self-attraction and loading based on either sea surface height (SSH) or bottom pressure anomaly. Note that the SAL calculation applies to all motions across the spectrum. Tidal-specific methods that assume periodicity, i.e. iterative and read-in SAL, are stored in MOM_tidal_forcing module. The input field can be either SSH [Z ~> m] or total bottom pressure [R L2 T-2 ~> Pa]. If total bottom pressure is used, bottom pressure anomaly is first calculated by subtracting a reference bottom pressure from an input file. The output field is expressed as geopotential height anomaly, and therefore has the unit of [Z ~> m].

scalar_SAL_sensitivity

This subroutine returns eta_prop member of SAL_CS type, which is the non-dimensional partial derivative of the local geopotential height with the input sea surface height due to the scalar approximation of self-attraction and loading.

calc_love_scaling

This subroutine calculates coefficients of the spherical harmonic modes for self-attraction and loading. The algorithm is based on the SAL implementation in MPAS-ocean, which was modified by Kristin Barton from routine written by K. Quinn (March 2010) and modified by M. Schindelegger (May 2017).

SAL_init

This subroutine initializes the self-attraction and loading control structure.

SAL_end

This subroutine deallocates memory associated with the SAL module.

Detailed Description

Self attraction and loading

This module contains methods to calculate self-attraction and loading (SAL) as a function of sea surface height or bottom pressure anomaly. SAL is primarily used for fast evolving processes like tides or storm surges, but the effect applies to all motions.

If SAL_SCALAR_APPROX is true, a scalar approximation is applied ([1]) and the SAL is simply a fraction (set by SAL_SCALAR_VALUE, usually around 10% for global tides) of local SSH. For tides, the scalar approximation can also be used to iterate the SAL to convergence [see USE_PREVIOUS_TIDES in MOM_tidal_forcing, [8]].

If SAL_HARMONICS is true, a more accurate online spherical harmonic transforms are used to calculate SAL. Subroutines in module MOM_spherical_harmonics are called and the degree of spherical harmonic transforms is set by SAL_HARMONICS_DEGREE. The algorithm is based on SAL calculation in Model for Prediction Across Scales (MPAS)-Ocean developed by Los Alamos National Laboratory and University of Michigan [[9] and [15]].

References:

Accad, Y. and Pekeris, C.L., 1978. Solution of the tidal equations for the M2 and S2 tides in the world oceans from a knowledge of the tidal potential alone. Philosophical Transactions of the Royal Society of London. Series A, Mathematical and Physical Sciences, 290(1368), pp.235-266. https://doi.org/10.1098/rsta.1978.0083

Arbic, B.K., Garner, S.T., Hallberg, R.W. and Simmons, H.L., 2004. The accuracy of surface elevations in forward global barotropic and baroclinic tide models. Deep Sea Research Part II: Topical Studies in Oceanography, 51(25-26), pp.3069-3101. https://doi.org/10.1016/j.dsr2.2004.09.014

Barton, K.N., Pal, N., Brus, S.R., Petersen, M.R., Arbic, B.K., Engwirda, D., Roberts, A.F., Westerink, J.J., Wirasaet, D. and Schindelegger, M., 2022. Global Barotropic Tide Modeling Using Inline Self‐Attraction and Loading in MPAS‐Ocean. Journal of Advances in Modeling Earth Systems, 14(11), p.e2022MS003207. https://doi.org/10.1029/2022MS003207

Brus, S.R., Barton, K.N., Pal, N., Roberts, A.F., Engwirda, D., Petersen, M.R., Arbic, B.K., Wirasaet, D., Westerink, J.J. and Schindelegger, M., 2023. Scalable self attraction and loading calculations for unstructured ocean tide models. Ocean Modelling, p.102160. https://doi.org/10.1016/j.ocemod.2023.102160

Type Documentation

type, public :: SAL_CS

The control structure for the MOM_self_attr_load module

Parameters
  • use_sal_scalar

    If true, use the scalar approximation to calculate SAL.

  • use_sal_sht

    If true, use online spherical harmonics to calculate SAL

  • use_tidal_sal_prev

    If true, read the tidal SAL from the previous iteration of the tides to facilitate convergence.

  • use_bpa

    If true, use bottom pressure anomaly instead of SSH to calculate SAL.

  • eta_prop

    The partial derivative of eta_sal with the local value of eta [nondim].

  • linear_scaling

    Dimensional coefficients for scalar SAL [nondim] or [Z T2 L-2 R-1 ~> m Pa-1]

  • sht

    Spherical harmonic transforms (SHT) control structure

  • sal_sht_Nd

    Maximum degree for spherical harmonic transforms [nondim]

  • pbot_ref

    Reference bottom pressure [R L2 T-2 ~> Pa]

  • Love_scaling

    Dimensional coefficients for harmonic SAL, which are functions of Love numbers [nondim] or [Z T2 L-2 R-1 ~> m Pa-1], depending on the value of use_ppa.

  • Snm_Re

    Real SHT coefficient for SHT SAL [Z ~> m]

  • Snm_Im

    Imaginary SHT coefficient for SHT SAL [Z ~> m]

Functions/Subroutine Documentation

subroutine calc_SAL(eta, eta_sal, G, CS, tmp_scale)

This subroutine calculates seawater self-attraction and loading based on either sea surface height (SSH) or bottom pressure anomaly. Note that the SAL calculation applies to all motions across the spectrum. Tidal-specific methods that assume periodicity, i.e. iterative and read-in SAL, are stored in MOM_tidal_forcing module. The input field can be either SSH [Z ~> m] or total bottom pressure [R L2 T-2 ~> Pa]. If total bottom pressure is used, bottom pressure anomaly is first calculated by subtracting a reference bottom pressure from an input file. The output field is expressed as geopotential height anomaly, and therefore has the unit of [Z ~> m].

Parameters
  • G [in]

    The ocean's grid structure.

  • eta [in]

    The sea surface height anomaly from a time-mean geoid or total bottom pressure [Z ~> m] or [R L2 T-2 ~> Pa].

  • eta_sal [out]

    The geopotential height anomaly from self-attraction and loading [Z ~> m].

  • CS [inout]

    The control structure returned by a previous call to SAL_init.

  • tmp_scale [in]

    A rescaling factor to temporarily convert eta to MKS units in reproducing sumes [m Z-1 ~> 1]

Callees call graph
Callees of mom_self_attr_load::calc_sal calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_domain_infra MOM_domain_infra cluster_mom_self_attr_load MOM_self_attr_load cluster_mom_spherical_harmonics MOM_spherical_harmonics mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_domain_infra::interface::pass_var pass_var (interface) mom_self_attr_load::calc_sal calc_SAL mom_self_attr_load::calc_sal->mom_cpu_clock_infra::cpu_clock_begin mom_self_attr_load::calc_sal->mom_cpu_clock_infra::cpu_clock_end mom_self_attr_load::calc_sal->mom_domain_infra::interface::pass_var mom_spherical_harmonics::order2index order2index mom_self_attr_load::calc_sal->mom_spherical_harmonics::order2index mom_spherical_harmonics::spherical_harmonics_forward spherical_harmonics_forward mom_self_attr_load::calc_sal->mom_spherical_harmonics::spherical_harmonics_forward mom_spherical_harmonics::spherical_harmonics_inverse spherical_harmonics_inverse mom_self_attr_load::calc_sal->mom_spherical_harmonics::spherical_harmonics_inverse
Text view
Callers call graph
Callers of mom_self_attr_load::calc_sal calls cluster_mom_pressureforce_fv MOM_PressureForce_FV cluster_mom_pressureforce_mont MOM_PressureForce_Mont cluster_mom_self_attr_load MOM_self_attr_load mom_pressureforce_fv::pressureforce_fv_bouss PressureForce_FV_Bouss mom_self_attr_load::calc_sal calc_SAL mom_pressureforce_fv::pressureforce_fv_bouss->mom_self_attr_load::calc_sal mom_pressureforce_fv::pressureforce_fv_nonbouss PressureForce_FV_nonBouss mom_pressureforce_fv::pressureforce_fv_nonbouss->mom_self_attr_load::calc_sal mom_pressureforce_mont::pressureforce_mont_bouss PressureForce_Mont_Bouss mom_pressureforce_mont::pressureforce_mont_bouss->mom_self_attr_load::calc_sal mom_pressureforce_mont::pressureforce_mont_nonbouss PressureForce_Mont_nonBouss mom_pressureforce_mont::pressureforce_mont_nonbouss->mom_self_attr_load::calc_sal
Text view
subroutine scalar_SAL_sensitivity(CS, deta_sal_deta)

This subroutine returns eta_prop member of SAL_CS type, which is the non-dimensional partial derivative of the local geopotential height with the input sea surface height due to the scalar approximation of self-attraction and loading.

Parameters
  • CS [in]

    The control structure returned by a previous call to SAL_init.

  • deta_sal_deta [out]

    The partial derivative of eta_sal with the local value of eta [nondim].

Callers call graph
Callers of mom_self_attr_load::scalar_sal_sensitivity calls cluster_mom_barotropic MOM_barotropic cluster_mom_self_attr_load MOM_self_attr_load mom_barotropic::barotropic_init barotropic_init mom_self_attr_load::scalar_sal_sensitivity scalar_SAL_sensitivity mom_barotropic::barotropic_init->mom_self_attr_load::scalar_sal_sensitivity mom_barotropic::btstep btstep mom_barotropic::btstep->mom_self_attr_load::scalar_sal_sensitivity mom_barotropic::set_dtbt set_dtbt mom_barotropic::set_dtbt->mom_self_attr_load::scalar_sal_sensitivity
Text view
subroutine calc_love_scaling(rhoW, rhoE, grav, CS)

This subroutine calculates coefficients of the spherical harmonic modes for self-attraction and loading. The algorithm is based on the SAL implementation in MPAS-ocean, which was modified by Kristin Barton from routine written by K. Quinn (March 2010) and modified by M. Schindelegger (May 2017).

Parameters
  • rhoW [in]

    The average density of sea water [R ~> kg m-3]

  • rhoE [in]

    The average density of Earth [R ~> kg m-3]

  • grav [in]

    The gravitational acceleration [L2 Z-1 T-2 ~> m s-2]

  • CS [inout]

    The control structure returned by a previous call to SAL_init.

Callees call graph
Callees of mom_self_attr_load::calc_love_scaling calls cluster_mom_error_handler MOM_error_handler cluster_mom_self_attr_load MOM_self_attr_load cluster_mom_spherical_harmonics MOM_spherical_harmonics mom_error_handler::mom_error MOM_error mom_self_attr_load::calc_love_scaling calc_love_scaling [private/internal] mom_self_attr_load::calc_love_scaling->mom_error_handler::mom_error mom_spherical_harmonics::order2index order2index mom_self_attr_load::calc_love_scaling->mom_spherical_harmonics::order2index
Text view
Callers call graph
Callers of mom_self_attr_load::calc_love_scaling calls cluster_mom_self_attr_load MOM_self_attr_load mom_self_attr_load::calc_love_scaling calc_love_scaling [private/internal] mom_self_attr_load::sal_init SAL_init mom_self_attr_load::sal_init->mom_self_attr_load::calc_love_scaling
Text view
subroutine SAL_init(h, tv, G, GV, US, param_file, CS, restart_CS)

This subroutine initializes the self-attraction and loading control structure.

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure to parse for run-time parameters.

  • CS [inout]

    Self-attraction and loading control structure

  • tv [in]

    A structure pointing to various thermodynamic variables.

  • h [in]

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

  • restart_CS [in]

    MOM restart control structure

Callees call graph
Callees of mom_self_attr_load::sal_init calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_interface_heights MOM_interface_heights cluster_mom_io MOM_io cluster_mom_restart MOM_restart cluster_mom_self_attr_load MOM_self_attr_load cluster_mom_spherical_harmonics MOM_spherical_harmonics cluster_mom_string_functions MOM_string_functions mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_domain_infra::interface::pass_var pass_var (interface) 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_interface_heights::find_col_mass find_col_mass mom_io::create_mom_file create_MOM_file mom_io::interface::mom_read_data MOM_read_data (interface) mom_io::interface::mom_write_field MOM_write_field (interface) mom_io::var_desc var_desc mom_restart::is_new_run is_new_run mom_self_attr_load::calc_love_scaling calc_love_scaling [private/internal] mom_self_attr_load::sal_init SAL_init mom_self_attr_load::sal_init->mom_cpu_clock_infra::cpu_clock_id mom_self_attr_load::sal_init->mom_domain_infra::interface::pass_var mom_self_attr_load::sal_init->mom_error_handler::mom_error mom_self_attr_load::sal_init->mom_file_parser::interface::get_param mom_self_attr_load::sal_init->mom_file_parser::interface::log_param mom_self_attr_load::sal_init->mom_file_parser::interface::log_version mom_self_attr_load::sal_init->mom_interface_heights::find_col_mass mom_self_attr_load::sal_init->mom_io::create_mom_file mom_self_attr_load::sal_init->mom_io::interface::mom_read_data mom_self_attr_load::sal_init->mom_io::interface::mom_write_field mom_self_attr_load::sal_init->mom_io::var_desc mom_self_attr_load::sal_init->mom_restart::is_new_run mom_self_attr_load::sal_init->mom_self_attr_load::calc_love_scaling mom_spherical_harmonics::calc_lmax calc_lmax mom_self_attr_load::sal_init->mom_spherical_harmonics::calc_lmax mom_spherical_harmonics::spherical_harmonics_init spherical_harmonics_init mom_self_attr_load::sal_init->mom_spherical_harmonics::spherical_harmonics_init mom_string_functions::lowercase lowercase mom_self_attr_load::sal_init->mom_string_functions::lowercase mom_string_functions::slasher slasher mom_self_attr_load::sal_init->mom_string_functions::slasher
Text view
Callers call graph
Callers of mom_self_attr_load::sal_init calls cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 cluster_mom_self_attr_load MOM_self_attr_load mom_dynamics_split_rk2::initialize_dyn_split_rk2 initialize_dyn_split_RK2 mom_self_attr_load::sal_init SAL_init mom_dynamics_split_rk2::initialize_dyn_split_rk2->mom_self_attr_load::sal_init mom_dynamics_split_rk2b::initialize_dyn_split_rk2b initialize_dyn_split_RK2b mom_dynamics_split_rk2b::initialize_dyn_split_rk2b->mom_self_attr_load::sal_init mom_dynamics_unsplit::initialize_dyn_unsplit initialize_dyn_unsplit mom_dynamics_unsplit::initialize_dyn_unsplit->mom_self_attr_load::sal_init mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 initialize_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2->mom_self_attr_load::sal_init
Text view
subroutine SAL_end(CS)

This subroutine deallocates memory associated with the SAL module.

Parameters
  • CS [inout]

    The control structure returned by a previous call to SAL_init; it is deallocated here.

Callees call graph
Callees of mom_self_attr_load::sal_end calls cluster_mom_self_attr_load MOM_self_attr_load cluster_mom_spherical_harmonics MOM_spherical_harmonics mom_self_attr_load::sal_end SAL_end mom_spherical_harmonics::spherical_harmonics_end spherical_harmonics_end mom_self_attr_load::sal_end->mom_spherical_harmonics::spherical_harmonics_end
Text view
Callers call graph
Callers of mom_self_attr_load::sal_end calls cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 cluster_mom_self_attr_load MOM_self_attr_load mom_dynamics_split_rk2::end_dyn_split_rk2 end_dyn_split_RK2 mom_self_attr_load::sal_end SAL_end mom_dynamics_split_rk2::end_dyn_split_rk2->mom_self_attr_load::sal_end mom_dynamics_split_rk2b::end_dyn_split_rk2b end_dyn_split_RK2b mom_dynamics_split_rk2b::end_dyn_split_rk2b->mom_self_attr_load::sal_end mom_dynamics_unsplit::end_dyn_unsplit end_dyn_unsplit mom_dynamics_unsplit::end_dyn_unsplit->mom_self_attr_load::sal_end mom_dynamics_unsplit_rk2::end_dyn_unsplit_rk2 end_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::end_dyn_unsplit_rk2->mom_self_attr_load::sal_end
Text view
API generated with Flint · Rendered from reStructuredText