mom_eos_nemo module reference

The equation of state using the expressions of Roquet et al. that are used in NEMO.

More…

Functions/Subroutines

calculate_density_scalar_nemo()

This subroutine computes the in situ density of sea water (rho in [kg m-3]) from absolute salinity (S [g kg-1]), conservative temperature (T [degC]), and pressure [Pa].

calculate_density_array_nemo()

This subroutine computes the in situ density of sea water (rho in [kg m-3]) from absolute salinity (S [g kg-1]), conservative temperature (T [degC]), and pressure [Pa].

calculate_density_derivs_array_nemo()

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

calculate_density_derivs_scalar_nemo()

Wrapper to calculate_density_derivs_array for scalar inputs.

calculate_compress_nemo()

Compute the in situ density of sea water (rho in [kg m-3]) and the compressibility (drho/dp = C_sound^-2, stored as drho_dp [s2 m-2]) from absolute salinity (sal in g/kg), conservative temperature (T [degC]), and pressure [Pa], using the expressions derived for use with NEMO.

Detailed Description

The equation of state using the expressions of Roquet et al. that are used in NEMO.

Function/Subroutine Documentation

subroutine mom_eos_nemo/calculate_density_scalar_nemo(T, S, pressure, rho, rho_ref)

This subroutine computes the in situ density of sea water (rho in [kg m-3]) from absolute salinity (S [g kg-1]), conservative temperature (T [degC]), and pressure [Pa]. It uses the expressions derived for use with NEMO.

Parameters
  • t :: [in] Conservative temperature [degC].

  • s :: [in] Absolute salinity [g kg-1].

  • pressure :: [in] pressure [Pa].

  • rho :: [out] In situ density [kg m-3].

  • rho_ref :: [in] A reference density [kg m-3].

Call to

calculate_density_array_nemo

subroutine mom_eos_nemo/calculate_density_array_nemo(T, S, pressure, rho, start, npts, rho_ref)

This subroutine computes the in situ density of sea water (rho in [kg m-3]) from absolute salinity (S [g kg-1]), conservative temperature (T [degC]), and pressure [Pa]. It uses the expressions derived for use with NEMO.

Parameters
  • t :: [in] Conservative temperature [degC].

  • s :: [in] Absolute salinity [g kg-1].

  • pressure :: [in] pressure [Pa].

  • rho :: [out] in situ density [kg m-3].

  • start :: [in] the starting point in the arrays.

  • npts :: [in] the number of values to calculate.

  • rho_ref :: [in] A reference density [kg m-3].

Call to

eos000 eos001 eos002 eos003 eos010 eos011 eos012 eos013 eos020 eos021 eos022 eos030 eos031 eos040 eos041 eos050 eos060 eos100 eos101 eos102 eos103 eos110 eos111 eos112 eos120 eos121 eos130 eos131 eos140 eos150 eos200 eos201 eos202 eos210 eos211 eos220 eos221 eos230 eos240 eos300 eos301 eos310 eos311 eos320 eos330 eos400 eos401 eos410 eos420 eos500 eos510 eos600 pa2db r00 r01 r02 r03 r04 r05 r1_p0 r1_s0 r1_t0 rdeltas

Called from

calculate_compress_nemo calculate_density_scalar_nemo

subroutine mom_eos_nemo/calculate_density_derivs_array_nemo(T, S, pressure, drho_dT, drho_dS, start, npts)

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

Parameters
  • t :: [in] Conservative temperature [degC].

  • s :: [in] Absolute salinity [g kg-1].

  • 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 ppt-1].

  • start :: [in] The starting point in the arrays.

  • npts :: [in] The number of values to calculate.

Call to

alp000 alp001 alp002 alp003 alp010 alp011 alp012 alp020 alp021 alp030 alp031 alp040 alp050 alp100 alp101 alp102 alp110 alp111 alp120 alp121 alp130 alp140 alp200 alp201 alp210 alp211 alp220 alp230 alp300 alp301 alp310 alp320 alp400 alp410 alp500 bet000 bet001 bet002 bet003 bet010 bet011 bet012 bet020 bet021 bet030 bet031 bet040 bet050 bet100 bet101 bet102 bet110 bet111 bet120 bet121 bet130 bet140 bet200 bet201 bet210 bet211 bet220 bet230 bet300 bet301 bet310 bet320 bet400 bet410 bet500 pa2db r1_p0 r1_s0 r1_t0 rdeltas

Called from

calculate_density_derivs_scalar_nemo

subroutine mom_eos_nemo/calculate_density_derivs_scalar_nemo(T, S, pressure, drho_dt, drho_ds)

Wrapper to calculate_density_derivs_array for scalar inputs.

Parameters
  • t :: [in] Potential temperature relative to the surface [degC].

  • s :: [in] Salinity [g kg-1].

  • 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 ppt-1].

Call to

calculate_density_derivs_array_nemo

subroutine mom_eos_nemo/calculate_compress_nemo(T, S, pressure, rho, drho_dp, start, npts)

Compute the in situ density of sea water (rho in [kg m-3]) and the compressibility (drho/dp = C_sound^-2, stored as drho_dp [s2 m-2]) from absolute salinity (sal in g/kg), conservative temperature (T [degC]), and pressure [Pa], using the expressions derived for use with NEMO.

Parameters
  • t :: [in] Conservative temperature [degC].

  • s :: [in] Absolute salinity [g/kg].

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

  • start :: [in] The starting point in the arrays.

  • npts :: [in] The number of values to calculate.

Call to

calculate_density_array_nemo pa2db

Called from

mom_eos::calculate_compress_array