MOM_PressureForce_FV module reference
Finite volume pressure gradient (integrated by quadrature or analytically)
Data Types
Finite volume pressure gradient control structure |
Functions/Subroutines
Non-Boussinesq analytically-integrated finite volume form of pressure gradient |
|
Boussinesq analytically-integrated finite volume form of pressure gradient |
|
Initializes the finite volume pressure gradient control structure |
Detailed Description
Provides the Boussinesq and non-Boussinesq forms of horizontal accelerations due to pressure gradients using a vertically integrated finite volume form, as described by Adcroft et al., 2008. Integration in the vertical is made either by quadrature or analytically.
This form eliminates the thermobaric instabilities that had been a problem with previous forms of the pressure gradient force calculation, as described by Hallberg, 2005.
Adcroft, A., R. Hallberg, and M. Harrison, 2008: A finite volume discretization of the pressure gradient force using analytic integration. Ocean Modelling, 22, 106-113. http://doi.org/10.1016/j.ocemod.2008.02.001
Hallberg, 2005: A thermobaric instability of Lagrangian vertical coordinate ocean models. Ocean Modelling, 8, 279-300. http://dx.doi.org/10.1016/j.ocemod.2004.01.001
Type Documentation
- type, public :: PressureForce_FV_CS
Finite volume pressure gradient control structure
- Parameters
initialized
True if this control structure has been initialized.
calculate_SAL
If true, calculate self-attraction and loading.
sal_use_bpa
If true, use bottom pressure anomaly instead of SSH to calculate SAL.
tides
If true, apply tidal momentum forcing.
rho_ref
The reference density that is subtracted off when calculating pressure gradient forces [R ~> kg m-3].
rho_ref_bug
If true, recover a bug that mixes GV%Rho0 and CS%rho_ref in Boussinesq mode.
GFS_scale
A scaling of the surface pressure gradients to allow the use of a reduced gravity model [nondim].
Time
A pointer to the ocean model's clock.
diag
A structure that is used to regulate the timing of diagnostic output.
MassWghtInterp
A flag indicating whether and how to use mass weighting in T/S interpolation
correction_intxpa
If true, apply a correction to the value of intxpa at a selected interface under ice, using matching at the end values along with a 5-point quadrature integral of the hydrostatic pressure or height changes along that interface. The selected interface is either at the ocean's surface or in the interior, depending on reset_intxpa_integral.
reset_intxpa_integral
If true and the surface displacement between adjacent cells exceeds the vertical grid spacing, reset intxpa at the interface below a trusted interior cell. (This often applies in ice shelf cavities.)
MassWghtInterpVanOnly
If true, don't do mass weighting of T/S interpolation unless vanished
reset_intxpa_flattest
If true, use flattest interface rather than top for reset integral in cases where no best nonvanished interface
h_nonvanished
A minimal layer thickness that indicates that a layer is thick enough to usefully reestimate the pressure integral across the interface below it [H ~> m or kg m-2]
use_inaccurate_pgf_rho_anom
If true, uses the older and less accurate method to calculate density anomalies, as used prior to March 2018.
boundary_extrap
Indicate whether high-order boundary extrapolation should be used within boundary cells
reconstruct
If true, polynomial profiles of T & S will be reconstructed and used in the integrals for the finite volume pressure gradient calculation. The default depends on whether regridding is being used.
Recon_Scheme
Order of the polynomial of the reconstruction of T & S for the finite volume pressure gradient calculation. By the default (1) is for a piecewise linear method
debug
If true, write verbose checksums for debugging purposes.
use_SSH_in_Z0p
If true, adjust the height at which the pressure used in the equation of state is 0 to account for the displacement of the sea surface including adjustments for atmospheric or sea-ice pressure.
use_stanley_pgf
If true, turn on Stanley parameterization in the PGF
bq_sal_tides
If true, use an alternative method for SAL and tides in Boussinesq mode
tides_answer_date
Recover old answers with tides
id_e_tide
Diagnostic identifier
id_e_tidal_eq
Diagnostic identifier
id_e_tidal_sal
Diagnostic identifier
id_e_sal
Diagnostic identifier
id_rho_pgf
Diagnostic identifier
id_rho_stanley_pgf
Diagnostic identifier
id_p_stanley
Diagnostic identifier
id_MassWt_u
Diagnostic identifier
id_MassWt_v
Diagnostic identifier
id_sal_u
Diagnostic identifier
id_sal_v
Diagnostic identifier
id_tides_u
Diagnostic identifier
id_tides_v
Diagnostic identifier
SAL_CSp
SAL control structure
tides_CSp
Tides control structure
Functions/Subroutine Documentation
- subroutine PressureForce_FV_nonBouss(h, tv, PFu, PFv, G, GV, US, CS, ALE_CSp, ADp, p_atm, pbce, eta)
Non-Boussinesq analytically-integrated finite volume form of pressure gradient
Determines the acceleration due to hydrostatic pressure forces, using the analytic finite volume form of the Pressure gradient, and does not make the Boussinesq approximation.
To work, the following fields must be set outside of the usual (is:ie,js:je) range before this subroutine is called: h(isB:ie+1,jsB:je+1), T(isB:ie+1,jsB:je+1), and S(isB:ie+1,jsB:je+1).
- Parameters
G [in]
Ocean grid structure
GV [in]
Vertical grid structure
US [in]
A dimensional unit scaling type
h [in]
Layer thickness [H ~> kg m-2]
tv [in]
Thermodynamic variables
PFu [out]
Zonal acceleration [L T-2 ~> m s-2]
PFv [out]
Meridional acceleration [L T-2 ~> m s-2]
CS [in]
Finite volume PGF control structure
ALE_CSp
ALE control structure
ADp
Acceleration diagnostic pointers
p_atm
The pressure at the ice-ocean or atmosphere-ocean interface [R L2 T-2 ~> Pa].
pbce [out]
The baroclinic pressure anomaly in each layer due to eta anomalies [L2 T-2 H-1 ~> m4 s-2 kg-1].
eta [out]
The total column mass used to calculate PFu and PFv [H ~> kg m-2].
Callees call graph
Text view
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_ale::ts_plm_edge_values
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_ale::ts_plm_wls_edge_values
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_ale::ts_ppm_edge_values
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_checksums::interface::hchksum
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_checksums::interface::uvchksum
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_density_integrals::diagnose_mass_weight_p
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_density_integrals::int_spec_vol_dp_generic_plm
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_density_integrals::int_specific_vol_dp
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_diag_mediator::interface::post_data
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_eos::interface::calculate_density
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_eos::interface::calculate_spec_vol
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_error_handler::mom_error
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_pressureforce_mont::set_pbce_nonbouss
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_self_attr_load::calc_sal
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_tidal_forcing::calc_tidal_forcing
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_tidal_forcing::calc_tidal_forcing_legacy
Callers call graph
- subroutine PressureForce_FV_Bouss(h, tv, PFu, PFv, G, GV, US, CS, ALE_CSp, ADp, p_atm, pbce, eta)
Boussinesq analytically-integrated finite volume form of pressure gradient
Determines the acceleration due to hydrostatic pressure forces, using the finite volume form of the terms and analytic integrals in depth.
To work, the following fields must be set outside of the usual (is:ie,js:je) range before this subroutine is called: h(isB:ie+1,jsB:je+1), T(isB:ie+1,jsB:je+1), and S(isB:ie+1,jsB:je+1).
- Parameters
G [in]
Ocean grid structure
GV [in]
Vertical grid structure
US [in]
A dimensional unit scaling type
h [in]
Layer thickness [H ~> m]
tv [in]
Thermodynamic variables
PFu [out]
Zonal acceleration [L T-2 ~> m s-2]
PFv [out]
Meridional acceleration [L T-2 ~> m s-2]
CS [in]
Finite volume PGF control structure
ALE_CSp
ALE control structure
ADp
Acceleration diagnostic pointers
p_atm
The pressure at the ice-ocean or atmosphere-ocean interface [R L2 T-2 ~> Pa].
pbce [out]
The baroclinic pressure anomaly in each layer due to eta anomalies [L2 T-2 H-1 ~> m s-2].
eta [out]
The sea-surface height used to calculate PFu and PFv [H ~> m], with any tidal contributions.
Callees call graph
Text view
mom_pressureforce_fv::pressureforce_fv_bouss → mom_ale::ts_plm_edge_values
mom_pressureforce_fv::pressureforce_fv_bouss → mom_ale::ts_plm_wls_edge_values
mom_pressureforce_fv::pressureforce_fv_bouss → mom_ale::ts_ppm_edge_values
mom_pressureforce_fv::pressureforce_fv_bouss → mom_checksums::interface::hchksum
mom_pressureforce_fv::pressureforce_fv_bouss → mom_checksums::interface::uvchksum
mom_pressureforce_fv::pressureforce_fv_bouss → mom_density_integrals::diagnose_mass_weight_z
mom_pressureforce_fv::pressureforce_fv_bouss → mom_density_integrals::int_density_dz
mom_pressureforce_fv::pressureforce_fv_bouss → mom_density_integrals::int_density_dz_generic_plm
mom_pressureforce_fv::pressureforce_fv_bouss → mom_density_integrals::int_density_dz_generic_ppm
mom_pressureforce_fv::pressureforce_fv_bouss → mom_diag_mediator::interface::post_data
mom_pressureforce_fv::pressureforce_fv_bouss → mom_eos::eos_domain
mom_pressureforce_fv::pressureforce_fv_bouss → mom_eos::interface::calculate_density
mom_pressureforce_fv::pressureforce_fv_bouss → mom_error_handler::mom_error
mom_pressureforce_fv::pressureforce_fv_bouss → mom_pressureforce_mont::set_pbce_bouss
mom_pressureforce_fv::pressureforce_fv_bouss → mom_self_attr_load::calc_sal
mom_pressureforce_fv::pressureforce_fv_bouss → mom_tidal_forcing::calc_tidal_forcing
mom_pressureforce_fv::pressureforce_fv_bouss → mom_tidal_forcing::calc_tidal_forcing_legacy
Callers call graph
- subroutine PressureForce_FV_init(Time, G, GV, US, param_file, diag, CS, ADp, SAL_CSp, tides_CSp)
Initializes the finite volume pressure gradient control structure
- Parameters
Time [in]
Current model time
G [in]
Ocean grid structure
GV [in]
Vertical grid structure
US [in]
A dimensional unit scaling type
param_file [in]
Parameter file handles
diag [inout]
Diagnostics control structure
CS [inout]
Finite volume PGF control structure
ADp
Acceleration diagnostic pointers
SAL_CSp [in]
SAL control structure
tides_CSp [in]
Tides control structure
Callees call graph
Text view
mom_pressureforce_fv::pressureforce_fv_init → mom_diag_mediator::register_diag_field
mom_pressureforce_fv::pressureforce_fv_init → mom_error_handler::mom_error
mom_pressureforce_fv::pressureforce_fv_init → mom_file_parser::interface::get_param
mom_pressureforce_fv::pressureforce_fv_init → mom_file_parser::interface::log_param
mom_pressureforce_fv::pressureforce_fv_init → mom_file_parser::interface::log_version
mom_pressureforce_fv::pressureforce_fv_init → mom_safe_alloc::interface::safe_alloc_ptr