MOM6
|
Accelerations due to the Coriolis force and momentum advection.
This file contains the subroutine that calculates the time derivatives of the velocities due to Coriolis acceleration and momentum advection. This subroutine uses either a vorticity advection scheme from Arakawa and Hsu, Mon. Wea. Rev. 1990, or Sadourny's (JAS 1975) energy conserving scheme. Both have been modified to use general orthogonal coordinates as described in Arakawa and Lamb, Mon. Wea. Rev. 1981. Both schemes are second order accurate, and allow for vanishingly small layer thicknesses. The Arakawa and Hsu scheme globally conserves both total energy and potential enstrophy in the limit of nondivergent flow. Sadourny's energy conserving scheme conserves energy if the flow is nondivergent or centered difference thickness fluxes are used.
Two sets of boundary conditions have been coded in the definition of relative vorticity. These are written as: NOSLIP defined (in spherical coordinates): relvort = dv/dx (east & west), with v = 0. relvort = -sec(Q) * d(u cos(Q))/dy (north & south), with u = 0.
NOSLIP not defined (free slip): relvort = 0 (all boundaries)
with Q temporarily defined as latitude. The free slip boundary condition is much more natural on a C-grid.
A small fragment of the grid is shown below:
j+1 x ^ x ^ x At x: q, CoriolisBu j+1 > o > o > At ^: v, CAv, vh j x ^ x ^ x At >: u, CAu, uh, a, b, c, d j > o > o > At o: h, KE j-1 x ^ x ^ x i-1 i i+1 At x & ^: i i+1 At > & o:
The boundaries always run through q grid points (x).
Data Types | |
type | coriolisadv_cs |
Control structure for mom_coriolisadv. More... | |
integer, parameter | sadourny75_energy = 1 |
Enumeration values for Coriolis_Scheme. More... | |
integer, parameter | arakawa_hsu90 = 2 |
Enumeration values for Coriolis_Scheme. More... | |
integer, parameter | robust_enstro = 3 |
Enumeration values for Coriolis_Scheme. More... | |
integer, parameter | sadourny75_enstro = 4 |
Enumeration values for Coriolis_Scheme. More... | |
integer, parameter | arakawa_lamb81 = 5 |
Enumeration values for Coriolis_Scheme. More... | |
integer, parameter | al_blend = 6 |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | sadourny75_energy_string = "SADOURNY75_ENERGY" |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | arakawa_hsu_string = "ARAKAWA_HSU90" |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | robust_enstro_string = "ROBUST_ENSTRO" |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | sadourny75_enstro_string = "SADOURNY75_ENSTRO" |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | arakawa_lamb_string = "ARAKAWA_LAMB81" |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | al_blend_string = "ARAKAWA_LAMB_BLEND" |
Enumeration values for Coriolis_Scheme. More... | |
integer, parameter | ke_arakawa = 10 |
Enumeration values for KE_Scheme. More... | |
integer, parameter | ke_simple_gudonov = 11 |
Enumeration values for Coriolis_Scheme. More... | |
integer, parameter | ke_gudonov = 12 |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | ke_arakawa_string = "KE_ARAKAWA" |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | ke_simple_gudonov_string = "KE_SIMPLE_GUDONOV" |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | ke_gudonov_string = "KE_GUDONOV" |
Enumeration values for Coriolis_Scheme. More... | |
integer, parameter | pv_adv_centered = 21 |
Enumeration values for PV_Adv_Scheme. More... | |
integer, parameter | pv_adv_upwind1 = 22 |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | pv_adv_centered_string = "PV_ADV_CENTERED" |
Enumeration values for Coriolis_Scheme. More... | |
character *(20), parameter | pv_adv_upwind1_string = "PV_ADV_UPWIND1" |
Enumeration values for Coriolis_Scheme. More... | |
subroutine, public | coradcalc (u, v, h, uh, vh, CAu, CAv, OBC, AD, G, GV, US, CS) |
Calculates the Coriolis and momentum advection contributions to the acceleration. More... | |
subroutine | gradke (u, v, h, KE, KEx, KEy, k, OBC, G, US, CS) |
Calculates the acceleration due to the gradient of kinetic energy. More... | |
subroutine, public | coriolisadv_init (Time, G, GV, US, param_file, diag, AD, CS) |
Initializes the control structure for coriolisadv_cs. More... | |
subroutine, public | coriolisadv_end (CS) |
Destructor for coriolisadv_cs. More... | |
subroutine, public mom_coriolisadv::coradcalc | ( | real, dimension(szib_(g),szj_(g),szk_(g)), intent(in) | u, |
real, dimension(szi_(g),szjb_(g),szk_(g)), intent(in) | v, | ||
real, dimension(szi_(g),szj_(g),szk_(g)), intent(in) | h, | ||
real, dimension(szib_(g),szj_(g),szk_(g)), intent(in) | uh, | ||
real, dimension(szi_(g),szjb_(g),szk_(g)), intent(in) | vh, | ||
real, dimension(szib_(g),szj_(g),szk_(g)), intent(out) | CAu, | ||
real, dimension(szi_(g),szjb_(g),szk_(g)), intent(out) | CAv, | ||
type(ocean_obc_type), pointer | OBC, | ||
type(accel_diag_ptrs), intent(inout) | AD, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
type(unit_scale_type), intent(in) | US, | ||
type(coriolisadv_cs), pointer | CS | ||
) |
Calculates the Coriolis and momentum advection contributions to the acceleration.
[in] | g | Ocen grid structure |
[in] | gv | Vertical grid structure |
[in] | u | Zonal velocity [L T-1 ~> m s-1] |
[in] | v | Meridional velocity [L T-1 ~> m s-1] |
[in] | h | Layer thickness [H ~> m or kg m-2] |
[in] | uh | Zonal transport u*h*dy [H L2 T-1 ~> m3 s-1 or kg s-1] |
[in] | vh | Meridional transport v*h*dx [H L2 T-1 ~> m3 s-1 or kg s-1] |
[out] | cau | Zonal acceleration due to Coriolis and momentum advection [L T-2 ~> m s-2]. |
[out] | cav | Meridional acceleration due to Coriolis and momentum advection [L T-2 ~> m s-2]. |
obc | Open boundary control structure | |
[in,out] | ad | Storage for acceleration diagnostics |
[in] | us | A dimensional unit scaling type |
cs | Control structure for MOM_CoriolisAdv |
Definition at line 112 of file MOM_CoriolisAdv.F90.
References al_blend, arakawa_hsu90, arakawa_lamb81, gradke(), mom_error_handler::mom_error(), mom_open_boundary::obc_direction_n, pv_adv_centered, pv_adv_upwind1, robust_enstro, sadourny75_energy, and sadourny75_enstro.
Referenced by mom_dynamics_split_rk2::step_mom_dyn_split_rk2(), mom_dynamics_unsplit::step_mom_dyn_unsplit(), and mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2().
subroutine, public mom_coriolisadv::coriolisadv_end | ( | type(coriolisadv_cs), pointer | CS | ) |
Destructor for coriolisadv_cs.
cs | Control structure fro MOM_CoriolisAdv |
Definition at line 1093 of file MOM_CoriolisAdv.F90.
subroutine, public mom_coriolisadv::coriolisadv_init | ( | type(time_type), intent(in), target | Time, |
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
type(unit_scale_type), intent(in) | US, | ||
type(param_file_type), intent(in) | param_file, | ||
type(diag_ctrl), intent(inout), target | diag, | ||
type(accel_diag_ptrs), intent(inout), target | AD, | ||
type(coriolisadv_cs), pointer | CS | ||
) |
Initializes the control structure for coriolisadv_cs.
[in] | time | Current model time |
[in] | g | Ocean grid structure |
[in] | gv | Vertical grid structure |
[in] | us | A dimensional unit scaling type |
[in] | param_file | Runtime parameter handles |
[in,out] | diag | Diagnostics control structure |
[in,out] | ad | Strorage for acceleration diagnostics |
cs | Control structure fro MOM_CoriolisAdv |
Definition at line 921 of file MOM_CoriolisAdv.F90.
References al_blend, al_blend_string, arakawa_hsu90, arakawa_hsu_string, arakawa_lamb81, arakawa_lamb_string, ke_arakawa, ke_arakawa_string, ke_gudonov, ke_gudonov_string, ke_simple_gudonov, ke_simple_gudonov_string, mom_error_handler::mom_error(), mom_error_handler::mom_mesg(), pv_adv_centered, pv_adv_centered_string, pv_adv_upwind1, pv_adv_upwind1_string, mom_diag_mediator::register_diag_field(), robust_enstro, robust_enstro_string, sadourny75_energy, sadourny75_energy_string, sadourny75_enstro, sadourny75_enstro_string, and mom_string_functions::uppercase().
Referenced by mom_dynamics_split_rk2::initialize_dyn_split_rk2(), mom_dynamics_unsplit::initialize_dyn_unsplit(), and mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2().
|
private |
Calculates the acceleration due to the gradient of kinetic energy.
[in] | g | Ocen grid structure |
[in] | u | Zonal velocity [L T-1 ~> m s-1] |
[in] | v | Meridional velocity [L T-1 ~> m s-1] |
[in] | h | Layer thickness [H ~> m or kg m-2] |
[out] | ke | Kinetic energy per unit mass [L2 T-2 ~> m2 s-2] |
[out] | kex | Zonal acceleration due to kinetic energy gradient [L T-2 ~> m s-2] |
[out] | key | Meridional acceleration due to kinetic energy gradient [L T-2 ~> m s-2] |
[in] | k | Layer number to calculate for |
obc | Open boundary control structure | |
[in] | us | A dimensional unit scaling type |
cs | Control structure for MOM_CoriolisAdv |
Definition at line 837 of file MOM_CoriolisAdv.F90.
References ke_arakawa, ke_gudonov, and ke_simple_gudonov.
Referenced by coradcalc().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 85 of file MOM_CoriolisAdv.F90.
Referenced by coradcalc(), and coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 91 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 81 of file MOM_CoriolisAdv.F90.
Referenced by coradcalc(), and coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 87 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 84 of file MOM_CoriolisAdv.F90.
Referenced by coradcalc(), and coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 90 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for KE_Scheme.
Definition at line 94 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init(), and gradke().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 97 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 96 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init(), and gradke().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 99 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 95 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init(), and gradke().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 98 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for PV_Adv_Scheme.
Definition at line 102 of file MOM_CoriolisAdv.F90.
Referenced by coradcalc(), and coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 104 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 103 of file MOM_CoriolisAdv.F90.
Referenced by coradcalc(), and coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 105 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 82 of file MOM_CoriolisAdv.F90.
Referenced by coradcalc(), and coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 88 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
integer, parameter mom_coriolisadv::sadourny75_energy = 1 |
Enumeration values for Coriolis_Scheme.
Definition at line 80 of file MOM_CoriolisAdv.F90.
Referenced by coradcalc(), and coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 86 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 83 of file MOM_CoriolisAdv.F90.
Referenced by coradcalc(), and coriolisadv_init().
|
private |
Enumeration values for Coriolis_Scheme.
Definition at line 89 of file MOM_CoriolisAdv.F90.
Referenced by coriolisadv_init().