MOM_EOS_Roquet_Spv module reference

The equation of state for specific volume (SpV) using the expressions of Roquet et al. 2015

Data Types

Roquet_SpV_EOS

@}

Functions/Subroutines

spec_vol_elem_Roquet_SpV

Roquet et al. in situ specific volume of sea water [m3 kg-1]

spec_vol_anomaly_elem_Roquet_SpV

Roquet et al. in situ specific volume anomaly of sea water [m3 kg-1]

density_elem_Roquet_SpV

Roquet in situ density [kg m-3]

density_anomaly_elem_Roquet_SpV

Roquet in situ density anomaly [kg m-3]

calculate_specvol_derivs_elem_Roquet_SpV

Return the partial derivatives of specific volume with temperature and salinity for 1-d array inputs and outputs, using the specific volume polynomial fit from Roquet et al. (2015).

calculate_density_derivs_elem_Roquet_SpV

Compute an array of derivatives of densities of sea water with temperature (drho_dT in [kg m-3 degC-1]) and salinity (drho_dS in [kg m-3 ppt-1]) from absolute salinity (S [g kg-1]), conservative temperature (T [degC]) and pressure [Pa], using the specific volume polynomial fit from Roquet et al. (2015).

calculate_compress_elem_Roquet_SpV

Compute the in situ density of sea water (rho in [kg m-3]) and the compressibility (drho/dp = C_sound^-2, stored as drho_dp [s2 m-2]) from absolute salinity (sal [g kg-1]), conservative temperature (T [degC]), and pressure [Pa], using the specific volume polynomial fit from Roquet et al. (2015).

calc_spec_vol_second_derivs_elem_Roquet_SpV

Second derivatives of specific volume with respect to temperature, salinity, and pressure for a 1-d array inputs and outputs using the specific volume polynomial fit from Roquet et al. (2015).

calculate_density_second_derivs_elem_Roquet_SpV

Second derivatives of density with respect to temperature, salinity, and pressure for a 1-d array inputs and outputs using the specific volume polynomial fit from Roquet et al. (2015).

EoS_fit_range_Roquet_SpV

Return the range of temperatures, salinities and pressures for which the Roquet et al. (2015) expression for specific volume has been fitted to observations. Care should be taken when applying this equation of state outside of its fit range.

calculate_density_array_Roquet_SpV

Calculate the in-situ density for 1D arraya inputs and outputs.

calculate_spec_vol_array_Roquet_SpV

Calculate the in-situ specific volume for 1D array inputs and outputs.

Detailed Description

NEMO equation of state

Fabien Roquet and colleagues developed this equation of state using a simple polynomial fit to the TEOS-10 equation of state expressions for specific, for efficiency when used with a non-Boussinesq ocean model. This particular equation of state is a balance between an accuracy that matches the TEOS-10 density to better than observational uncertainty with a polynomial form that can be evaluated quickly despite having 55 terms.

References

Roquet, F., Madec, G., McDougall, T. J., and Barker, P. M., 2015: Accurate polynomial expressions for the density and specific volume of seawater using the TEOS-10 standard. Ocean Modelling, 90:29-43.

Type Documentation

type, extends(EOS_base) :: Roquet_SpV_EOS

@}

The EOS_base implementation of the Roquet et al., 2015, equation of state

Functions/Subroutine Documentation

real elemental function spec_vol_elem_Roquet_SpV(this, T, S, pressure)

Roquet et al. in situ specific volume of sea water [m3 kg-1]

This is an elemental function that can be applied to any combination of scalar and array inputs.

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • pressure [in]

    pressure [Pa]

Callers call graph
Callers of mom_eos_roquet_spv::spec_vol_elem_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::calculate_spec_vol_array_roquet_spv calculate_spec_vol_array_Roquet_SpV [private/internal] mom_eos_roquet_spv::spec_vol_elem_roquet_spv spec_vol_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_spec_vol_array_roquet_spv->mom_eos_roquet_spv::spec_vol_elem_roquet_spv mom_eos_roquet_spv::density_elem_roquet_spv density_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::density_elem_roquet_spv->mom_eos_roquet_spv::spec_vol_elem_roquet_spv
Text view
real elemental function spec_vol_anomaly_elem_Roquet_SpV(this, T, S, pressure, spv_ref)

