namespace mom_eos_teos10

Overview

The equation of state using the TEOS10 expressions. More…

namespace mom_eos_teos10 {

// interfaces

interface calculate_density_derivs_teos10;
interface calculate_density_second_derivs_teos10;
interface calculate_density_teos10;
interface calculate_spec_vol_teos10;

// global functions

subroutine, public calculate_specvol_derivs_teos10(
    T T,
    S S,
    pressure pressure,
    dSV_dT dSV_dT,
    dSV_dS dSV_dS,
    start start,
    npts npts
    );

subroutine, public calculate_compress_teos10(
    T T,
    S S,
    pressure pressure,
    rho rho,
    drho_dp drho_dp,
    start start,
    npts npts
    );

} // namespace mom_eos_teos10

Detailed Documentation

The equation of state using the TEOS10 expressions.

Global Functions

subroutine, public calculate_specvol_derivs_teos10(
    T T,
    S S,
    pressure pressure,
    dSV_dT dSV_dT,
    dSV_dS dSV_dS,
    start start,
    npts npts
    )

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

Parameters:

t

Conservative temperature [degC].

s

Absolute salinity [g kg-1].

pressure

pressure [Pa].

dsv_dt

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

dsv_ds

The partial derivative of specific volume with absolute salinity [m3 kg-1 (g/kg)-1].

start

The starting point in the arrays.

npts

The number of values to calculate.

subroutine, public calculate_compress_teos10(
    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 in [kg m-3]) and the compressibility (drho/dp = C_sound^-2) (drho_dp [s2 m-2]) from absolute salinity (sal in g/kg), conservative temperature (T [degC]), and pressure [Pa]. It uses the subroutines from TEOS10 website.

Parameters:

t

Conservative temperature [degC].

s

Absolute salinity [g kg-1].

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.