Definition at line 39 of file MOM_EOS_Wright.F90.
|
subroutine | calculate_density_scalar_wright (T, S, pressure, rho) |
| This subroutine computes the in situ density of sea water (rho in units of kg/m^3) from salinity (S in psu), potential temperature (T in deg C), and pressure in Pa. It uses the expression from Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740. Coded by R. Hallberg, 7/00. More...
|
|
subroutine | calculate_density_array_wright (T, S, pressure, rho, start, npts) |
| This subroutine computes the in situ density of sea water (rho in units of kg/m^3) from salinity (S in psu), potential temperature (T in deg C), and pressure in Pa. It uses the expression from Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740. Coded by R. Hallberg, 7/00. More...
|
|
◆ calculate_density_array_wright()
subroutine mom_eos_wright::calculate_density_wright::calculate_density_array_wright |
( |
real, dimension(:), intent(in) |
T, |
|
|
real, dimension(:), intent(in) |
S, |
|
|
real, dimension(:), intent(in) |
pressure, |
|
|
real, dimension(:), intent(out) |
rho, |
|
|
integer, intent(in) |
start, |
|
|
integer, intent(in) |
npts |
|
) |
| |
|
private |
This subroutine computes the in situ density of sea water (rho in units of kg/m^3) from salinity (S in psu), potential temperature (T in deg C), and pressure in Pa. It uses the expression from Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740. Coded by R. Hallberg, 7/00.
- Parameters
-
[in] | t | potential temperature relative to the surface in C. |
[in] | s | salinity in PSU. |
[in] | pressure | pressure in Pa. |
[out] | rho | in situ density in kg m-3. |
[in] | start | the starting point in the arrays. |
[in] | npts | the number of values to calculate. |
Definition at line 109 of file MOM_EOS_Wright.F90.
109 real,
intent(in),
dimension(:) :: t
111 real,
intent(in),
dimension(:) :: s
112 real,
intent(in),
dimension(:) :: pressure
113 real,
intent(out),
dimension(:) :: rho
114 integer,
intent(in) :: start
115 integer,
intent(in) :: npts
131 real :: al0, p0, lambda
134 do j=start,start+npts-1
135 al0 = (a0 + a1*t(j)) +a2*s(j)
136 p0 = (b0 + b4*s(j)) + t(j) * (b1 + t(j)*((b2 + b3*t(j))) + b5*s(j))
137 lambda = (c0 +c4*s(j)) + t(j) * (c1 + t(j)*((c2 + c3*t(j))) + c5*s(j))
139 rho(j) = (pressure(j) + p0) / (lambda + al0*(pressure(j) + p0))
◆ calculate_density_scalar_wright()
subroutine mom_eos_wright::calculate_density_wright::calculate_density_scalar_wright |
( |
real, intent(in) |
T, |
|
|
real, intent(in) |
S, |
|
|
real, intent(in) |
pressure, |
|
|
real, intent(out) |
rho |
|
) |
| |
|
private |
This subroutine computes the in situ density of sea water (rho in units of kg/m^3) from salinity (S in psu), potential temperature (T in deg C), and pressure in Pa. It uses the expression from Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740. Coded by R. Hallberg, 7/00.
- Parameters
-
[in] | t | Potential temperature relative to the surface in C. |
[in] | s | Salinity in PSU. |
[in] | pressure | Pressure in Pa. |
[out] | rho | In situ density in kg m-3. |
Definition at line 69 of file MOM_EOS_Wright.F90.
71 real,
intent(in) :: pressure
72 real,
intent(out) :: rho
89 real :: al0, p0, lambda
91 real,
dimension(1) :: t0, s0, pressure0
92 real,
dimension(1) :: rho0
96 pressure0(1) = pressure
98 call calculate_density_array_wright(t0, s0, pressure0, rho0, 1, 1)
The documentation for this interface was generated from the following file:
- /home/adcroft/GitHub/workspace/Gaea-stats-MOM6-examples/MOM6-examples/src/MOM6/src/equation_of_state/MOM_EOS_Wright.F90