Roquet et al. in situ specific volume anomaly of sea water [m3 kg-1]

This is an elemental function that can be applied to any combination of scalar and array inputs.

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • pressure [in]

    pressure [Pa]

  • spv_ref [in]

    A reference specific volume [m3 kg-1]

Callers call graph
Callers of mom_eos_roquet_spv::spec_vol_anomaly_elem_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::calculate_spec_vol_array_roquet_spv calculate_spec_vol_array_Roquet_SpV [private/internal] mom_eos_roquet_spv::spec_vol_anomaly_elem_roquet_spv spec_vol_anomaly_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_spec_vol_array_roquet_spv->mom_eos_roquet_spv::spec_vol_anomaly_elem_roquet_spv mom_eos_roquet_spv::density_anomaly_elem_roquet_spv density_anomaly_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::density_anomaly_elem_roquet_spv->mom_eos_roquet_spv::spec_vol_anomaly_elem_roquet_spv
Text view
real elemental function density_elem_Roquet_SpV(this, T, S, pressure)

Roquet in situ density [kg m-3]

This is an elemental function that can be applied to any combination of scalar and array inputs.

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • pressure [in]

    Pressure [Pa]

Callees call graph
Callees of mom_eos_roquet_spv::density_elem_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::density_elem_roquet_spv density_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::spec_vol_elem_roquet_spv spec_vol_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::density_elem_roquet_spv->mom_eos_roquet_spv::spec_vol_elem_roquet_spv
Text view
Callers call graph
Callers of mom_eos_roquet_spv::density_elem_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::calculate_density_array_roquet_spv calculate_density_array_Roquet_SpV [private/internal] mom_eos_roquet_spv::density_elem_roquet_spv density_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_density_array_roquet_spv->mom_eos_roquet_spv::density_elem_roquet_spv
Text view
real elemental function density_anomaly_elem_Roquet_SpV(this, T, S, pressure, rho_ref)

Roquet in situ density anomaly [kg m-3]

This is an elemental function that can be applied to any combination of scalar and array inputs.

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • pressure [in]

    Pressure [Pa]

  • rho_ref [in]

    A reference density [kg m-3]

Callees call graph
Callees of mom_eos_roquet_spv::density_anomaly_elem_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::density_anomaly_elem_roquet_spv density_anomaly_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::spec_vol_anomaly_elem_roquet_spv spec_vol_anomaly_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::density_anomaly_elem_roquet_spv->mom_eos_roquet_spv::spec_vol_anomaly_elem_roquet_spv
Text view
Callers call graph
Callers of mom_eos_roquet_spv::density_anomaly_elem_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::calculate_density_array_roquet_spv calculate_density_array_Roquet_SpV [private/internal] mom_eos_roquet_spv::density_anomaly_elem_roquet_spv density_anomaly_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_density_array_roquet_spv->mom_eos_roquet_spv::density_anomaly_elem_roquet_spv
Text view
elemental subroutine calculate_specvol_derivs_elem_Roquet_SpV(this, T, S, pressure, dSV_dT, dSV_dS)

Return the partial derivatives of specific volume with temperature and salinity for 1-d array inputs and outputs, using the specific volume polynomial fit from Roquet et al. (2015).

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • pressure [in]

    Pressure [Pa]

  • dSV_dT [inout]

    The partial derivative of specific volume with conservative temperature [m3 kg-1 degC-1]

  • dSV_dS [inout]

    The partial derivative of specific volume with absolute salinity [m3 kg-1 ppt-1]

elemental subroutine calculate_density_derivs_elem_Roquet_SpV(this, T, S, pressure, drho_dT, drho_dS)

