momlevel.eos.linear module

linear.py – Linear Equation of State

momlevel.eos.linear.alpha(T, S, p)

Calculate thermal expansion coefficient (alpha)

This implementation is for the linear equation of state.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C

  • S (numpy.ndarray) – Sea water practical salinity in PSU

  • p (numpy.ndarray) – Sea water absolute pressure in Pa. Note that pressure is not used in a linear EOS. It is included here as an optional argument to maintain interfaces with other EOS implementations. Optional, by default None.

Returns:

Thermal expansion coefficient in deg C -1

Return type:

numpy.ndarray

momlevel.eos.linear.beta(T, S, p)

Calculate haline contraction coefficient (beta)

This implementation is for the linear equation of state.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C

  • S (numpy.ndarray) – Sea water practical salinity in PSU

  • p (numpy.ndarray) – Sea water absolute pressure in Pa. Note that pressure is not used in a linear EOS. It is included here as an optional argument to maintain interfaces with other EOS implementations. Optional, by default None.

Returns:

Thermal expansion coefficient in deg C -1

Return type:

numpy.ndarray

momlevel.eos.linear.density(T, S, p=None, rho_ref=None)

Calculate in-situ density based a linear equation of state.

Note than in the case of a linear EOS, potential density is undefined as the dependence on pressure does not exist. In this case, potential density is essentially the same as the in-situ density.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C

  • S (numpy.ndarray) – Sea water practical salinity in PSU

  • p (numpy.ndarray) – Sea water absolute pressure in Pa. Note that pressure is not used in a linear EOS. It is included here as an optional argument to maintain interfaces with other EOS implementations. Optional, by default None.

  • rho_ref (np.float) – A reference density in kg m-3. Optional, by default None

Returns:

Sea water in-situ density in kg m-3

Return type:

numpy.ndarray

momlevel.eos.linear.drho_dsal(T=None, S=None, p=None)

Return density derivative with respect to practical salinity.

This function returns the partial derivative of density with salinity for the linear equation of state. Note that temperature, salinity, and pressure have no effect as the density derivative is constant, but they are included to maintain interfaces with the other EOS implentations.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C. Optional, by default None.

  • S (numpy.ndarray) – Sea water practical salinity in PSU. Optional, by default None.

  • p (numpy.ndarray) – Sea water absolute pressure in Pa. Optional, by default None.

Returns:

Density derivative with respect to salinity in kg m-3 PSU-1

Return type:

numpy.float

momlevel.eos.linear.drho_dtemp(T=None, S=None, p=None)

Return density derivative with respect to potential temperature.

This function returns the partial derivative of density with temperature for the linear equation of state. Note that temperature, salinity, and pressure have no effect as the density derivative is constant, but they are included to maintain interfaces with the other EOS implentations.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C. Optional, by default None.

  • S (numpy.ndarray) – Sea water practical salinity in PSU. Optional, by default None.

  • p (numpy.ndarray) – Sea water absolute pressure in Pa. Optional, by default None.

Returns:

Density derivative with respect to temperature in kg m-3 deg C -1

Return type:

numpy.float