MOM_tidal_forcing module reference
Tidal contributions to geopotential
Data Types
The maximum number of tidal constituents that could be used. Simple type to store astronomical longitudes used to calculate tidal phases. |
|
The control structure for the MOM_tidal_forcing module |
Functions/Subroutines
Finds astronomical longitudes s, h, p, and N, the mean longitude of the moon, sun, lunar perigee, and ascending node, respectively, at the specified reference time time_ref. These formulas were obtained from Kowalik and Luick, "Modern Theory and Practice of Tide Analysis and Tidal Power", 2019 (their Equation I.71), which are based on Schureman, 1958. For simplicity, the time associated with time_ref should be at midnight. These formulas also only make sense if the calendar is Gregorian. |
|
Calculates the equilibrium phase argument for the given tidal constituent constit and the astronomical longitudes and the reference time. These formulas follow Table I.4 of Kowalik and Luick, "Modern Theory and Practice of Tide Analysis and Tidal Power", 2019. |
|
Looks up angular frequencies for the main tidal constituents. Values used here are from previous versions of MOM. |
|
Find amplitude (f) and phase (u) modulation of tidal constituents by the 18.6 year nodal cycle. Values here follow Table I.6 in Kowalik and Luick, "Modern Theory and Practice of Tide Analysis and Tidal Power", 2019. |
|
This subroutine allocates space for the static variables used by this module. The metrics may be effectively 0, 1, or 2-D arrays, while fields like the background viscosities are 2-D arrays. ALLOC is a macro defined in MOM_memory.h for allocate or nothing with static memory. |
|
This subroutine finds a named variable in a list of files and reads its values into a domain-decomposed 2-d array |
|
This subroutine calculates the geopotential anomalies that drive the tides, including tidal self-attraction and loading from previous solutions. |
|
This subroutine functions the same as calc_tidal_forcing but outputs a field that combines previously calculated self-attraction and loading (SAL) and tidal forcings, so that old answers can be preserved bitwise before SAL is separated out as an individual module. |
|
This subroutine deallocates memory associated with the tidal forcing module. |
Detailed Description
Tidal forcing
Code by Robert Hallberg, August 2005, based on C-code by Harper Simmons, February, 2003, in turn based on code by Brian Arbic.
The main subroutine in this file calculates the total tidal contribution to the geopotential, including self-attraction and loading terms and the astronomical contributions. All options are selected with entries in a file that is parsed at run-time. Overall tides are enabled with the run-time parameter 'TIDES=True'. Tidal constituents must be individually enabled with lines like 'TIDE_M2=True'. This file has default values of amplitude, frequency, Love number, and phase at time 0 for the Earth's M2, S2, N2, K2, K1, O1, P1, Q1, MF, and MM tidal constituents, but the frequency, amplitude and phase ant time 0 for each constituent can be changed at run time by setting variables like TIDE_M2_FREQ, TIDE_M2_AMP and TIDE_M2_PHASE_T0 (for M2).
In addition, approaches to calculate self-attraction and loading due to tides (harmonics of astronomical forcing frequencies) are provided. TIDAL_SAL_FROM_FILE can be set to read the phase and amplitude of the tidal SAL. USE_PREVIOUS_TIDES may be useful in combination with the scalar approximation to iterate the SAL to convergence (for details, see [8]). With TIDAL_SAL_FROM_FILE or USE_PREVIOUS_TIDES, a list of input files must be provided to describe each constituent's properties from a previous solution. The online SAL calculations that are functions of SSH (rather should be bottom pressure anmoaly), either a scalar approximation or with spherical harmonic transforms, are located in MOM_self_attr_load.
Type Documentation
- type, public :: astro_longitudes
The maximum number of tidal constituents that could be used. Simple type to store astronomical longitudes used to calculate tidal phases.
- Parameters
s
Mean longitude of moon [rad]
h
Mean longitude of sun [rad]
p
Mean longitude of lunar perigee [rad]
N
Longitude of ascending node [rad]
- type, public :: tidal_forcing_CS
The control structure for the MOM_tidal_forcing module
- Parameters
use_tidal_sal_file
If true, Read the tidal self-attraction and loading from input files, specified by TIDAL_INPUT_FILE.
use_tidal_sal_prev
If true, use the SAL from the previous iteration of the tides to facilitate convergence.
use_eq_phase
If true, tidal forcing is phase-shifted to match equilibrium tide. Set to false if providing tidal phases that have already been shifted by the astronomical/equilibrium argument.
sal_scalar
The constant of proportionality between self-attraction and loading (SAL) geopotential anomaly and total geopotential geopotential anomalies. This is only used if USE_PREVIOUS_TIDES is true. [nondim].
nc
The number of tidal constituents in use.
freq
The frequency of a tidal constituent [rad T-1 ~> rad s-1].
phase0
The phase of a tidal constituent at time 0 [rad].
amp
The amplitude of a tidal constituent at time 0 [Z ~> m].
love_no
The Love number of a tidal constituent at time 0 [nondim].
struct
An encoded spatial structure for each constituent
const_name
The name of each constituent
time_ref
Reference time (t = 0) used to calculate tidal forcing.
tidal_longitudes
Astronomical longitudes used to calculate tidal phases at t = 0.
sin_struct
The sine based structures that can be associated with the astronomical forcing [nondim].
cos_struct
The cosine based structures that can be associated with the astronomical forcing [nondim].
cosphasesal
The cosine of the phase of the self-attraction and loading amphidromes [nondim].
sinphasesal
The sine of the phase of the self-attraction and loading amphidromes [nondim].
ampsal
The amplitude of the SAL [Z ~> m].
cosphase_prev
The cosine of the phase of the amphidromes in the previous tidal solutions [nondim].
sinphase_prev
The sine of the phase of the amphidromes in the previous tidal solutions [nondim].
amp_prev
The amplitude of the previous tidal solution [Z ~> m].
tide_fn
Amplitude modulation of tides by nodal cycle [nondim].
tide_un
Phase modulation of tides by nodal cycle [rad].
Functions/Subroutine Documentation
- subroutine astro_longitudes_init(time_ref, longitudes)
Finds astronomical longitudes s, h, p, and N, the mean longitude of the moon, sun, lunar perigee, and ascending node, respectively, at the specified reference time time_ref. These formulas were obtained from Kowalik and Luick, "Modern Theory and Practice of Tide Analysis and Tidal Power", 2019 (their Equation I.71), which are based on Schureman, 1958. For simplicity, the time associated with time_ref should be at midnight. These formulas also only make sense if the calendar is Gregorian.
- Parameters
time_ref [in]
Time to calculate longitudes for.
longitudes [out]
Lunar and solar longitudes at time_ref.
D
Time since the reference date [days]
T
Time in Julian centuries [centuries]
PI
3.14159... [nondim]
Callees call graph
Callers call graph
External calls
- time_manager_mod
set_date (time_manager_mod::set_date)
- function eq_phase(constit, longitudes)
Calculates the equilibrium phase argument for the given tidal constituent constit and the astronomical longitudes and the reference time. These formulas follow Table I.4 of Kowalik and Luick, "Modern Theory and Practice of Tide Analysis and Tidal Power", 2019.
- Parameters
constit [in]
Name of constituent (e.g., M2).
longitudes [in]
Mean longitudes calculated using astro_longitudes_init
PI
3.14159... [nondim]
eq_phase
The equilibrium phase argument for the constituent [rad].
- function tidal_frequency(constit)
Looks up angular frequencies for the main tidal constituents. Values used here are from previous versions of MOM.
- Parameters
constit [in]
Constituent to look up
tidal_frequency
Angular frequency [rad s-1]
Callers call graph
- subroutine nodal_fu(constit, nodelon, fn, un)
Find amplitude (f) and phase (u) modulation of tidal constituents by the 18.6 year nodal cycle. Values here follow Table I.6 in Kowalik and Luick, "Modern Theory and Practice of Tide Analysis and Tidal Power", 2019.
- Parameters
constit [in]
Tidal constituent to find modulation for.
nodelon [in]
Longitude of ascending node [rad], which can be calculated using astro_longitudes_init.
fn [out]
Amplitude modulation [nondim]
un [out]
Phase modulation [rad]
RADIANS
Converts degrees to radians [nondim]
- subroutine tidal_forcing_init(Time, G, US, param_file, CS)
This subroutine allocates space for the static variables used by this module. The metrics may be effectively 0, 1, or 2-D arrays, while fields like the background viscosities are 2-D arrays. ALLOC is a macro defined in MOM_memory.h for allocate or nothing with static memory.
- Parameters
Time [in]
The current model time.
G [inout]
The ocean's grid structure.
US [in]
A dimensional unit scaling type
param_file [in]
A structure to parse for run-time parameters.
CS [inout]
Tidal forcing control structure
tide_ref_date
Reference date (t = 0) for tidal forcing.
nodal_ref_date
Reference date for calculating nodal modulation for tidal forcing.
add_nodal_terms
If true, insert terms for the 18.6 year modulation when calculating tidal forcing.
nodal_time
Model time to calculate nodal modulation for.
nodal_longitudes
Solar and lunar longitudes for tidal forcing
Callees call graph
Text view
mom_tidal_forcing::tidal_forcing_init → mom_cpu_clock_infra::cpu_clock_id
mom_tidal_forcing::tidal_forcing_init → mom_domain_infra::interface::pass_var
mom_tidal_forcing::tidal_forcing_init → mom_error_handler::mom_error
mom_tidal_forcing::tidal_forcing_init → mom_error_handler::mom_mesg
mom_tidal_forcing::tidal_forcing_init → mom_file_parser::interface::get_param
mom_tidal_forcing::tidal_forcing_init → mom_file_parser::interface::log_version
mom_tidal_forcing::tidal_forcing_init → mom_tidal_forcing::astro_longitudes_init
mom_tidal_forcing::tidal_forcing_init → mom_tidal_forcing::eq_phase
mom_tidal_forcing::tidal_forcing_init → mom_tidal_forcing::find_in_files
mom_tidal_forcing::tidal_forcing_init → mom_tidal_forcing::nodal_fu
mom_tidal_forcing::tidal_forcing_init → mom_tidal_forcing::tidal_frequency
Callers call graph
Text view
mom_dynamics_split_rk2::initialize_dyn_split_rk2 → mom_tidal_forcing::tidal_forcing_init
mom_dynamics_split_rk2b::initialize_dyn_split_rk2b → mom_tidal_forcing::tidal_forcing_init
mom_dynamics_unsplit::initialize_dyn_unsplit → mom_tidal_forcing::tidal_forcing_init
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_tidal_forcing::tidal_forcing_init
External calls
- time_manager_mod
set_date (time_manager_mod::set_date)
- subroutine find_in_files(filenames, varname, array, G, scale)
This subroutine finds a named variable in a list of files and reads its values into a domain-decomposed 2-d array
- Parameters
filenames [in]
The names of the files to search for the named variable
varname [in]
The name of the variable to read
G [in]
The ocean's grid structure
array [out]
The array to fill with the data [arbitrary]
scale [in]
A factor by which to rescale the array to translate it into its desired units [arbitrary]
Callees call graph
Callers call graph
- subroutine calc_tidal_forcing(Time, e_tide_eq, e_tide_sal, G, US, CS)
This subroutine calculates the geopotential anomalies that drive the tides, including tidal self-attraction and loading from previous solutions.
- Parameters
G [in]
The ocean's grid structure.
Time [in]
The time for the caluculation.
e_tide_eq [out]
The geopotential height anomalies due to the equilibrium tides [Z ~> m].
e_tide_sal [out]
The geopotential height anomalies due to the tidal SAL [Z ~> m].
US [in]
A dimensional unit scaling type
CS [in]
The control structure returned by a previous call to tidal_forcing_init.
Callees call graph
Callers call graph
Text view
mom_pressureforce_fv::pressureforce_fv_bouss → mom_tidal_forcing::calc_tidal_forcing
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_tidal_forcing::calc_tidal_forcing
mom_pressureforce_mont::pressureforce_mont_bouss → mom_tidal_forcing::calc_tidal_forcing
mom_pressureforce_mont::pressureforce_mont_nonbouss → mom_tidal_forcing::calc_tidal_forcing
- subroutine calc_tidal_forcing_legacy(Time, e_sal, e_sal_tide, e_tide_eq, e_tide_sal, G, US, CS)
This subroutine functions the same as calc_tidal_forcing but outputs a field that combines previously calculated self-attraction and loading (SAL) and tidal forcings, so that old answers can be preserved bitwise before SAL is separated out as an individual module.
- Parameters
G [in]
The ocean's grid structure.
Time [in]
The time for the caluculation.
e_sal [in]
The self-attraction and loading fields calculated previously used to initialized e_sal_tide [Z ~> m].
e_sal_tide [out]
The total geopotential height anomalies due to both SAL and tidal forcings [Z ~> m].
e_tide_eq [out]
The geopotential height anomalies due to the equilibrium tides [Z ~> m].
e_tide_sal [out]
The geopotential height anomalies due to the tidal SAL [Z ~> m].
US [in]
A dimensional unit scaling type
CS [in]
The control structure returned by a previous call to tidal_forcing_init.
Callees call graph
- subroutine tidal_forcing_end(CS)
This subroutine deallocates memory associated with the tidal forcing module.
- Parameters
CS [inout]
The control structure returned by a previous call to tidal_forcing_init; it is deallocated here.
Callers call graph
Text view
mom_dynamics_split_rk2::end_dyn_split_rk2 → mom_tidal_forcing::tidal_forcing_end
mom_dynamics_split_rk2b::end_dyn_split_rk2b → mom_tidal_forcing::tidal_forcing_end
mom_dynamics_unsplit::end_dyn_unsplit → mom_tidal_forcing::tidal_forcing_end
mom_dynamics_unsplit_rk2::end_dyn_unsplit_rk2 → mom_tidal_forcing::tidal_forcing_end