MOM_EOS_TEOS10 module reference

The equation of state using the TEOS10 expressions

Data Types

TEOS10_EOS

The conversion factor from Pa to dbar [dbar Pa-1]

Functions/Subroutines

density_elem_TEOS10

GSW in situ density [kg m-3]

density_anomaly_elem_TEOS10

GSW in situ density anomaly [kg m-3]

spec_vol_elem_TEOS10

GSW in situ specific volume [m3 kg-1]

spec_vol_anomaly_elem_TEOS10

GSW in situ specific volume anomaly [m3 kg-1]

calculate_density_derivs_elem_TEOS10

For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the TEOS10 expressions.

calculate_density_second_derivs_elem_TEOS10

Calculate the 5 second derivatives of the equation of state for scalar inputs

calculate_specvol_derivs_elem_TEOS10

For a given thermodynamic state, calculate the derivatives of specific volume with conservative temperature and absolute salinity, using the TEOS10 expressions.

calculate_compress_elem_TEOS10

This subroutine computes the in situ density of sea water (rho in [kg m-3]) and the compressibility (drho/dp = C_sound^-2) (drho_dp [s2 m-2]) from absolute salinity (sal [g kg-1]), conservative temperature (T [degC]), and pressure [Pa]. It uses the subroutines from TEOS10 website

EoS_fit_range_teos10

Return the range of temperatures, salinities and pressures for which the TEOS-10 equation of state has been fitted to observations. Care should be taken when applying this equation of state outside of its fit range.

Detailed Description

TEOS10 equation of state

The TEOS10 equation of state is implemented via the GSW toolbox. We recommend using the Roquet et al. forms of this equation of state.

Type Documentation

type, extends(EOS_base) :: TEOS10_EOS

The conversion factor from Pa to dbar [dbar Pa-1]

The EOS_base implementation of the TEOS10 equation of state

Functions/Subroutine Documentation

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

GSW in situ density [kg m-3]

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC].

  • S [in]

    Absolute salinity [g kg-1].

  • pressure [in]

    pressure [Pa].

External calls

gsw_mod_toolbox
  • gsw_rho (gsw_mod_toolbox::gsw_rho)

real elemental function density_anomaly_elem_TEOS10(this, T, S, pressure, rho_ref)

GSW in situ density anomaly [kg m-3]

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].

External calls

gsw_mod_toolbox
  • gsw_rho (gsw_mod_toolbox::gsw_rho)

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

GSW in situ specific volume [m3 kg-1]

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC].

  • S [in]

    Absolute salinity [g kg-1].

  • pressure [in]

    pressure [Pa].

External calls

gsw_mod_toolbox
  • gsw_specvol (gsw_mod_toolbox::gsw_specvol)

real elemental function spec_vol_anomaly_elem_TEOS10(this, T, S, pressure, spv_ref)

GSW in situ specific volume anomaly [m3 kg-1]

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].

External calls

gsw_mod_toolbox
  • gsw_specvol (gsw_mod_toolbox::gsw_specvol)

elemental subroutine calculate_density_derivs_elem_TEOS10(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 TEOS10 expressions.

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1] = [ppt]

  • 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 salinity, in [kg m-3 ppt-1]

External calls

gsw_mod_toolbox
  • gsw_rho_first_derivatives (gsw_mod_toolbox::gsw_rho_first_derivatives)

elemental subroutine calculate_density_second_derivs_elem_TEOS10(this, T, S, pressure, drho_dS_dS, drho_dS_dT, drho_dT_dT, drho_dS_dP, drho_dT_dP)

Calculate the 5 second derivatives of the equation of state for scalar inputs

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1] = [ppt]

  • 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]

External calls

gsw_mod_toolbox
  • gsw_rho_second_derivatives (gsw_mod_toolbox::gsw_rho_second_derivatives)

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

For a given thermodynamic state, calculate the derivatives of specific volume with conservative temperature and absolute salinity, using the TEOS10 expressions.

Parameters
  • this [in]

    This EOS

  • T [in]

    Conservative temperature [degC]

  • S [in]

    Absolute salinity [g kg-1] = [ppt]

  • 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]

External calls

gsw_mod_toolbox
  • gsw_specvol_first_derivatives (gsw_mod_toolbox::gsw_specvol_first_derivatives)

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

This subroutine computes the in situ density of sea water (rho in [kg m-3]) and the compressibility (drho/dp = C_sound^-2) (drho_dp [s2 m-2]) from absolute salinity (sal [g kg-1]), conservative temperature (T [degC]), and pressure [Pa]. It uses the subroutines from TEOS10 website

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]

External calls

gsw_mod_toolbox
  • gsw_rho (gsw_mod_toolbox::gsw_rho)

  • gsw_rho_first_derivatives (gsw_mod_toolbox::gsw_rho_first_derivatives)

subroutine EoS_fit_range_teos10(this, T_min, T_max, S_min, S_max, p_min, p_max)

Return the range of temperatures, salinities and pressures for which the TEOS-10 equation of state 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]

API generated with Flint · Rendered from reStructuredText