FV3 Bundle
gsw_kappa.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_kappa
(sa, ct, p)
3
!==========================================================================
4
!
5
! Calculates the isentropic compressibility of seawater. This function
6
! has inputs of Absolute Salinity and Conservative Temperature. This
7
! function uses the computationally-efficient expression for
8
! specific volume in terms of SA, CT and p (Roquet et al., 2014).
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
! kappa = isentropic compressibility of seawater [ 1/Pa ]
16
!--------------------------------------------------------------------------
17
18
use
gsw_mod_teos10_constants
,
only
:
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_kappa
29
30
real (r8)
:: v, v_p, 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
v =
v000
+ xs*(
v010
+ xs*(
v020
+ xs*(
v030
+ xs*(
v040
+ xs*(
v050
&
37
+
v060
*xs))))) + ys*(
v100
+ xs*(
v110
+ xs*(
v120
+ xs*(
v130
+ xs*(
v140
&
38
+
v150
*xs)))) + ys*(
v200
+ xs*(
v210
+ xs*(
v220
+ xs*(
v230
+
v240
*xs))) &
39
+ ys*(
v300
+ xs*(
v310
+ xs*(
v320
+
v330
*xs)) + ys*(
v400
+ xs*(
v410
&
40
+
v420
*xs) + ys*(
v500
+
v510
*xs +
v600
*ys))))) + z*(
v001
+ xs*(
v011
&
41
+ xs*(
v021
+ xs*(
v031
+ xs*(
v041
+
v051
*xs)))) + ys*(
v101
+ xs*(
v111
&
42
+ xs*(
v121
+ xs*(
v131
+
v141
*xs))) + ys*(
v201
+ xs*(
v211
+ xs*(
v221
&
43
+
v231
*xs)) + ys*(
v301
+ xs*(
v311
+
v321
*xs) + ys*(
v401
+
v411
*xs &
44
+
v501
*ys)))) + z*(
v002
+ xs*(
v012
+ xs*(
v022
+ xs*(
v032
+
v042
*xs))) &
45
+ ys*(
v102
+ xs*(
v112
+ xs*(
v122
+
v132
*xs)) + ys*(
v202
+ xs*(
v212
&
46
+
v222
*xs) + ys*(
v302
+
v312
*xs +
v402
*ys))) + z*(
v003
+ xs*(
v013
&
47
+
v023
*xs) + ys*(
v103
+
v113
*xs +
v203
*ys) + z*(
v004
+
v014
*xs +
v104
*ys &
48
+ z*(
v005
+
v006
*z)))))
49
50
v_p =
c000
+ xs*(
c100
+ xs*(
c200
+ xs*(
c300
+ xs*(
c400
+
c500
*xs)))) &
51
+ ys*(
c010
+ xs*(
c110
+ xs*(
c210
+ xs*(
c310
+
c410
*xs))) + ys*(
c020
&
52
+ xs*(
c120
+ xs*(
c220
+
c320
*xs)) + ys*(
c030
+ xs*(
c130
+
c230
*xs) &
53
+ ys*(
c040
+
c140
*xs +
c050
*ys)))) + z*(
c001
+ xs*(
c101
+ xs*(
c201
&
54
+ xs*(
c301
+
c401
*xs))) + ys*(
c011
+ xs*(
c111
+ xs*(
c211
+
c311
*xs)) &
55
+ ys*(
c021
+ xs*(
c121
+
c221
*xs) + ys*(
c031
+
c131
*xs +
c041
*ys))) &
56
+ z*(
c002
+ xs*(
c102
+
c202
*xs) + ys*(
c012
+
c112
*xs +
c022
*ys) &
57
+ z*(
c003
+
c103
*xs +
c013
*ys + z*(
c004
+
c005
*z))))
58
59
gsw_kappa
= -1e-8_r8*v_p/v
60
61
return
62
end function
63
64
!--------------------------------------------------------------------------
gsw_mod_specvol_coefficients::v211
real(r8), parameter v211
Definition:
gsw_mod_specvol_coefficients.f90:283
gsw_mod_specvol_coefficients::v003
real(r8), parameter v003
Definition:
gsw_mod_specvol_coefficients.f90:238
gsw_mod_specvol_coefficients::v021
real(r8), parameter v021
Definition:
gsw_mod_specvol_coefficients.f90:248
gsw_mod_specvol_coefficients::v005
real(r8), parameter v005
Definition:
gsw_mod_specvol_coefficients.f90:240
gsw_mod_specvol_coefficients::v000
real(r8), parameter v000
Definition:
gsw_mod_specvol_coefficients.f90:235
gsw_mod_specvol_coefficients::c003
real(r8), parameter c003
Definition:
gsw_mod_specvol_coefficients.f90:114
gsw_mod_specvol_coefficients::v104
real(r8), parameter v104
Definition:
gsw_mod_specvol_coefficients.f90:264
gsw_mod_specvol_coefficients::v102
real(r8), parameter v102
Definition:
gsw_mod_specvol_coefficients.f90:262
gsw_mod_specvol_coefficients::c102
real(r8), parameter c102
Definition:
gsw_mod_specvol_coefficients.f90:131
gsw_mod_specvol_coefficients::c210
real(r8), parameter c210
Definition:
gsw_mod_specvol_coefficients.f90:144
gsw_mod_specvol_coefficients::v121
real(r8), parameter v121
Definition:
gsw_mod_specvol_coefficients.f90:270
gsw_mod_specvol_coefficients::v012
real(r8), parameter v012
Definition:
gsw_mod_specvol_coefficients.f90:244
gsw_mod_specvol_coefficients::v210
real(r8), parameter v210
Definition:
gsw_mod_specvol_coefficients.f90:282
gsw_mod_specvol_coefficients::v032
real(r8), parameter v032
Definition:
gsw_mod_specvol_coefficients.f90:253
gsw_mod_specvol_coefficients::v140
real(r8), parameter v140
Definition:
gsw_mod_specvol_coefficients.f90:275
gsw_mod_specvol_coefficients::v202
real(r8), parameter v202
Definition:
gsw_mod_specvol_coefficients.f90:280
gsw_mod_specvol_coefficients::v201
real(r8), parameter v201
Definition:
gsw_mod_specvol_coefficients.f90:279
gsw_mod_specvol_coefficients::v312
real(r8), parameter v312
Definition:
gsw_mod_specvol_coefficients.f90:296
gsw_mod_specvol_coefficients::v022
real(r8), parameter v022
Definition:
gsw_mod_specvol_coefficients.f90:249
gsw_mod_specvol_coefficients::v240
real(r8), parameter v240
Definition:
gsw_mod_specvol_coefficients.f90:290
gsw_mod_specvol_coefficients::v321
real(r8), parameter v321
Definition:
gsw_mod_specvol_coefficients.f90:298
gsw_mod_specvol_coefficients::c500
real(r8), parameter c500
Definition:
gsw_mod_specvol_coefficients.f90:157
gsw_mod_specvol_coefficients::c211
real(r8), parameter c211
Definition:
gsw_mod_specvol_coefficients.f90:145
gsw_mod_specvol_coefficients::v402
real(r8), parameter v402
Definition:
gsw_mod_specvol_coefficients.f90:302
gsw_mod_specvol_coefficients::v041
real(r8), parameter v041
Definition:
gsw_mod_specvol_coefficients.f90:255
gsw_kappa
elemental real(r8) function gsw_kappa(sa, ct, p)
Definition:
gsw_kappa.f90:3
gsw_mod_specvol_coefficients::c230
real(r8), parameter c230
Definition:
gsw_mod_specvol_coefficients.f90:148
gsw_mod_specvol_coefficients::c002
real(r8), parameter c002
Definition:
gsw_mod_specvol_coefficients.f90:113
gsw_mod_specvol_coefficients::v051
real(r8), parameter v051
Definition:
gsw_mod_specvol_coefficients.f90:258
gsw_mod_specvol_coefficients::v510
real(r8), parameter v510
Definition:
gsw_mod_specvol_coefficients.f90:308
gsw_mod_specvol_coefficients::v111
real(r8), parameter v111
Definition:
gsw_mod_specvol_coefficients.f90:266
gsw_mod_specvol_coefficients::c120
real(r8), parameter c120
Definition:
gsw_mod_specvol_coefficients.f90:136
gsw_mod_teos10_constants
Definition:
gsw_mod_teos10_constants.f90:2
gsw_mod_specvol_coefficients::c111
real(r8), parameter c111
Definition:
gsw_mod_specvol_coefficients.f90:134
gsw_mod_specvol_coefficients::v301
real(r8), parameter v301
Definition:
gsw_mod_specvol_coefficients.f90:292
gsw_mod_specvol_coefficients::v411
real(r8), parameter v411
Definition:
gsw_mod_specvol_coefficients.f90:304
gsw_mod_specvol_coefficients::c031
real(r8), parameter c031
Definition:
gsw_mod_specvol_coefficients.f90:125
gsw_mod_specvol_coefficients::c005
real(r8), parameter c005
Definition:
gsw_mod_specvol_coefficients.f90:116
gsw_mod_specvol_coefficients::v221
real(r8), parameter v221
Definition:
gsw_mod_specvol_coefficients.f90:286
gsw_mod_specvol_coefficients::c310
real(r8), parameter c310
Definition:
gsw_mod_specvol_coefficients.f90:151
gsw_mod_specvol_coefficients::c022
real(r8), parameter c022
Definition:
gsw_mod_specvol_coefficients.f90:123
gsw_mod_specvol_coefficients::c300
real(r8), parameter c300
Definition:
gsw_mod_specvol_coefficients.f90:149
gsw_mod_specvol_coefficients::v150
real(r8), parameter v150
Definition:
gsw_mod_specvol_coefficients.f90:277
gsw_mod_specvol_coefficients::v011
real(r8), parameter v011
Definition:
gsw_mod_specvol_coefficients.f90:243
gsw_mod_specvol_coefficients::v101
real(r8), parameter v101
Definition:
gsw_mod_specvol_coefficients.f90:261
gsw_mod_specvol_coefficients::v401
real(r8), parameter v401
Definition:
gsw_mod_specvol_coefficients.f90:301
gsw_mod_specvol_coefficients::c012
real(r8), parameter c012
Definition:
gsw_mod_specvol_coefficients.f90:119
gsw_mod_specvol_coefficients::v501
real(r8), parameter v501
Definition:
gsw_mod_specvol_coefficients.f90:307
gsw_mod_teos10_constants::offset
real(r8), parameter offset
Definition:
gsw_mod_teos10_constants.f90:49
gsw_mod_specvol_coefficients::v230
real(r8), parameter v230
Definition:
gsw_mod_specvol_coefficients.f90:288
gsw_mod_specvol_coefficients::v231
real(r8), parameter v231
Definition:
gsw_mod_specvol_coefficients.f90:289
gsw_mod_specvol_coefficients::c010
real(r8), parameter c010
Definition:
gsw_mod_specvol_coefficients.f90:117
gsw_mod_specvol_coefficients::c050
real(r8), parameter c050
Definition:
gsw_mod_specvol_coefficients.f90:128
gsw_mod_specvol_coefficients::c103
real(r8), parameter c103
Definition:
gsw_mod_specvol_coefficients.f90:132
gsw_mod_specvol_coefficients::c000
real(r8), parameter c000
Definition:
gsw_mod_specvol_coefficients.f90:111
gsw_mod_specvol_coefficients::v113
real(r8), parameter v113
Definition:
gsw_mod_specvol_coefficients.f90:268
gsw_mod_specvol_coefficients::v203
real(r8), parameter v203
Definition:
gsw_mod_specvol_coefficients.f90:281
gsw_mod_specvol_coefficients::v010
real(r8), parameter v010
Definition:
gsw_mod_specvol_coefficients.f90:242
gsw_mod_specvol_coefficients::v600
real(r8), parameter v600
Definition:
gsw_mod_specvol_coefficients.f90:309
gsw_mod_specvol_coefficients::v040
real(r8), parameter v040
Definition:
gsw_mod_specvol_coefficients.f90:254
gsw_mod_specvol_coefficients::v220
real(r8), parameter v220
Definition:
gsw_mod_specvol_coefficients.f90:285
gsw_mod_specvol_coefficients::c320
real(r8), parameter c320
Definition:
gsw_mod_specvol_coefficients.f90:153
gsw_mod_specvol_coefficients::c400
real(r8), parameter c400
Definition:
gsw_mod_specvol_coefficients.f90:154
gsw_mod_specvol_coefficients::c040
real(r8), parameter c040
Definition:
gsw_mod_specvol_coefficients.f90:126
gsw_mod_specvol_coefficients::v042
real(r8), parameter v042
Definition:
gsw_mod_specvol_coefficients.f90:256
gsw_mod_specvol_coefficients::v014
real(r8), parameter v014
Definition:
gsw_mod_specvol_coefficients.f90:246
gsw_mod_specvol_coefficients::c202
real(r8), parameter c202
Definition:
gsw_mod_specvol_coefficients.f90:143
gsw_mod_specvol_coefficients::c041
real(r8), parameter c041
Definition:
gsw_mod_specvol_coefficients.f90:127
gsw_mod_specvol_coefficients::c101
real(r8), parameter c101
Definition:
gsw_mod_specvol_coefficients.f90:130
gsw_mod_specvol_coefficients::v006
real(r8), parameter v006
Definition:
gsw_mod_specvol_coefficients.f90:241
gsw_mod_specvol_coefficients::v103
real(r8), parameter v103
Definition:
gsw_mod_specvol_coefficients.f90:263
gsw_mod_specvol_coefficients::v132
real(r8), parameter v132
Definition:
gsw_mod_specvol_coefficients.f90:274
gsw_mod_specvol_coefficients::v001
real(r8), parameter v001
Definition:
gsw_mod_specvol_coefficients.f90:236
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_specvol_coefficients::v031
real(r8), parameter v031
Definition:
gsw_mod_specvol_coefficients.f90:252
gsw_mod_specvol_coefficients::c020
real(r8), parameter c020
Definition:
gsw_mod_specvol_coefficients.f90:121
gsw_mod_specvol_coefficients::c021
real(r8), parameter c021
Definition:
gsw_mod_specvol_coefficients.f90:122
gsw_mod_specvol_coefficients::v400
real(r8), parameter v400
Definition:
gsw_mod_specvol_coefficients.f90:300
gsw_mod_specvol_coefficients::v310
real(r8), parameter v310
Definition:
gsw_mod_specvol_coefficients.f90:294
gsw_mod_specvol_coefficients::c131
real(r8), parameter c131
Definition:
gsw_mod_specvol_coefficients.f90:139
gsw_mod_specvol_coefficients::v122
real(r8), parameter v122
Definition:
gsw_mod_specvol_coefficients.f90:271
gsw_mod_specvol_coefficients::v020
real(r8), parameter v020
Definition:
gsw_mod_specvol_coefficients.f90:247
gsw_mod_specvol_coefficients::c030
real(r8), parameter c030
Definition:
gsw_mod_specvol_coefficients.f90:124
gsw_mod_specvol_coefficients::v302
real(r8), parameter v302
Definition:
gsw_mod_specvol_coefficients.f90:293
gsw_mod_specvol_coefficients::v110
real(r8), parameter v110
Definition:
gsw_mod_specvol_coefficients.f90:265
gsw_mod_specvol_coefficients::v131
real(r8), parameter v131
Definition:
gsw_mod_specvol_coefficients.f90:273
gsw_mod_specvol_coefficients::c221
real(r8), parameter c221
Definition:
gsw_mod_specvol_coefficients.f90:147
gsw_mod_specvol_coefficients::v420
real(r8), parameter v420
Definition:
gsw_mod_specvol_coefficients.f90:305
gsw_mod_specvol_coefficients::c410
real(r8), parameter c410
Definition:
gsw_mod_specvol_coefficients.f90:156
gsw_mod_specvol_coefficients::v222
real(r8), parameter v222
Definition:
gsw_mod_specvol_coefficients.f90:287
gsw_mod_specvol_coefficients::c201
real(r8), parameter c201
Definition:
gsw_mod_specvol_coefficients.f90:142
gsw_mod_specvol_coefficients::c001
real(r8), parameter c001
Definition:
gsw_mod_specvol_coefficients.f90:112
gsw_mod_specvol_coefficients::c130
real(r8), parameter c130
Definition:
gsw_mod_specvol_coefficients.f90:138
gsw_mod_specvol_coefficients::c200
real(r8), parameter c200
Definition:
gsw_mod_specvol_coefficients.f90:141
gsw_mod_specvol_coefficients::v023
real(r8), parameter v023
Definition:
gsw_mod_specvol_coefficients.f90:250
gsw_mod_specvol_coefficients::v100
real(r8), parameter v100
Definition:
gsw_mod_specvol_coefficients.f90:260
gsw_mod_specvol_coefficients::v060
real(r8), parameter v060
Definition:
gsw_mod_specvol_coefficients.f90:259
gsw_mod_specvol_coefficients::v013
real(r8), parameter v013
Definition:
gsw_mod_specvol_coefficients.f90:245
gsw_mod_specvol_coefficients::c004
real(r8), parameter c004
Definition:
gsw_mod_specvol_coefficients.f90:115
gsw_mod_specvol_coefficients::v320
real(r8), parameter v320
Definition:
gsw_mod_specvol_coefficients.f90:297
gsw_mod_specvol_coefficients::v212
real(r8), parameter v212
Definition:
gsw_mod_specvol_coefficients.f90:284
gsw_mod_teos10_constants::gsw_sfac
real(r8), parameter gsw_sfac
Definition:
gsw_mod_teos10_constants.f90:45
gsw_mod_specvol_coefficients::v002
real(r8), parameter v002
Definition:
gsw_mod_specvol_coefficients.f90:237
gsw_mod_specvol_coefficients::c110
real(r8), parameter c110
Definition:
gsw_mod_specvol_coefficients.f90:133
gsw_mod_specvol_coefficients::v311
real(r8), parameter v311
Definition:
gsw_mod_specvol_coefficients.f90:295
gsw_mod_specvol_coefficients::c140
real(r8), parameter c140
Definition:
gsw_mod_specvol_coefficients.f90:140
gsw_mod_specvol_coefficients::c112
real(r8), parameter c112
Definition:
gsw_mod_specvol_coefficients.f90:135
gsw_mod_specvol_coefficients::c013
real(r8), parameter c013
Definition:
gsw_mod_specvol_coefficients.f90:120
gsw_mod_specvol_coefficients::c100
real(r8), parameter c100
Definition:
gsw_mod_specvol_coefficients.f90:129
gsw_mod_specvol_coefficients::v030
real(r8), parameter v030
Definition:
gsw_mod_specvol_coefficients.f90:251
gsw_mod_specvol_coefficients::c401
real(r8), parameter c401
Definition:
gsw_mod_specvol_coefficients.f90:155
gsw_mod_specvol_coefficients::c220
real(r8), parameter c220
Definition:
gsw_mod_specvol_coefficients.f90:146
gsw_mod_specvol_coefficients::c311
real(r8), parameter c311
Definition:
gsw_mod_specvol_coefficients.f90:152
gsw_mod_specvol_coefficients::v141
real(r8), parameter v141
Definition:
gsw_mod_specvol_coefficients.f90:276
gsw_mod_specvol_coefficients::v130
real(r8), parameter v130
Definition:
gsw_mod_specvol_coefficients.f90:272
gsw_mod_specvol_coefficients::c121
real(r8), parameter c121
Definition:
gsw_mod_specvol_coefficients.f90:137
gsw_mod_specvol_coefficients::v112
real(r8), parameter v112
Definition:
gsw_mod_specvol_coefficients.f90:267
gsw_mod_specvol_coefficients::c301
real(r8), parameter c301
Definition:
gsw_mod_specvol_coefficients.f90:150
gsw_mod_specvol_coefficients::v004
real(r8), parameter v004
Definition:
gsw_mod_specvol_coefficients.f90:239
gsw_mod_specvol_coefficients::c011
real(r8), parameter c011
Definition:
gsw_mod_specvol_coefficients.f90:118
gsw_mod_specvol_coefficients::v200
real(r8), parameter v200
Definition:
gsw_mod_specvol_coefficients.f90:278
gsw_mod_specvol_coefficients::v300
real(r8), parameter v300
Definition:
gsw_mod_specvol_coefficients.f90:291
gsw_mod_specvol_coefficients::v330
real(r8), parameter v330
Definition:
gsw_mod_specvol_coefficients.f90:299
gsw_mod_specvol_coefficients::v500
real(r8), parameter v500
Definition:
gsw_mod_specvol_coefficients.f90:306
gsw_mod_specvol_coefficients::v120
real(r8), parameter v120
Definition:
gsw_mod_specvol_coefficients.f90:269
gsw_mod_specvol_coefficients::v410
real(r8), parameter v410
Definition:
gsw_mod_specvol_coefficients.f90:303
gsw_mod_specvol_coefficients
Definition:
gsw_mod_specvol_coefficients.f90:2
gsw_mod_specvol_coefficients::v050
real(r8), parameter v050
Definition:
gsw_mod_specvol_coefficients.f90:257
src
fv3-bundle
gsw
toolbox
gsw_kappa.f90
Generated on Tue Nov 6 2018 11:38:37 for FV3 Bundle by
1.8.14