namespace mom_eos_unesco¶
Overview¶
The equation of state using the Jackett and McDougall fits to the UNESCO EOS. More…
namespace mom_eos_unesco { // interfaces interface calculate_density_unesco; interface calculate_spec_vol_unesco; // global functions subroutine, public calculate_density_scalar_unesco(T T, S S, pressure pressure, rho rho, rho_ref rho_ref); subroutine, public calculate_density_array_unesco( T T, S S, pressure pressure, rho rho, start start, npts npts, rho_ref rho_ref ); subroutine, public calculate_density_derivs_unesco( T T, S S, pressure pressure, drho_dT drho_dT, drho_dS drho_dS, start start, npts npts ); subroutine, public calculate_compress_unesco( T T, S S, pressure pressure, rho rho, drho_dp drho_dp, start start, npts npts ); } // namespace mom_eos_unesco
Detailed Documentation¶
The equation of state using the Jackett and McDougall fits to the UNESCO EOS.
Global Functions¶
subroutine, public calculate_density_scalar_unesco( T T, S S, pressure pressure, rho rho, rho_ref rho_ref )
This subroutine computes the in situ density of sea water (rho in [kg m-3]) from salinity (S [PSU]), potential temperature (T [degC]), and pressure [Pa], using the UNESCO (1981) equation of state.
Parameters:
t |
Potential temperature relative to the surface [degC]. |
s |
Salinity [PSU]. |
pressure |
pressure [Pa]. |
rho |
In situ density [kg m-3]. |
rho_ref |
A reference density [kg m-3]. |
subroutine, public calculate_density_array_unesco( T T, S S, pressure pressure, rho rho, start start, npts npts, rho_ref rho_ref )
This subroutine computes the in situ density of sea water (rho in [kg m-3]) from salinity (S [PSU]), potential temperature (T [degC]), and pressure [Pa], using the UNESCO (1981) equation of state.
Parameters:
t |
potential temperature relative to the surface [degC]. |
s |
salinity [PSU]. |
pressure |
pressure [Pa]. |
rho |
in situ density [kg m-3]. |
start |
the starting point in the arrays. |
npts |
the number of values to calculate. |
rho_ref |
A reference density [kg m-3]. |
subroutine, public calculate_density_derivs_unesco( T T, S S, pressure pressure, drho_dT drho_dT, drho_dS drho_dS, start start, npts npts )
This subroutine calculates the partial derivatives of density with potential temperature and salinity.
Parameters:
t |
Potential temperature relative to the surface [degC]. |
s |
Salinity [PSU]. |
pressure |
Pressure [Pa]. |
drho_dt |
The partial derivative of density with potential temperature [kg m-3 degC-1]. |
drho_ds |
The partial derivative of density with salinity, in [kg m-3 PSU-1]. |
start |
The starting point in the arrays. |
npts |
The number of values to calculate. |
subroutine, public calculate_compress_unesco( T T, S S, pressure pressure, rho rho, drho_dp drho_dp, start start, npts npts )
This subroutine computes the in situ density of sea water (rho) and the compressibility (drho/dp == C_sound^-2) at the given salinity, potential temperature, and pressure.
Parameters:
t |
Potential temperature relative to the surface [degC]. |
s |
Salinity [PSU]. |
pressure |
Pressure [Pa]. |
rho |
In situ density [kg m-3]. |
drho_dp |
The partial derivative of density with pressure (also the inverse of the square of sound speed) [s2 m-2]. |
start |
The starting point in the arrays. |
npts |
The number of values to calculate. |