MOM_PressureForce_FV module reference

Finite volume pressure gradient (integrated by quadrature or analytically)

Data Types

PressureForce_FV_CS

Finite volume pressure gradient control structure

Functions/Subroutines

PressureForce_FV_nonBouss

Non-Boussinesq analytically-integrated finite volume form of pressure gradient

PressureForce_FV_Bouss

Boussinesq analytically-integrated finite volume form of pressure gradient

PressureForce_FV_init

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
Callees of mom_pressureforce_fv::pressureforce_fv_nonbouss calls cluster_mom_ale MOM_ALE cluster_mom_checksums MOM_checksums cluster_mom_density_integrals MOM_density_integrals cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_eos MOM_EOS cluster_mom_error_handler MOM_error_handler cluster_mom_pressureforce_fv MOM_PressureForce_FV cluster_mom_pressureforce_mont MOM_PressureForce_Mont cluster_mom_self_attr_load MOM_self_attr_load cluster_mom_tidal_forcing MOM_tidal_forcing mom_ale::ts_plm_edge_values TS_PLM_edge_values mom_ale::ts_plm_wls_edge_values TS_PLM_WLS_edge_values mom_ale::ts_ppm_edge_values TS_PPM_edge_values mom_checksums::interface::hchksum hchksum (interface) mom_checksums::interface::uvchksum uvchksum (interface) mom_density_integrals::diagnose_mass_weight_p diagnose_mass_weight_p mom_density_integrals::int_spec_vol_dp_generic_plm int_spec_vol_dp_generic_plm mom_density_integrals::int_specific_vol_dp int_specific_vol_dp mom_diag_mediator::interface::post_data post_data (interface) mom_eos::interface::calculate_density calculate_density (interface) mom_eos::interface::calculate_spec_vol calculate_spec_vol (interface) mom_error_handler::mom_error MOM_error mom_pressureforce_fv::pressureforce_fv_nonbouss PressureForce_FV_nonBouss 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_mont::set_pbce_nonbouss Set_pbce_nonBouss mom_pressureforce_fv::pressureforce_fv_nonbouss->mom_pressureforce_mont::set_pbce_nonbouss mom_self_attr_load::calc_sal calc_SAL mom_pressureforce_fv::pressureforce_fv_nonbouss->mom_self_attr_load::calc_sal mom_tidal_forcing::calc_tidal_forcing calc_tidal_forcing mom_pressureforce_fv::pressureforce_fv_nonbouss->mom_tidal_forcing::calc_tidal_forcing mom_tidal_forcing::calc_tidal_forcing_legacy calc_tidal_forcing_legacy mom_pressureforce_fv::pressureforce_fv_nonbouss->mom_tidal_forcing::calc_tidal_forcing_legacy
Text view
Callers call graph
Callers of mom_pressureforce_fv::pressureforce_fv_nonbouss calls cluster_mom_pressureforce MOM_PressureForce cluster_mom_pressureforce_fv MOM_PressureForce_FV mom_pressureforce::pressureforce PressureForce mom_pressureforce_fv::pressureforce_fv_nonbouss PressureForce_FV_nonBouss mom_pressureforce::pressureforce->mom_pressureforce_fv::pressureforce_fv_nonbouss
Text view
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
Callees of mom_pressureforce_fv::pressureforce_fv_bouss calls cluster_mom_ale MOM_ALE cluster_mom_checksums MOM_checksums cluster_mom_density_integrals MOM_density_integrals cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_eos MOM_EOS cluster_mom_error_handler MOM_error_handler cluster_mom_pressureforce_fv MOM_PressureForce_FV cluster_mom_pressureforce_mont MOM_PressureForce_Mont cluster_mom_self_attr_load MOM_self_attr_load cluster_mom_tidal_forcing MOM_tidal_forcing mom_ale::ts_plm_edge_values TS_PLM_edge_values mom_ale::ts_plm_wls_edge_values TS_PLM_WLS_edge_values mom_ale::ts_ppm_edge_values TS_PPM_edge_values mom_checksums::interface::hchksum hchksum (interface) mom_checksums::interface::uvchksum uvchksum (interface) mom_density_integrals::diagnose_mass_weight_z diagnose_mass_weight_Z mom_density_integrals::int_density_dz int_density_dz mom_density_integrals::int_density_dz_generic_plm int_density_dz_generic_plm mom_density_integrals::int_density_dz_generic_ppm int_density_dz_generic_ppm mom_diag_mediator::interface::post_data post_data (interface) mom_eos::eos_domain EOS_domain mom_eos::interface::calculate_density calculate_density (interface) mom_error_handler::mom_error MOM_error mom_pressureforce_fv::pressureforce_fv_bouss PressureForce_FV_Bouss 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_mont::set_pbce_bouss Set_pbce_Bouss mom_pressureforce_fv::pressureforce_fv_bouss->mom_pressureforce_mont::set_pbce_bouss mom_self_attr_load::calc_sal calc_SAL mom_pressureforce_fv::pressureforce_fv_bouss->mom_self_attr_load::calc_sal mom_tidal_forcing::calc_tidal_forcing calc_tidal_forcing mom_pressureforce_fv::pressureforce_fv_bouss->mom_tidal_forcing::calc_tidal_forcing mom_tidal_forcing::calc_tidal_forcing_legacy calc_tidal_forcing_legacy mom_pressureforce_fv::pressureforce_fv_bouss->mom_tidal_forcing::calc_tidal_forcing_legacy
Text view
Callers call graph
Callers of mom_pressureforce_fv::pressureforce_fv_bouss calls cluster_mom_pressureforce MOM_PressureForce cluster_mom_pressureforce_fv MOM_PressureForce_FV mom_pressureforce::pressureforce PressureForce mom_pressureforce_fv::pressureforce_fv_bouss PressureForce_FV_Bouss mom_pressureforce::pressureforce->mom_pressureforce_fv::pressureforce_fv_bouss
Text view
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
Callees of mom_pressureforce_fv::pressureforce_fv_init calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_pressureforce_fv MOM_PressureForce_FV cluster_mom_safe_alloc MOM_safe_alloc mom_diag_mediator::register_diag_field register_diag_field 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_pressureforce_fv::pressureforce_fv_init PressureForce_FV_init 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_safe_alloc::interface::safe_alloc_ptr safe_alloc_ptr (interface) mom_pressureforce_fv::pressureforce_fv_init->mom_safe_alloc::interface::safe_alloc_ptr
Text view
Callers call graph
Callers of mom_pressureforce_fv::pressureforce_fv_init calls cluster_mom_pressureforce MOM_PressureForce cluster_mom_pressureforce_fv MOM_PressureForce_FV mom_pressureforce::pressureforce_init PressureForce_init mom_pressureforce_fv::pressureforce_fv_init PressureForce_FV_init mom_pressureforce::pressureforce_init->mom_pressureforce_fv::pressureforce_fv_init
Text view
API generated with Flint · Rendered from reStructuredText