MOM_EOS_Roquet_rho module reference

The equation of state using the expressions of Roquet et al. (2015) that are used in NEMO

Data Types

Roquet_rho_EOS

@}

Functions/Subroutines

density_elem_Roquet_rho

In situ density of sea water from Roquet et al., 2015 [kg m-3]

density_anomaly_elem_Roquet_rho

In situ density anomaly of sea water from Roquet et al., 2015 [kg m-3]

spec_vol_elem_Roquet_rho

In situ specific volume of sea water from Roquet et al., 2015 [kg m-3]

spec_vol_anomaly_elem_Roquet_rho

In situ specific volume anomaly of sea water from Roquet et al., 2015 [kg m-3]

calculate_density_derivs_elem_Roquet_rho

For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the density polynomial fit EOS from Roquet et al. (2015).

calculate_density_second_derivs_elem_Roquet_rho

Second derivatives of density with respect to temperature, salinity, and pressure

calculate_specvol_derivs_elem_Roquet_rho

Calculate the partial derivatives of specific volume with temperature and salinity using the density polynomial fit EOS from Roquet et al. (2015).

calculate_compress_elem_Roquet_rho

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 density polynomial fit EOS from Roquet et al. (2015).

EoS_fit_range_Roquet_rho

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

calculate_density_array_Roquet_rho

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

calculate_spec_vol_array_Roquet_rho

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

Detailed Description

Roquet_rho equation of state

Fabien Roquet and colleagues developed this equation of state using a simple polynomial fit to the TEOS-10 equation of state, for efficiency when used in the NEMO ocean model. Fabien Roquet also graciously provided the MOM6 team with the original code implementing this equation of state, although it has since been modified and extended to have capabilities mirroring those available with other equations of state in MOM6. 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 52 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_rho_EOS

@}

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

Functions/Subroutine Documentation

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

In situ density of sea water from Roquet et al., 2015 [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]

Callers call graph
Callers of mom_eos_roquet_rho::density_elem_roquet_rho calls cluster_mom_eos_roquet_rho MOM_EOS_Roquet_rho mom_eos_roquet_rho::calculate_density_array_roquet_rho calculate_density_array_Roquet_rho [private/internal] mom_eos_roquet_rho::density_elem_roquet_rho density_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::calculate_density_array_roquet_rho->mom_eos_roquet_rho::density_elem_roquet_rho mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho spec_vol_anomaly_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho->mom_eos_roquet_rho::density_elem_roquet_rho mom_eos_roquet_rho::spec_vol_elem_roquet_rho spec_vol_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_elem_roquet_rho->mom_eos_roquet_rho::density_elem_roquet_rho
Text view
real elemental function density_anomaly_elem_Roquet_rho(this, T, S, pressure, rho_ref)

In situ density anomaly of sea water from Roquet et al., 2015 [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]

Callers call graph
Callers of mom_eos_roquet_rho::density_anomaly_elem_roquet_rho calls cluster_mom_eos_roquet_rho MOM_EOS_Roquet_rho mom_eos_roquet_rho::calculate_density_array_roquet_rho calculate_density_array_Roquet_rho [private/internal] mom_eos_roquet_rho::density_anomaly_elem_roquet_rho density_anomaly_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::calculate_density_array_roquet_rho->mom_eos_roquet_rho::density_anomaly_elem_roquet_rho
Text view
real elemental function spec_vol_elem_Roquet_rho(this, T, S, pressure)