Compute an array of derivatives of densities of sea water with temperature (drho_dT in [kg m-3 degC-1]) and salinity (drho_dS in [kg m-3 ppt-1]) from absolute salinity (S [g kg-1]), conservative temperature (T [degC]) and pressure [Pa], using the specific volume polynomial fit from Roquet et al. (2015).

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • pressure [in]

    pressure [Pa]

  • drho_dT [out]

    The partial derivative of density with conservative temperature [kg m-3 degC-1]

  • drho_dS [out]

    The partial derivative of density with absolute salinity [kg m-3 ppt-1]

elemental subroutine calculate_compress_elem_Roquet_SpV(this, T, S, pressure, rho, drho_dp)

Compute the in situ density of sea water (rho in [kg m-3]) and the compressibility (drho/dp = C_sound^-2, stored as drho_dp [s2 m-2]) from absolute salinity (sal [g kg-1]), conservative temperature (T [degC]), and pressure [Pa], using the specific volume polynomial fit from Roquet et al. (2015).

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • pressure [in]

    pressure [Pa]

  • rho [out]

    In situ density [kg m-3]

  • drho_dp [out]

    The partial derivative of density with pressure (also the inverse of the square of sound speed) [s2 m-2]

elemental subroutine calc_spec_vol_second_derivs_elem_Roquet_SpV(T, S, P, dSV_ds_ds, dSV_ds_dt, dSV_dt_dt, dSV_ds_dp, dSV_dt_dp)

Second derivatives of specific volume with respect to temperature, salinity, and pressure for a 1-d array inputs and outputs using the specific volume polynomial fit from Roquet et al. (2015).

Parameters
  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • P [in]

    Pressure [Pa]

  • dSV_ds_ds [inout]

    Second derivative of specific volume with respect to salinity [m3 kg-1 ppt-2]

  • dSV_ds_dt [inout]

    Second derivative of specific volume with respect to salinity and temperature [m3 kg-1 ppt-1 degC-1]

  • dSV_dt_dt [inout]

    Second derivative of specific volume with respect to temperature [m3 kg-1 degC-2]

  • dSV_ds_dp [inout]

    Second derivative of specific volume with respect to pressure and salinity [m3 kg-1 ppt-1 Pa-1]

  • dSV_dt_dp [inout]

    Second derivative of specific volume with respect to pressure and temperature [m3 kg-1 degC-1 Pa-1]

Callers call graph
Callers of mom_eos_roquet_spv::calc_spec_vol_second_derivs_elem_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::calc_spec_vol_second_derivs_elem_roquet_spv calc_spec_vol_second_derivs_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_density_second_derivs_elem_roquet_spv calculate_density_second_derivs_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_density_second_derivs_elem_roquet_spv->mom_eos_roquet_spv::calc_spec_vol_second_derivs_elem_roquet_spv
Text view
elemental subroutine calculate_density_second_derivs_elem_Roquet_SpV(this, T, S, pressure, drho_ds_ds, drho_ds_dt, drho_dt_dt, drho_ds_dp, drho_dt_dp)

Second derivatives of density with respect to temperature, salinity, and pressure for a 1-d array inputs and outputs using the specific volume polynomial fit from Roquet et al. (2015).

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1]

  • pressure [in]

    Pressure [Pa]

  • drho_ds_ds [inout]

    Second derivative of density with respect to salinity [kg m-3 ppt-2]

  • drho_ds_dt [inout]

    Second derivative of density with respect to salinity and temperature [kg m-3 ppt-1 degC-1]

  • drho_dt_dt [inout]

    Second derivative of density with respect to temperature [kg m-3 degC-2]

  • drho_ds_dp [inout]

    Second derivative of density with respect to pressure and salinity [kg m-3 ppt-1 Pa-1] = [s2 m-2 ppt-1]

  • drho_dt_dp [inout]

    Second derivative of density with respect to pressure and temperature [kg m-3 degC-1 Pa-1] = [s2 m-2 degC-1]

