MOM_EOS_UNESCO module reference
The equation of state using the Jackett and McDougall fits to the UNESCO EOS
Data Types
@} |
Functions/Subroutines
In situ density as fit by Jackett and McDougall, 1995 [kg m-3] |
|
In situ density anomaly as fit by Jackett and McDougall, 1995 [kg m-3] |
|
In situ specific volume as fit by Jackett and McDougall, 1995 [m3 kg-1] |
|
In situ specific volume anomaly as fit by Jackett and McDougall, 1995 [m3 kg-1] |
|
Calculate the partial derivatives of density with potential temperature and salinity using the UNESCO (1981) equation of state, as refit by Jackett and McDougall (1995). |
|
Calculate second derivatives of density with respect to temperature, salinity, and pressure, using the UNESCO (1981) equation of state, as refit by Jackett and McDougall (1995) |
|
Calculate the partial derivatives of specific volume with temperature and salinity using the UNESCO (1981) equation of state, as refit by Jackett and McDougall (1995). |
|
Compute the in situ density of sea water (rho) and the compressibility (drho/dp == C_sound^-2) at the given salinity, potential temperature and pressure using the UNESCO (1981) equation of state, as refit by Jackett and McDougall (1995). |
|
Return the range of temperatures, salinities and pressures for which Jackett and McDougall (1995) refit the UNESCO 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
UNESCO (Jackett & McDougall) equation of state
The UNESCO (1981) equation of state is an internationally defined standard fit valid over the range of pressures up to 10000 dbar, temperatures between the freezing point and 40 degC, and salinities between 0 and 42 PSU. Unfortunately, these expressions used in situ temperatures, whereas ocean models (including MOM6) effectively use potential temperatures as their state variables. To avoid needing multiple conversions, Jackett and McDougall (1995) refit the UNESCO equation of state to take potential temperature as a state variable, over the same valid range and functional form as the original UNESCO expressions. It is this refit from Jackett and McDougall (1995) that is coded up in this module.
The functional form of the equation of state includes terms proportional to salinity to the 3/2 power. This introduces a singularity in the second derivative of density with salinity at a salinity of 0, but this has been addressed here by setting a floor of 1e-8 PSU on the salinity that is used in the denominator of these second derivative expressions. This value was chosen to imply a contribution that is smaller than numerical roundoff in the expression for density, which is the field for which the UNESCO equation of state was originally derived.
Originally coded in 1999 by J. Stephens, revised in 2023 to unambiguously specify the order of arithmetic with parenthesis in every real sum of three or more terms.
References
Gill, A. E., 1982: Atmosphere-Ocean Dynamics. Academic Press, 662 pp.
Jackett, D. and T. McDougall, 1995: Minimal adjustment of hydrographic profiles to achieve static stability. J. Atmos. Ocean. Tech., 12, 381-389.
UNESCO, 1981: Tenth report of the joint panel on oceanographic tables and standards. UNESCO Technical Papers in Marine Sci. No. 36, UNESCO, Paris.
Type Documentation
- type, extends(EOS_base) :: UNESCO_EOS
@}
The EOS_base implementation of the UNESCO equation of state
Functions/Subroutine Documentation
- real elemental function density_elem_UNESCO(this, T, S, pressure)
In situ density as fit by Jackett and McDougall, 1995 [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]
Potential temperature relative to the surface [degC]
S [in]
Salinity [PSU]
pressure [in]
Pressure [Pa]
- real elemental function density_anomaly_elem_UNESCO(this, T, S, pressure, rho_ref)
In situ density anomaly as fit by Jackett and McDougall, 1995 [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]
Potential temperature relative to the surface [degC]
S [in]
Salinity [PSU]
pressure [in]
Pressure [Pa]
rho_ref [in]
A reference density [kg m-3]
- real elemental function spec_vol_elem_UNESCO(this, T, S, pressure)
In situ specific volume as fit by Jackett and McDougall, 1995 [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]
Potential temperature relative to the surface [degC]
S [in]
Salinity [PSU]
pressure [in]
Pressure [Pa]
- real elemental function spec_vol_anomaly_elem_UNESCO(this, T, S, pressure, spv_ref)
In situ specific volume anomaly as fit by Jackett and McDougall, 1995 [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]
Potential temperature relative to the surface [degC]
S [in]
Salinity [PSU]
pressure [in]
Pressure [Pa]
spv_ref [in]
A reference specific volume [m3 kg-1]
- elemental subroutine calculate_density_derivs_elem_UNESCO(this, T, S, pressure, drho_dT, drho_dS)
Calculate the partial derivatives of density with potential temperature and salinity using the UNESCO (1981) equation of state, as refit by Jackett and McDougall (1995).
- Parameters
this [in]
This EOS
T [in]
Potential temperature relative to the surface [degC]
S [in]
Salinity [PSU]
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 PSU-1]
- elemental subroutine calculate_density_second_derivs_elem_UNESCO(this, T, S, pressure, drho_ds_ds, drho_ds_dt, drho_dt_dt, drho_ds_dp, drho_dt_dp)
Calculate second derivatives of density with respect to temperature, salinity, and pressure, using the UNESCO (1981) equation of state, as refit by Jackett and McDougall (1995)
- Parameters
this [in]
This EOS
T [in]
Potential temperature referenced to 0 dbar [degC]
S [in]
Salinity [PSU]
pressure [in]
Pressure [Pa]
drho_ds_ds [inout]
Partial derivative of beta with respect to S [kg m-3 PSU-2]
drho_ds_dt [inout]
Partial derivative of beta with respect to T [kg m-3 PSU-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 PSU-1 Pa-1] = [s2 m-2 PSU-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_UNESCO(this, T, S, pressure, dSV_dT, dSV_dS)
Calculate the partial derivatives of specific volume with temperature and salinity using the UNESCO (1981) equation of state, as refit by Jackett and McDougall (1995).
- Parameters
this [in]
This EOS
T [in]
Potential temperature [degC]
S [in]
Salinity [PSU]
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 PSU-1]
- elemental subroutine calculate_compress_elem_UNESCO(this, T, S, pressure, rho, drho_dp)
Compute the in situ density of sea water (rho) and the compressibility (drho/dp == C_sound^-2) at the given salinity, potential temperature and pressure using the UNESCO (1981) equation of state, as refit by Jackett and McDougall (1995).
- 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]
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_UNESCO(this, T_min, T_max, S_min, S_max, p_min, p_max)
Return the range of temperatures, salinities and pressures for which Jackett and McDougall (1995) refit the UNESCO 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 potential temperature over which this EoS is fitted [degC]
T_max [out]
The maximum potential temperature over which this EoS is fitted [degC]
S_min [out]
The minimum practical salinity over which this EoS is fitted [PSU]
S_max [out]
The maximum practical salinity over which this EoS is fitted [PSU]
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]