Freezing point expressions.
|
subroutine | calculate_tfreeze_linear_scalar (S, pres, T_Fr, TFr_S0_P0, dTFr_dS, dTFr_dp) |
| This subroutine computes the freezing point potential temperature [degC] from salinity [ppt], and pressure [Pa] using a simple linear expression, with coefficients passed in as arguments. More...
|
|
subroutine | calculate_tfreeze_linear_array (S, pres, T_Fr, start, npts, TFr_S0_P0, dTFr_dS, dTFr_dp) |
| This subroutine computes an array of freezing point potential temperatures [degC] from salinity [ppt], and pressure [Pa] using a simple linear expression, with coefficients passed in as arguments. More...
|
|
subroutine | calculate_tfreeze_millero_scalar (S, pres, T_Fr) |
| This subroutine computes the freezing point potential temperature [degC] from salinity [ppt], and pressure [Pa] using the expression from Millero (1978) (and in appendix A of Gill 1982), but with the of the pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an expression for potential temperature (not in situ temperature), using a value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar). More...
|
|
subroutine | calculate_tfreeze_millero_array (S, pres, T_Fr, start, npts) |
| This subroutine computes the freezing point potential temperature [degC] from salinity [ppt], and pressure [Pa] using the expression from Millero (1978) (and in appendix A of Gill 1982), but with the of the pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an expression for potential temperature (not in situ temperature), using a value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar). More...
|
|
subroutine | calculate_tfreeze_teos10_scalar (S, pres, T_Fr) |
| This subroutine computes the freezing point conservative temperature [degC] from absolute salinity [g/kg], and pressure [Pa] using the TEOS10 package. More...
|
|
subroutine | calculate_tfreeze_teos10_array (S, pres, T_Fr, start, npts) |
| This subroutine computes the freezing point conservative temperature [degC] from absolute salinity [g/kg], and pressure [Pa] using the TEOS10 package. More...
|
|
subroutine mom_tfreeze::calculate_tfreeze_millero_array |
( |
real, dimension(:), intent(in) |
S, |
|
|
real, dimension(:), intent(in) |
pres, |
|
|
real, dimension(:), intent(out) |
T_Fr, |
|
|
integer, intent(in) |
start, |
|
|
integer, intent(in) |
npts |
|
) |
| |
|
private |
This subroutine computes the freezing point potential temperature [degC] from salinity [ppt], and pressure [Pa] using the expression from Millero (1978) (and in appendix A of Gill 1982), but with the of the pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an expression for potential temperature (not in situ temperature), using a value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar).
- Parameters
-
[in] | s | Salinity [PSU]. |
[in] | pres | Pressure [Pa]. |
[out] | t_fr | Freezing point potential temperature [degC]. |
[in] | start | The starting point in the arrays. |
[in] | npts | The number of values to calculate. |
Definition at line 106 of file MOM_TFreeze.F90.
106 real,
dimension(:),
intent(in) :: S
107 real,
dimension(:),
intent(in) :: pres
108 real,
dimension(:),
intent(out) :: T_Fr
109 integer,
intent(in) :: start
110 integer,
intent(in) :: npts
113 real,
parameter :: cS1 = -0.0575, cs3_2 = 1.710523e-3, cs2 = -2.154996e-4
114 real,
parameter :: dTFr_dp = -7.75e-8
117 do j=start,start+npts-1
118 t_fr(j) = s(j)*(cs1 + (cs3_2 * sqrt(max(s(j),0.0)) + cs2 * s(j))) + &
subroutine mom_tfreeze::calculate_tfreeze_millero_scalar |
( |
real, intent(in) |
S, |
|
|
real, intent(in) |
pres, |
|
|
real, intent(out) |
T_Fr |
|
) |
| |
|
private |
This subroutine computes the freezing point potential temperature [degC] from salinity [ppt], and pressure [Pa] using the expression from Millero (1978) (and in appendix A of Gill 1982), but with the of the pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an expression for potential temperature (not in situ temperature), using a value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar).
- Parameters
-
[in] | s | Salinity in PSU. |
[in] | pres | Pressure [Pa]. |
[out] | t_fr | Freezing point potential temperature [degC]. |
Definition at line 87 of file MOM_TFreeze.F90.
88 real,
intent(in) :: pres
89 real,
intent(out) :: T_Fr
92 real,
parameter :: cS1 = -0.0575, cs3_2 = 1.710523e-3, cs2 = -2.154996e-4
93 real,
parameter :: dTFr_dp = -7.75e-8
95 t_fr = s*(cs1 + (cs3_2 * sqrt(max(s,0.0)) + cs2 * s)) + dtfr_dp*pres