Callees call graph
Callees of mom_eos_roquet_spv::calculate_density_second_derivs_elem_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::calc_spec_vol_second_derivs_elem_roquet_spv calc_spec_vol_second_derivs_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_density_second_derivs_elem_roquet_spv calculate_density_second_derivs_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_density_second_derivs_elem_roquet_spv->mom_eos_roquet_spv::calc_spec_vol_second_derivs_elem_roquet_spv
Text view
subroutine EoS_fit_range_Roquet_SpV(this, T_min, T_max, S_min, S_max, p_min, p_max)

Return the range of temperatures, salinities and pressures for which the Roquet et al. (2015) expression for specific volume has been fitted to observations. Care should be taken when applying this equation of state outside of its fit range.

Parameters
  • this [in]

    This EOS

  • T_min [out]

    The minimum conservative temperature over which this EoS is fitted [degC]

  • T_max [out]

    The maximum conservative temperature over which this EoS is fitted [degC]

  • S_min [out]

    The minimum absolute salinity over which this EoS is fitted [g kg-1]

  • S_max [out]

    The maximum absolute salinity over which this EoS is fitted [g kg-1]

  • p_min [out]

    The minimum pressure over which this EoS is fitted [Pa]

  • p_max [out]

    The maximum pressure over which this EoS is fitted [Pa]

subroutine calculate_density_array_Roquet_SpV(this, T, S, pressure, rho, start, npts, rho_ref)

Calculate the in-situ density for 1D arraya inputs and outputs.

Parameters
  • this [in]

    This EOS

  • T [in]

    Potential temperature relative to the surface [degC]

  • S [in]

    Salinity [PSU]

  • pressure [in]

    Pressure [Pa]

  • rho [out]

    In situ density [kg m-3]

  • start [in]

    The starting index for calculations

  • npts [in]

    The number of values to calculate

  • rho_ref [in]

    A reference density [kg m-3]

Callees call graph
Callees of mom_eos_roquet_spv::calculate_density_array_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::calculate_density_array_roquet_spv calculate_density_array_Roquet_SpV [private/internal] mom_eos_roquet_spv::density_anomaly_elem_roquet_spv density_anomaly_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_density_array_roquet_spv->mom_eos_roquet_spv::density_anomaly_elem_roquet_spv mom_eos_roquet_spv::density_elem_roquet_spv density_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_density_array_roquet_spv->mom_eos_roquet_spv::density_elem_roquet_spv
Text view
subroutine calculate_spec_vol_array_Roquet_SpV(this, T, S, pressure, specvol, start, npts, spv_ref)

Calculate the in-situ specific volume for 1D array inputs and outputs.

Parameters
  • this [in]

    This EOS

  • T [in]

    Potential temperature relative to the surface [degC]

  • S [in]

    Salinity [PSU]

  • pressure [in]

    Pressure [Pa]

  • specvol [out]

    In situ specific volume [m3 kg-1]

  • start [in]

    The starting index for calculations

  • npts [in]

    The number of values to calculate

  • spv_ref [in]

    A reference specific volume [m3 kg-1]

Callees call graph
Callees of mom_eos_roquet_spv::calculate_spec_vol_array_roquet_spv calls cluster_mom_eos_roquet_spv MOM_EOS_Roquet_Spv mom_eos_roquet_spv::calculate_spec_vol_array_roquet_spv calculate_spec_vol_array_Roquet_SpV [private/internal] mom_eos_roquet_spv::spec_vol_anomaly_elem_roquet_spv spec_vol_anomaly_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_spec_vol_array_roquet_spv->mom_eos_roquet_spv::spec_vol_anomaly_elem_roquet_spv mom_eos_roquet_spv::spec_vol_elem_roquet_spv spec_vol_elem_Roquet_SpV [private/internal] mom_eos_roquet_spv::calculate_spec_vol_array_roquet_spv->mom_eos_roquet_spv::spec_vol_elem_roquet_spv
Text view
API generated with Flint · Rendered from reStructuredText