FV3 Bundle
gsw_dynamic_enthalpy.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_dynamic_enthalpy
(sa, ct, p)
3
!==========================================================================
4
!
5
! Calculates dynamic enthalpy of seawater using the computationally-
6
! efficient expression for specific volume in terms of SA, CT and p
7
! (Roquet et al., 2014). Dynamic enthalpy is defined as enthalpy minus
8
! potential enthalpy (Young, 2010).
9
!
10
! SA = Absolute Salinity [ g/kg ]
11
! CT = Conservative Temperature (ITS-90) [ deg C ]
12
! p = sea pressure [ dbar ]
13
! ( i.e. absolute pressure - 10.1325 dbar )
14
!
15
! dynamic_enthalpy = dynamic enthalpy [ J/kg ]
16
!--------------------------------------------------------------------------
17
18
use
gsw_mod_teos10_constants
,
only
:
db2pa
,
gsw_sfac
,
offset
19
20
use
gsw_mod_specvol_coefficients
21
22
use
gsw_mod_kinds
23
24
implicit none
25
26
real (r8)
,
intent(in)
:: sa, ct, p
27
28
real (r8)
::
gsw_dynamic_enthalpy
29
30
real (r8)
:: dynamic_enthalpy_part, xs, ys, z
31
32
xs = sqrt(
gsw_sfac
*sa +
offset
)
33
ys = ct*0.025_r8
34
z = p*1e-4_r8
35
36
dynamic_enthalpy_part = z*(
h001
+ xs*(
h101
+ xs*(
h201
+ xs*(
h301
+ xs*(
h401
&
37
+ xs*(
h501
+
h601
*xs))))) + ys*(
h011
+ xs*(
h111
+ xs*(
h211
+ xs*(
h311
&
38
+ xs*(
h411
+
h511
*xs)))) + ys*(
h021
+ xs*(
h121
+ xs*(
h221
+ xs*(
h321
&
39
+
h421
*xs))) + ys*(
h031
+ xs*(
h131
+ xs*(
h231
+
h331
*xs)) + ys*(
h041
&
40
+ xs*(
h141
+
h241
*xs) + ys*(
h051
+
h151
*xs +
h061
*ys))))) + z*(
h002
&
41
+ xs*(
h102
+ xs*(
h202
+ xs*(
h302
+ xs*(
h402
+
h502
*xs)))) + ys*(
h012
&
42
+ xs*(
h112
+ xs*(
h212
+ xs*(
h312
+
h412
*xs))) + ys*(
h022
+ xs*(
h122
&
43
+ xs*(
h222
+
h322
*xs)) + ys*(
h032
+ xs*(
h132
+
h232
*xs) + ys*(
h042
&
44
+
h142
*xs +
h052
*ys)))) + z*(
h003
+ xs*(
h103
+ xs*(
h203
+ xs*(
h303
&
45
+
h403
*xs))) + ys*(
h013
+ xs*(
h113
+ xs*(
h213
+
h313
*xs)) + ys*(
h023
&
46
+ xs*(
h123
+
h223
*xs) + ys*(
h033
+
h133
*xs +
h043
*ys))) + z*(
h004
&
47
+ xs*(
h104
+
h204
*xs) + ys*(
h014
+
h114
*xs +
h024
*ys) + z*(
h005
&
48
+
h105
*xs +
h015
*ys + z*(
h006
+
h007
*z))))))
49
50
gsw_dynamic_enthalpy
= dynamic_enthalpy_part*
db2pa
*1e4_r8
51
52
return
53
end function
54
55
!--------------------------------------------------------------------------
gsw_mod_specvol_coefficients::h011
real(r8), parameter h011
Definition:
gsw_mod_specvol_coefficients.f90:166
gsw_mod_specvol_coefficients::h203
real(r8), parameter h203
Definition:
gsw_mod_specvol_coefficients.f90:204
gsw_mod_specvol_coefficients::h122
real(r8), parameter h122
Definition:
gsw_mod_specvol_coefficients.f90:194
gsw_mod_specvol_coefficients::h204
real(r8), parameter h204
Definition:
gsw_mod_specvol_coefficients.f90:205
gsw_mod_specvol_coefficients::h511
real(r8), parameter h511
Definition:
gsw_mod_specvol_coefficients.f90:232
gsw_mod_specvol_coefficients::h023
real(r8), parameter h023
Definition:
gsw_mod_specvol_coefficients.f90:173
gsw_mod_specvol_coefficients::h052
real(r8), parameter h052
Definition:
gsw_mod_specvol_coefficients.f90:182
gsw_mod_specvol_coefficients::h213
real(r8), parameter h213
Definition:
gsw_mod_specvol_coefficients.f90:208
gsw_mod_specvol_coefficients::h141
real(r8), parameter h141
Definition:
gsw_mod_specvol_coefficients.f90:199
gsw_mod_specvol_coefficients::h132
real(r8), parameter h132
Definition:
gsw_mod_specvol_coefficients.f90:197
gsw_mod_specvol_coefficients::h022
real(r8), parameter h022
Definition:
gsw_mod_specvol_coefficients.f90:172
gsw_dynamic_enthalpy
elemental real(r8) function gsw_dynamic_enthalpy(sa, ct, p)
Definition:
gsw_dynamic_enthalpy.f90:3
gsw_mod_specvol_coefficients::h321
real(r8), parameter h321
Definition:
gsw_mod_specvol_coefficients.f90:221
gsw_mod_specvol_coefficients::h024
real(r8), parameter h024
Definition:
gsw_mod_specvol_coefficients.f90:174
gsw_mod_specvol_coefficients::h041
real(r8), parameter h041
Definition:
gsw_mod_specvol_coefficients.f90:180
gsw_mod_specvol_coefficients::h211
real(r8), parameter h211
Definition:
gsw_mod_specvol_coefficients.f90:206
gsw_mod_specvol_coefficients::h102
real(r8), parameter h102
Definition:
gsw_mod_specvol_coefficients.f90:185
gsw_mod_specvol_coefficients::h212
real(r8), parameter h212
Definition:
gsw_mod_specvol_coefficients.f90:207
gsw_mod_specvol_coefficients::h201
real(r8), parameter h201
Definition:
gsw_mod_specvol_coefficients.f90:202
gsw_mod_specvol_coefficients::h105
real(r8), parameter h105
Definition:
gsw_mod_specvol_coefficients.f90:188
gsw_mod_specvol_coefficients::h412
real(r8), parameter h412
Definition:
gsw_mod_specvol_coefficients.f90:229
gsw_mod_specvol_coefficients::h331
real(r8), parameter h331
Definition:
gsw_mod_specvol_coefficients.f90:223
gsw_mod_specvol_coefficients::h043
real(r8), parameter h043
Definition:
gsw_mod_specvol_coefficients.f90:179
gsw_mod_specvol_coefficients::h231
real(r8), parameter h231
Definition:
gsw_mod_specvol_coefficients.f90:212
gsw_mod_specvol_coefficients::h012
real(r8), parameter h012
Definition:
gsw_mod_specvol_coefficients.f90:167
gsw_mod_specvol_coefficients::h006
real(r8), parameter h006
Definition:
gsw_mod_specvol_coefficients.f90:164
gsw_mod_teos10_constants
Definition:
gsw_mod_teos10_constants.f90:2
gsw_mod_specvol_coefficients::h303
real(r8), parameter h303
Definition:
gsw_mod_specvol_coefficients.f90:217
gsw_mod_specvol_coefficients::h312
real(r8), parameter h312
Definition:
gsw_mod_specvol_coefficients.f90:219
gsw_mod_specvol_coefficients::h502
real(r8), parameter h502
Definition:
gsw_mod_specvol_coefficients.f90:231
gsw_mod_specvol_coefficients::h051
real(r8), parameter h051
Definition:
gsw_mod_specvol_coefficients.f90:181
gsw_mod_specvol_coefficients::h401
real(r8), parameter h401
Definition:
gsw_mod_specvol_coefficients.f90:224
gsw_mod_specvol_coefficients::h131
real(r8), parameter h131
Definition:
gsw_mod_specvol_coefficients.f90:196
gsw_mod_specvol_coefficients::h403
real(r8), parameter h403
Definition:
gsw_mod_specvol_coefficients.f90:226
gsw_mod_specvol_coefficients::h033
real(r8), parameter h033
Definition:
gsw_mod_specvol_coefficients.f90:177
gsw_mod_specvol_coefficients::h014
real(r8), parameter h014
Definition:
gsw_mod_specvol_coefficients.f90:169
gsw_mod_specvol_coefficients::h021
real(r8), parameter h021
Definition:
gsw_mod_specvol_coefficients.f90:171
gsw_mod_specvol_coefficients::h402
real(r8), parameter h402
Definition:
gsw_mod_specvol_coefficients.f90:225
gsw_mod_teos10_constants::offset
real(r8), parameter offset
Definition:
gsw_mod_teos10_constants.f90:49
gsw_mod_specvol_coefficients::h007
real(r8), parameter h007
Definition:
gsw_mod_specvol_coefficients.f90:165
gsw_mod_specvol_coefficients::h202
real(r8), parameter h202
Definition:
gsw_mod_specvol_coefficients.f90:203
gsw_mod_specvol_coefficients::h302
real(r8), parameter h302
Definition:
gsw_mod_specvol_coefficients.f90:216
gsw_mod_specvol_coefficients::h101
real(r8), parameter h101
Definition:
gsw_mod_specvol_coefficients.f90:184
gsw_mod_specvol_coefficients::h113
real(r8), parameter h113
Definition:
gsw_mod_specvol_coefficients.f90:191
gsw_mod_specvol_coefficients::h103
real(r8), parameter h103
Definition:
gsw_mod_specvol_coefficients.f90:186
gsw_mod_specvol_coefficients::h031
real(r8), parameter h031
Definition:
gsw_mod_specvol_coefficients.f90:175
gsw_mod_specvol_coefficients::h004
real(r8), parameter h004
Definition:
gsw_mod_specvol_coefficients.f90:162
gsw_mod_specvol_coefficients::h322
real(r8), parameter h322
Definition:
gsw_mod_specvol_coefficients.f90:222
gsw_mod_specvol_coefficients::h221
real(r8), parameter h221
Definition:
gsw_mod_specvol_coefficients.f90:209
gsw_mod_specvol_coefficients::h133
real(r8), parameter h133
Definition:
gsw_mod_specvol_coefficients.f90:198
gsw_mod_specvol_coefficients::h142
real(r8), parameter h142
Definition:
gsw_mod_specvol_coefficients.f90:200
gsw_mod_specvol_coefficients::h001
real(r8), parameter h001
Definition:
gsw_mod_specvol_coefficients.f90:159
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_teos10_constants::db2pa
real(r8), parameter db2pa
Definition:
gsw_mod_teos10_constants.f90:9
gsw_mod_specvol_coefficients::h015
real(r8), parameter h015
Definition:
gsw_mod_specvol_coefficients.f90:170
gsw_mod_specvol_coefficients::h121
real(r8), parameter h121
Definition:
gsw_mod_specvol_coefficients.f90:193
gsw_mod_specvol_coefficients::h111
real(r8), parameter h111
Definition:
gsw_mod_specvol_coefficients.f90:189
gsw_mod_specvol_coefficients::h114
real(r8), parameter h114
Definition:
gsw_mod_specvol_coefficients.f90:192
gsw_mod_specvol_coefficients::h411
real(r8), parameter h411
Definition:
gsw_mod_specvol_coefficients.f90:227
gsw_mod_specvol_coefficients::h151
real(r8), parameter h151
Definition:
gsw_mod_specvol_coefficients.f90:201
gsw_mod_specvol_coefficients::h313
real(r8), parameter h313
Definition:
gsw_mod_specvol_coefficients.f90:220
gsw_mod_teos10_constants::gsw_sfac
real(r8), parameter gsw_sfac
Definition:
gsw_mod_teos10_constants.f90:45
gsw_mod_specvol_coefficients::h501
real(r8), parameter h501
Definition:
gsw_mod_specvol_coefficients.f90:230
gsw_mod_specvol_coefficients::h222
real(r8), parameter h222
Definition:
gsw_mod_specvol_coefficients.f90:210
gsw_mod_specvol_coefficients::h003
real(r8), parameter h003
Definition:
gsw_mod_specvol_coefficients.f90:161
gsw_mod_specvol_coefficients::h042
real(r8), parameter h042
Definition:
gsw_mod_specvol_coefficients.f90:178
gsw_mod_specvol_coefficients::h013
real(r8), parameter h013
Definition:
gsw_mod_specvol_coefficients.f90:168
gsw_mod_specvol_coefficients::h002
real(r8), parameter h002
Definition:
gsw_mod_specvol_coefficients.f90:160
gsw_mod_specvol_coefficients::h005
real(r8), parameter h005
Definition:
gsw_mod_specvol_coefficients.f90:163
gsw_mod_specvol_coefficients::h032
real(r8), parameter h032
Definition:
gsw_mod_specvol_coefficients.f90:176
gsw_mod_specvol_coefficients::h112
real(r8), parameter h112
Definition:
gsw_mod_specvol_coefficients.f90:190
gsw_mod_specvol_coefficients::h061
real(r8), parameter h061
Definition:
gsw_mod_specvol_coefficients.f90:183
gsw_mod_specvol_coefficients::h601
real(r8), parameter h601
Definition:
gsw_mod_specvol_coefficients.f90:233
gsw_mod_specvol_coefficients::h123
real(r8), parameter h123
Definition:
gsw_mod_specvol_coefficients.f90:195
gsw_mod_specvol_coefficients::h301
real(r8), parameter h301
Definition:
gsw_mod_specvol_coefficients.f90:215
gsw_mod_specvol_coefficients::h421
real(r8), parameter h421
Definition:
gsw_mod_specvol_coefficients.f90:228
gsw_mod_specvol_coefficients::h241
real(r8), parameter h241
Definition:
gsw_mod_specvol_coefficients.f90:214
gsw_mod_specvol_coefficients::h311
real(r8), parameter h311
Definition:
gsw_mod_specvol_coefficients.f90:218
gsw_mod_specvol_coefficients::h104
real(r8), parameter h104
Definition:
gsw_mod_specvol_coefficients.f90:187
gsw_mod_specvol_coefficients
Definition:
gsw_mod_specvol_coefficients.f90:2
gsw_mod_specvol_coefficients::h223
real(r8), parameter h223
Definition:
gsw_mod_specvol_coefficients.f90:211
gsw_mod_specvol_coefficients::h232
real(r8), parameter h232
Definition:
gsw_mod_specvol_coefficients.f90:213
src
fv3-bundle
gsw
toolbox
gsw_dynamic_enthalpy.f90
Generated on Tue Nov 6 2018 11:38:36 for FV3 Bundle by
1.8.14