In situ specific volume of sea water from Roquet et al., 2015 [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_rho::spec_vol_elem_roquet_rho calls cluster_mom_eos_roquet_rho MOM_EOS_Roquet_rho mom_eos_roquet_rho::density_elem_roquet_rho density_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_elem_roquet_rho spec_vol_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_elem_roquet_rho->mom_eos_roquet_rho::density_elem_roquet_rho
Text view
Callers call graph
Callers of mom_eos_roquet_rho::spec_vol_elem_roquet_rho calls cluster_mom_eos_roquet_rho MOM_EOS_Roquet_rho mom_eos_roquet_rho::calculate_spec_vol_array_roquet_rho calculate_spec_vol_array_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_elem_roquet_rho spec_vol_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::calculate_spec_vol_array_roquet_rho->mom_eos_roquet_rho::spec_vol_elem_roquet_rho
Text view
real elemental function spec_vol_anomaly_elem_Roquet_rho(this, T, S, pressure, spv_ref)

In situ specific volume anomaly of sea water from Roquet et al., 2015 [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]

  • spv_ref [in]

    A reference specific volume [m3 kg-1]

Callees call graph
Callees of mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho calls cluster_mom_eos_roquet_rho MOM_EOS_Roquet_rho mom_eos_roquet_rho::density_elem_roquet_rho density_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho spec_vol_anomaly_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho->mom_eos_roquet_rho::density_elem_roquet_rho
Text view
Callers call graph
Callers of mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho calls cluster_mom_eos_roquet_rho MOM_EOS_Roquet_rho mom_eos_roquet_rho::calculate_spec_vol_array_roquet_rho calculate_spec_vol_array_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho spec_vol_anomaly_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::calculate_spec_vol_array_roquet_rho->mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho
Text view
elemental subroutine calculate_density_derivs_elem_Roquet_rho(this, T, S, pressure, drho_dT, drho_dS)

For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the density polynomial fit EOS 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 potential temperature [kg m-3 degC-1]

  • drho_dS [out]

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

elemental subroutine calculate_density_second_derivs_elem_Roquet_rho(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

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]

    Partial derivative of beta with respect to S [kg m-3 ppt-2]

  • drho_ds_dt [inout]

    Partial derivative of beta with respect to T [kg m-3 ppt-1 degC-1]

  • drho_dt_dt [inout]

    Partial derivative of alpha with respect to T [kg m-3 degC-2]

  • drho_ds_dp [inout]

    Partial derivative of beta with respect to pressure [kg m-3 ppt-1 Pa-1] = [s2 m-2 ppt-1]

  • drho_dt_dp [inout]

    Partial derivative of alpha with respect to pressure [kg m-3 degC-1 Pa-1] = [s2 m-2 degC-1]

elemental subroutine calculate_specvol_derivs_elem_Roquet_rho(this, T, S, pressure, dSV_dT, dSV_dS)

Calculate the partial derivatives of specific volume with temperature and salinity using the density polynomial fit EOS 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 potential temperature [m3 kg-1 degC-1]

  • dSV_dS [inout]

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

elemental subroutine calculate_compress_elem_Roquet_rho(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 density polynomial fit EOS 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]

subroutine EoS_fit_range_Roquet_rho(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 in situ density 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_rho(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_rho::calculate_density_array_roquet_rho calls cluster_mom_eos_roquet_rho MOM_EOS_Roquet_rho mom_eos_roquet_rho::calculate_density_array_roquet_rho calculate_density_array_Roquet_rho [private/internal] mom_eos_roquet_rho::density_anomaly_elem_roquet_rho density_anomaly_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::calculate_density_array_roquet_rho->mom_eos_roquet_rho::density_anomaly_elem_roquet_rho mom_eos_roquet_rho::density_elem_roquet_rho density_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::calculate_density_array_roquet_rho->mom_eos_roquet_rho::density_elem_roquet_rho
Text view
subroutine calculate_spec_vol_array_Roquet_rho(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_rho::calculate_spec_vol_array_roquet_rho calls cluster_mom_eos_roquet_rho MOM_EOS_Roquet_rho mom_eos_roquet_rho::calculate_spec_vol_array_roquet_rho calculate_spec_vol_array_Roquet_rho [private/internal] mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho spec_vol_anomaly_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::calculate_spec_vol_array_roquet_rho->mom_eos_roquet_rho::spec_vol_anomaly_elem_roquet_rho mom_eos_roquet_rho::spec_vol_elem_roquet_rho spec_vol_elem_Roquet_rho [private/internal] mom_eos_roquet_rho::calculate_spec_vol_array_roquet_rho->mom_eos_roquet_rho::spec_vol_elem_roquet_rho
Text view
API generated with Flint · Rendered from reStructuredText