For a given thermodynamic state, return the derivatives of density with temperature and salinity using the simple linear equation of state.
Definition at line 40 of file MOM_EOS_linear.F90.
|
subroutine | calculate_density_derivs_scalar_linear (T, S, pressure, drho_dT_out, drho_dS_out, Rho_T0_S0, dRho_dT, dRho_dS) |
| This subroutine calculates the partial derivatives of density * with potential temperature and salinity for a single point. More...
|
|
subroutine | calculate_density_derivs_array_linear (T, S, pressure, drho_dT_out, drho_dS_out, Rho_T0_S0, dRho_dT, dRho_dS, start, npts) |
| This subroutine calculates the partial derivatives of density * with potential temperature and salinity. More...
|
|
◆ calculate_density_derivs_array_linear()
subroutine mom_eos_linear::calculate_density_derivs_linear::calculate_density_derivs_array_linear |
( |
real, dimension(:), intent(in) |
T, |
|
|
real, dimension(:), intent(in) |
S, |
|
|
real, dimension(:), intent(in) |
pressure, |
|
|
real, dimension(:), intent(out) |
drho_dT_out, |
|
|
real, dimension(:), intent(out) |
drho_dS_out, |
|
|
real, intent(in) |
Rho_T0_S0, |
|
|
real, intent(in) |
dRho_dT, |
|
|
real, intent(in) |
dRho_dS, |
|
|
integer, intent(in) |
start, |
|
|
integer, intent(in) |
npts |
|
) |
| |
|
private |
This subroutine calculates the partial derivatives of density * with potential temperature and salinity.
- Parameters
-
[in] | t | Potential temperature relative to the surface [degC]. |
[in] | s | Salinity [PSU]. |
[in] | pressure | Pressure [Pa]. |
[out] | drho_dt_out | The partial derivative of density with potential temperature [kg m-3 degC-1]. |
[out] | drho_ds_out | The partial derivative of density with salinity [kg m-3 ppt-1]. |
[in] | rho_t0_s0 | The density at T=0, S=0 [kg m-3]. |
[in] | drho_dt | The derivative of density with temperature [kg m-3 degC-1]. |
[in] | drho_ds | The derivative of density with salinity [kg m-3 ppt-1]. |
[in] | start | The starting point in the arrays. |
[in] | npts | The number of values to calculate. |
Definition at line 165 of file MOM_EOS_linear.F90.
165 real,
intent(in),
dimension(:) :: T
167 real,
intent(in),
dimension(:) :: S
168 real,
intent(in),
dimension(:) :: pressure
169 real,
intent(out),
dimension(:) :: drho_dT_out
171 real,
intent(out),
dimension(:) :: drho_dS_out
173 real,
intent(in) :: Rho_T0_S0
174 real,
intent(in) :: dRho_dT
175 real,
intent(in) :: dRho_dS
176 integer,
intent(in) :: start
177 integer,
intent(in) :: npts
181 do j=start,start+npts-1
182 drho_dt_out(j) = drho_dt
183 drho_ds_out(j) = drho_ds
◆ calculate_density_derivs_scalar_linear()
subroutine mom_eos_linear::calculate_density_derivs_linear::calculate_density_derivs_scalar_linear |
( |
real, intent(in) |
T, |
|
|
real, intent(in) |
S, |
|
|
real, intent(in) |
pressure, |
|
|
real, intent(out) |
drho_dT_out, |
|
|
real, intent(out) |
drho_dS_out, |
|
|
real, intent(in) |
Rho_T0_S0, |
|
|
real, intent(in) |
dRho_dT, |
|
|
real, intent(in) |
dRho_dS |
|
) |
| |
|
private |
This subroutine calculates the partial derivatives of density * with potential temperature and salinity for a single point.
- Parameters
-
[in] | t | Potential temperature relative to the surface [degC]. |
[in] | s | Salinity [PSU]. |
[in] | pressure | pressure [Pa]. |
[out] | drho_dt_out | The partial derivative of density with potential temperature [kg m-3 degC-1]. |
[out] | drho_ds_out | The partial derivative of density with salinity [kg m-3 ppt-1]. |
[in] | rho_t0_s0 | The density at T=0, S=0 [kg m-3]. |
[in] | drho_dt | The derivatives of density with temperature [kg m-3 degC-1]. |
[in] | drho_ds | The derivatives of density with salinity [kg m-3 ppt-1]. |
Definition at line 192 of file MOM_EOS_linear.F90.
192 real,
intent(in) :: T
194 real,
intent(in) :: S
195 real,
intent(in) :: pressure
196 real,
intent(out) :: drho_dT_out
198 real,
intent(out) :: drho_dS_out
200 real,
intent(in) :: Rho_T0_S0
201 real,
intent(in) :: dRho_dT
202 real,
intent(in) :: dRho_dS
203 drho_dt_out = drho_dt
204 drho_ds_out = drho_ds
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/src/equation_of_state/MOM_EOS_linear.F90