|
MOM6
|
Calculates density of sea water from T, S and P.
Definition at line 68 of file MOM_EOS.F90.
Private functions | |
| subroutine | calculate_density_scalar (T, S, pressure, rho, EOS, rho_ref, scale) |
| Calls the appropriate subroutine to calculate density of sea water for scalar inputs. If rho_ref is present, the anomaly with respect to rho_ref is returned. The pressure and density can be rescaled with the US. If both the US and scale arguments are present the density scaling uses the product of the two scaling factors. More... | |
| subroutine | calculate_density_array (T, S, pressure, rho, start, npts, EOS, rho_ref, scale) |
| Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs. If rho_ref is present, the anomaly with respect to rho_ref is returned. More... | |
| subroutine | calculate_density_1d (T, S, pressure, rho, EOS, dom, rho_ref, scale) |
| Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs, potentially limiting the domain of indices that are worked on. If rho_ref is present, the anomaly with respect to rho_ref is returned. More... | |
| subroutine | calculate_stanley_density_scalar (T, S, pressure, Tvar, TScov, Svar, rho, EOS, rho_ref, scale) |
| Calls the appropriate subroutine to calculate density of sea water for scalar inputs including the variance of T, S and covariance of T-S. The calculation uses only the second order correction in a series as discussed in Stanley et al., 2020. If rho_ref is present, the anomaly with respect to rho_ref is returned. The density can be rescaled using rho_ref. More... | |
| subroutine | calculate_stanley_density_array (T, S, pressure, Tvar, TScov, Svar, rho, start, npts, EOS, rho_ref, scale) |
| Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs including the variance of T, S and covariance of T-S. The calculation uses only the second order correction in a series as discussed in Stanley et al., 2020. If rho_ref is present, the anomaly with respect to rho_ref is returned. More... | |
| subroutine | calculate_stanley_density_1d (T, S, pressure, Tvar, TScov, Svar, rho, EOS, dom, rho_ref, scale) |
| Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs including the variance of T, S and covariance of T-S, potentially limiting the domain of indices that are worked on. The calculation uses only the second order correction in a series as discussed in Stanley et al., 2020. If rho_ref is present, the anomaly with respect to rho_ref is returned. More... | |
Calculates density of sea water from T, S and P.
Definition at line 68 of file MOM_EOS.F90.
|
private |
Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs, potentially limiting the domain of indices that are worked on. If rho_ref is present, the anomaly with respect to rho_ref is returned.
| [in] | t | Potential temperature referenced to the surface [degC] |
| [in] | s | Salinity [ppt] |
| [in] | pressure | Pressure [R L2 T-2 ~> Pa] |
| [in,out] | rho | Density (in-situ if pressure is local) [R ~> kg m-3] |
| eos | Equation of state structure | |
| [in] | dom | The domain of indices to work on, taking into account that arrays start at 1. |
| [in] | rho_ref | A reference density [kg m-3] |
| [in] | scale | A multiplicative factor by which to scale density in combination with scaling given by US [various] |
Definition at line 360 of file MOM_EOS.F90.
|
private |
Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs. If rho_ref is present, the anomaly with respect to rho_ref is returned.
| [in] | t | Potential temperature referenced to the surface [degC] |
| [in] | s | Salinity [ppt] |
| [in] | pressure | Pressure [Pa] or [R L2 T-2 ~> Pa] |
| [in,out] | rho | Density (in-situ if pressure is local) [kg m-3] or [R ~> kg m-3] |
| [in] | start | Start index for computation |
| [in] | npts | Number of point to compute |
| eos | Equation of state structure | |
| [in] | rho_ref | A reference density [kg m-3] |
| [in] | scale | A multiplicative factor by which to scale density in combination with scaling given by US [various] |
Definition at line 263 of file MOM_EOS.F90.
|
private |
Calls the appropriate subroutine to calculate density of sea water for scalar inputs. If rho_ref is present, the anomaly with respect to rho_ref is returned. The pressure and density can be rescaled with the US. If both the US and scale arguments are present the density scaling uses the product of the two scaling factors.
| [in] | t | Potential temperature referenced to the surface [degC] |
| [in] | s | Salinity [ppt] |
| [in] | pressure | Pressure [Pa] or [R L2 T-2 ~> Pa] |
| [out] | rho | Density (in-situ if pressure is local) [kg m-3] or [R ~> kg m-3] |
| eos | Equation of state structure | |
| [in] | rho_ref | A reference density [kg m-3] |
| [in] | scale | A multiplicative factor by which to scale density in combination with scaling given by US [various] |
Definition at line 166 of file MOM_EOS.F90.
|
private |
Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs including the variance of T, S and covariance of T-S, potentially limiting the domain of indices that are worked on. The calculation uses only the second order correction in a series as discussed in Stanley et al., 2020. If rho_ref is present, the anomaly with respect to rho_ref is returned.
| [in] | t | Potential temperature referenced to the surface [degC] |
| [in] | s | Salinity [ppt] |
| [in] | pressure | Pressure [R L2 T-2 ~> Pa] |
| [in] | tvar | Variance of potential temperature [degC2] |
| [in] | tscov | Covariance of potential temperature and salinity [degC ppt] |
| [in] | svar | Variance of salinity [ppt2] |
| [in,out] | rho | Density (in-situ if pressure is local) [R ~> kg m-3] |
| eos | Equation of state structure | |
| [in] | dom | The domain of indices to work on, taking into account that arrays start at 1. |
| [in] | rho_ref | A reference density [kg m-3] |
| [in] | scale | A multiplicative factor by which to scale density in combination with scaling given by US [various] |
Definition at line 417 of file MOM_EOS.F90.
|
private |
Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs including the variance of T, S and covariance of T-S. The calculation uses only the second order correction in a series as discussed in Stanley et al., 2020. If rho_ref is present, the anomaly with respect to rho_ref is returned.
| [in] | t | Potential temperature referenced to the surface [degC] |
| [in] | s | Salinity [ppt] |
| [in] | pressure | Pressure [Pa] |
| [in] | tvar | Variance of potential temperature referenced to the surface [degC2] |
| [in] | tscov | Covariance of potential temperature and salinity [degC ppt] |
| [in] | svar | Variance of salinity [ppt2] |
| [in,out] | rho | Density (in-situ if pressure is local) [kg m-3] |
| [in] | start | Start index for computation |
| [in] | npts | Number of point to compute |
| eos | Equation of state structure | |
| [in] | rho_ref | A reference density [kg m-3]. |
| [in] | scale | A multiplicative factor by which to scale density from kg m-3 to the desired units [R m3 kg-1] |
Definition at line 306 of file MOM_EOS.F90.
|
private |
Calls the appropriate subroutine to calculate density of sea water for scalar inputs including the variance of T, S and covariance of T-S. The calculation uses only the second order correction in a series as discussed in Stanley et al., 2020. If rho_ref is present, the anomaly with respect to rho_ref is returned. The density can be rescaled using rho_ref.
| [in] | t | Potential temperature referenced to the surface [degC] |
| [in] | s | Salinity [ppt] |
| [in] | tvar | Variance of potential temperature referenced to the surface [degC2] |
| [in] | tscov | Covariance of potential temperature and salinity [degC ppt] |
| [in] | svar | Variance of salinity [ppt2] |
| [in] | pressure | Pressure [Pa] |
| [out] | rho | Density (in-situ if pressure is local) [kg m-3] or [R ~> kg m-3] |
| eos | Equation of state structure | |
| [in] | rho_ref | A reference density [kg m-3]. |
| [in] | scale | A multiplicative factor by which to scale density from kg m-3 to the desired units [R m3 kg-1] |
Definition at line 212 of file MOM_EOS.F90.