R/sw_entropy.R

## -----------------------------------------------------------------------------
## Specific Entropy of Seawater
## -----------------------------------------------------------------------------

sw_entropy <- function (S = 35, t = 25, p = P-1.013253, P = 1.013253)  {
  if (any (S < 0))
    stop ("Salinity should be >= 0")

  -sw_gibbs(S, t, p, dS = 0, dt = 1, dp = 0)
}

Try the marelac package in your browser

Any scripts or data that you put into this service are public.

marelac documentation built on Sept. 25, 2023, 5:06 p.m.