MOM_dynamics_unsplit_RK2 module reference
Time steps the ocean dynamics with an unsplit quasi 2nd order Runge-Kutta scheme
Data Types
MOM_dynamics_unsplit_RK2 module control structure |
Functions/Subroutines
Step the MOM6 dynamics using an unsplit quasi-2nd order Runge-Kutta scheme |
|
Allocate the control structure for this module, allocates memory in it, and registers any auxiliary restart variables that are specific to the unsplit RK2 time stepping scheme. |
|
Initialize parameters and allocate memory associated with the unsplit RK2 dynamics module. |
|
Clean up and deallocate memory associated with the dyn_unsplit_RK2 module. |
Type Documentation
- type, public :: MOM_dyn_unsplit_RK2_CS
MOM_dynamics_unsplit_RK2 module control structure
- Parameters
CAu
CAu = f*v - u.grad(u) [L T-2 ~> m s-2].
PFu
PFu = -dM/dx [L T-2 ~> m s-2].
diffu
Zonal acceleration due to convergence of the along-isopycnal stress tensor [L T-2 ~> m s-2].
CAv
CAv = -f*u - u.grad(v) [L T-2 ~> m s-2].
PFv
PFv = -dM/dy [L T-2 ~> m s-2].
diffv
Meridional acceleration due to convergence of the along-isopycnal stress tensor [L T-2 ~> m s-2].
taux_bot
frictional x-bottom stress from the ocean to the seafloor [R L Z T-2 ~> Pa]
tauy_bot
frictional y-bottom stress from the ocean to the seafloor [R L Z T-2 ~> Pa]
be
A nondimensional number from 0.5 to 1 that controls the backward weighting of the time stepping scheme [nondim].
begw
A nondimensional number from 0 to 1 that controls the extent to which the treatment of gravity waves is forward-backward (0) or simulated backward Euler (1) [nondim]. 0 is often used.
dt_visc_bug
If false, use the correct timestep in the calculation of the turbulent mixed layer properties for viscosity. Otherwise if this is true, an older incorrect setting is used.
debug
If true, write verbose checksums for debugging purposes.
calculate_SAL
If true, calculate self-attraction and loading.
use_tides
If true, tidal forcing is enabled.
id_uh
Diagnostic IDs
id_vh
Diagnostic IDs
id_ueffA
Diagnostic IDs
id_veffA
Diagnostic IDs
id_PFu
Diagnostic IDs
id_PFv
Diagnostic IDs
id_CAu
Diagnostic IDs
id_CAv
Diagnostic IDs
diag
A structure that is used to regulate the timing of diagnostic output.
ADp
A structure pointing to the accelerations in the momentum equations, which can later be used to calculate derived diagnostics like energy budgets.
CDp
A structure with pointers to various terms in the continuity equations, which can later be used to calculate derived diagnostics like energy budgets.
A pointer to the horizontal viscosity control structure
hor_visc
A pointer to the continuity control structure
continuity_CSp
The CoriolisAdv control structure
CoriolisAdv
A pointer to the PressureForce control structure
PressureForce_CSp
A pointer to the vertvisc control structure
vertvisc_CSp
A pointer to the set_visc control structure
set_visc_CSp
A pointer to the SAL control structure
SAL_CSp
A pointer to the tidal forcing control structure
tides_CSp
A pointer to the ALE control structure.
OBC
A pointer to an open boundary condition type that specifies whether, where, and what open boundary conditions are used. If no open BCs are used, this pointer stays nullified. Flather OBCs use open boundary_CS as well. A pointer to the update_OBC control structure
Functions/Subroutine Documentation
- subroutine step_MOM_dyn_unsplit_RK2(u_in, v_in, h_in, tv, visc, Time_local, dt, forces, p_surf_begin, p_surf_end, uh, vh, uhtr, vhtr, eta_av, G, GV, US, CS, VarMix, MEKE, pbv, STOCH)
Step the MOM6 dynamics using an unsplit quasi-2nd order Runge-Kutta scheme
- Parameters
G [inout]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
u_in [inout]
The input and output zonal velocity [L T-1 ~> m s-1].
v_in [inout]
The input and output meridional velocity [L T-1 ~> m s-1].
h_in [inout]
The input and output layer thicknesses, [H ~> m or kg m-2], depending on whether the Boussinesq approximation is made.
tv [in]
A structure pointing to various thermodynamic variables.
visc [inout]
A structure containing vertical viscosities, bottom drag viscosities, and related fields.
Time_local [in]
The model time at the end of the time step.
dt [in]
The baroclinic dynamics time step [T ~> s].
forces [in]
A structure with the driving mechanical forces
p_surf_begin
A pointer (perhaps NULL) to the surface pressure at the beginning of this dynamic step [R L2 T-2 ~> Pa].
p_surf_end
A pointer (perhaps NULL) to the surface pressure at the end of this dynamic step [R L2 T-2 ~> Pa].
uh [inout]
The zonal volume or mass transport [H L2 T-1 ~> m3 s-1 or kg s-1].
vh [inout]
The meridional volume or mass transport [H L2 T-1 ~> m3 s-1 or kg s-1].
uhtr [inout]
The accumulated zonal volume or mass transport since the last tracer advection [H L2 ~> m3 or kg].
vhtr [inout]
The accumulated meridional volume or mass transport since the last tracer advection [H L2 ~> m3 or kg].
eta_av [out]
The time-mean free surface height or column mass [H ~> m or kg m-2].
CS
The control structure set up by initialize_dyn_unsplit_RK2.
VarMix [inout]
Variable mixing control structure
MEKE [inout]
MEKE fields fields related to the Mesoscale Eddy Kinetic Energy.
pbv [in]
porous barrier fractional cell metrics
STOCH [inout]
Stochastic control structure
Callees call graph
Text view
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_boundary_update::update_obc_data
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_checksum_packages::interface::mom_state_chksum
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_checksum_packages::mom_accel_chksum
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_continuity_ppm::continuity_ppm
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_coriolisadv::coradcalc
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_coriolisadv::coriolisadv_stencil
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_cpu_clock_infra::cpu_clock_begin
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_cpu_clock_infra::cpu_clock_end
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_diag_mediator::disable_averaging
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_diag_mediator::enable_averages
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_diag_mediator::interface::post_data
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_domain_infra::interface::pass_var
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_domain_infra::interface::pass_vector
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_hor_visc::horizontal_viscosity
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_interface_heights::interface::thickness_to_dz
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_open_boundary::open_boundary_zero_normal_flow
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_pressureforce::pressureforce
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_safe_alloc::interface::safe_alloc_ptr
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_set_visc::set_viscous_ml
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_vert_friction::vertvisc
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_vert_friction::vertvisc_coef
Callers call graph
- subroutine register_restarts_dyn_unsplit_RK2(HI, GV, param_file, CS)
Allocate the control structure for this module, allocates memory in it, and registers any auxiliary restart variables that are specific to the unsplit RK2 time stepping scheme.
All variables registered here should have the ability to be recreated if they are not present in a restart file.
- Parameters
HI [in]
A horizontal index type structure.
GV [in]
The ocean's vertical grid structure.
param_file [in]
A structure to parse for run-time parameters.
CS
The control structure set up by initialize_dyn_unsplit_RK2.
Callees call graph
Callers call graph
- subroutine initialize_dyn_unsplit_RK2(u, v, h, tv, Time, G, GV, US, param_file, diag, CS, Accel_diag, Cont_diag, MIS, OBC, update_OBC_CSp, ALE_CSp, set_visc, visc, dirs, ntrunc, cont_stencil, dyn_h_stencil)
Initialize parameters and allocate memory associated with the unsplit RK2 dynamics module.
- Parameters
G [inout]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
u [inout]
The zonal velocity [L T-1 ~> m s-1].
v [inout]
The meridional velocity [L T-1 ~> m s-1].
h [inout]
Layer thicknesses [H ~> m or kg m-2]
tv [in]
Thermodynamic type
Time [in]
The current model time.
param_file [in]
A structure to parse for run-time parameters.
diag [inout]
A structure that is used to regulate diagnostic output.
CS
The control structure set up by initialize_dyn_unsplit_RK2.
Accel_diag [inout]
A set of pointers to the various accelerations in the momentum equations, which can be used for later derived diagnostics, like energy budgets.
Cont_diag [inout]
A structure with pointers to various terms in the continuity equations.
MIS [inout]
The "MOM6 Internal State" structure, used to pass around pointers to various arrays for diagnostic purposes.
OBC
If open boundary conditions are used, this points to the ocean_OBC_type that was set up in MOM_initialization.
update_OBC_CSp
If open boundary condition updates are used, this points to the appropriate control structure.
ALE_CSp
This points to the ALE control structure.
set_visc [in]
set visc control structure
visc [inout]
A structure containing vertical viscosities, bottom drag viscosities, and related fields.
dirs [in]
A structure containing several relevant directory paths.
ntrunc [inout]
A target for the variable that records the number of times the velocity is truncated (this should be 0).
cont_stencil [out]
The stencil for thickness from the continuity solver.
dyn_h_stencil [out]
The stencil for thickness for the dynamics based on the continuity solver and Coriolis scheme.
Callees call graph
Text view
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_continuity_ppm::continuity_ppm_init
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_continuity_ppm::continuity_ppm_stencil
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_coriolisadv::coriolisadv_init
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_coriolisadv::coriolisadv_stencil
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_cpu_clock_infra::cpu_clock_id
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_diag_mediator::register_diag_field
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_error_handler::mom_error
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_file_parser::interface::get_param
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_file_parser::interface::log_version
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_hor_visc::hor_visc_init
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_pressureforce::pressureforce_init
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_self_attr_load::sal_init
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_tidal_forcing::tidal_forcing_init
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_vert_friction::vertvisc_init
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_verticalgrid::get_flux_units
Callers call graph
- subroutine end_dyn_unsplit_RK2(CS)
Clean up and deallocate memory associated with the dyn_unsplit_RK2 module.
- Parameters
CS
dyn_unsplit_RK2 control structure that will be deallocated in this subroutine.