FV3 Bundle
gsw_alpha_on_beta.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_alpha_on_beta
(sa, ct, p)
3
!==========================================================================
4
!
5
! Calculates alpha divided by beta, where alpha is the thermal expansion
6
! coefficient and beta is the saline contraction coefficient of seawater
7
! from Absolute Salinity and Conservative Temperature. This function uses
8
! the computationally-efficient expression for specific volume in terms of
9
! SA, CT and p (Roquet et al., 2014).
10
!
11
! SA = Absolute Salinity [ g/kg ]
12
! CT = Conservative Temperature (ITS-90) [ deg C ]
13
! p = sea pressure [ dbar ]
14
! ( i.e. absolute pressure - 10.1325 dbar )
15
!
16
! alpha_on_beta = thermal expansion coefficient with respect to
17
! Conservative Temperature divided by the saline
18
! contraction coefficient at constant Conservative
19
! Temperature [ kg g^-1 K^-1 ]
20
!--------------------------------------------------------------------------
21
22
use
gsw_mod_teos10_constants
,
only
:
gsw_sfac
,
offset
23
24
use
gsw_mod_specvol_coefficients
25
26
use
gsw_mod_kinds
27
28
implicit none
29
30
real (r8)
,
intent(in)
:: sa, ct, p
31
32
real (r8)
::
gsw_alpha_on_beta
33
34
real (r8)
:: xs, ys, z, v_ct_part, v_sa_part
35
36
xs = sqrt(
gsw_sfac
*sa +
offset
)
37
ys = ct*0.025_r8
38
z = p*1e-4_r8
39
40
v_ct_part =
a000
+ xs*(
a100
+ xs*(
a200
+ xs*(
a300
+ xs*(
a400
+
a500
*xs)))) &
41
+ ys*(
a010
+ xs*(
a110
+ xs*(
a210
+ xs*(
a310
+
a410
*xs))) &
42
+ ys*(
a020
+ xs*(
a120
+ xs*(
a220
+
a320
*xs)) + ys*(
a030
&
43
+ xs*(
a130
+
a230
*xs) + ys*(
a040
+
a140
*xs +
a050
*ys )))) &
44
+ z*(
a001
+ xs*(
a101
+ xs*(
a201
+ xs*(
a301
+
a401
*xs))) &
45
+ ys*(
a011
+ xs*(
a111
+ xs*(
a211
+
a311
*xs)) + ys*(
a021
&
46
+ xs*(
a121
+
a221
*xs) + ys*(
a031
+
a131
*xs +
a041
*ys))) &
47
+ z*(
a002
+ xs*(
a102
+ xs*(
a202
+
a302
*xs)) + ys*(
a012
&
48
+ xs*(
a112
+
a212
*xs) + ys*(
a022
+
a122
*xs +
a032
*ys)) &
49
+ z*(
a003
+
a103
*xs +
a013
*ys +
a004
*z)))
50
51
v_sa_part =
b000
+ xs*(
b100
+ xs*(
b200
+ xs*(
b300
+ xs*(
b400
+
b500
*xs)))) &
52
+ ys*(
b010
+ xs*(
b110
+ xs*(
b210
+ xs*(
b310
+
b410
*xs))) &
53
+ ys*(
b020
+ xs*(
b120
+ xs*(
b220
+
b320
*xs)) + ys*(
b030
&
54
+ xs*(
b130
+
b230
*xs) + ys*(
b040
+
b140
*xs +
b050
*ys)))) &
55
+ z*(
b001
+ xs*(
b101
+ xs*(
b201
+ xs*(
b301
+
b401
*xs))) &
56
+ ys*(
b011
+ xs*(
b111
+ xs*(
b211
+
b311
*xs)) + ys*(
b021
&
57
+ xs*(
b121
+
b221
*xs) + ys*(
b031
+
b131
*xs +
b041
*ys))) &
58
+ z*(
b002
+ xs*(
b102
+ xs*(
b202
+
b302
*xs))+ ys*(
b012
&
59
+ xs*(
b112
+
b212
*xs) + ys*(
b022
+
b122
*xs +
b032
*ys)) &
60
+ z*(
b003
+
b103
*xs +
b013
*ys +
b004
*z)))
61
62
gsw_alpha_on_beta
= -(v_ct_part*xs)/(20.0_r8*
gsw_sfac
*v_sa_part)
63
64
return
65
end function
66
67
!--------------------------------------------------------------------------
gsw_mod_specvol_coefficients::b122
real(r8), parameter b122
Definition:
gsw_mod_specvol_coefficients.f90:106
gsw_mod_specvol_coefficients::a111
real(r8), parameter a111
Definition:
gsw_mod_specvol_coefficients.f90:32
gsw_mod_specvol_coefficients::b120
real(r8), parameter b120
Definition:
gsw_mod_specvol_coefficients.f90:72
gsw_mod_specvol_coefficients::b140
real(r8), parameter b140
Definition:
gsw_mod_specvol_coefficients.f90:74
gsw_mod_specvol_coefficients::b040
real(r8), parameter b040
Definition:
gsw_mod_specvol_coefficients.f90:67
gsw_mod_specvol_coefficients::a131
real(r8), parameter a131
Definition:
gsw_mod_specvol_coefficients.f90:38
gsw_mod_specvol_coefficients::b130
real(r8), parameter b130
Definition:
gsw_mod_specvol_coefficients.f90:73
gsw_mod_specvol_coefficients::b031
real(r8), parameter b031
Definition:
gsw_mod_specvol_coefficients.f90:88
gsw_mod_specvol_coefficients::b211
real(r8), parameter b211
Definition:
gsw_mod_specvol_coefficients.f90:95
gsw_mod_specvol_coefficients::a020
real(r8), parameter a020
Definition:
gsw_mod_specvol_coefficients.f90:18
gsw_mod_specvol_coefficients::b111
real(r8), parameter b111
Definition:
gsw_mod_specvol_coefficients.f90:91
gsw_mod_specvol_coefficients::b210
real(r8), parameter b210
Definition:
gsw_mod_specvol_coefficients.f90:76
gsw_mod_specvol_coefficients::a401
real(r8), parameter a401
Definition:
gsw_mod_specvol_coefficients.f90:56
gsw_mod_specvol_coefficients::a110
real(r8), parameter a110
Definition:
gsw_mod_specvol_coefficients.f90:31
gsw_mod_specvol_coefficients::b004
real(r8), parameter b004
Definition:
gsw_mod_specvol_coefficients.f90:62
gsw_mod_specvol_coefficients::a310
real(r8), parameter a310
Definition:
gsw_mod_specvol_coefficients.f90:52
gsw_mod_specvol_coefficients::b021
real(r8), parameter b021
Definition:
gsw_mod_specvol_coefficients.f90:87
gsw_mod_specvol_coefficients::b013
real(r8), parameter b013
Definition:
gsw_mod_specvol_coefficients.f90:64
gsw_mod_specvol_coefficients::b221
real(r8), parameter b221
Definition:
gsw_mod_specvol_coefficients.f90:96
gsw_mod_specvol_coefficients::b311
real(r8), parameter b311
Definition:
gsw_mod_specvol_coefficients.f90:98
gsw_mod_specvol_coefficients::b112
real(r8), parameter b112
Definition:
gsw_mod_specvol_coefficients.f90:105
gsw_mod_specvol_coefficients::a022
real(r8), parameter a022
Definition:
gsw_mod_specvol_coefficients.f90:20
gsw_mod_specvol_coefficients::a112
real(r8), parameter a112
Definition:
gsw_mod_specvol_coefficients.f90:33
gsw_mod_specvol_coefficients::a301
real(r8), parameter a301
Definition:
gsw_mod_specvol_coefficients.f90:50
gsw_mod_specvol_coefficients::b410
real(r8), parameter b410
Definition:
gsw_mod_specvol_coefficients.f90:83
gsw_mod_teos10_constants
Definition:
gsw_mod_teos10_constants.f90:2
gsw_mod_specvol_coefficients::b300
real(r8), parameter b300
Definition:
gsw_mod_specvol_coefficients.f90:79
gsw_mod_specvol_coefficients::a050
real(r8), parameter a050
Definition:
gsw_mod_specvol_coefficients.f90:26
gsw_mod_specvol_coefficients::a320
real(r8), parameter a320
Definition:
gsw_mod_specvol_coefficients.f90:54
gsw_mod_specvol_coefficients::b012
real(r8), parameter b012
Definition:
gsw_mod_specvol_coefficients.f90:101
gsw_mod_specvol_coefficients::a210
real(r8), parameter a210
Definition:
gsw_mod_specvol_coefficients.f90:43
gsw_mod_specvol_coefficients::b310
real(r8), parameter b310
Definition:
gsw_mod_specvol_coefficients.f90:80
gsw_mod_specvol_coefficients::a041
real(r8), parameter a041
Definition:
gsw_mod_specvol_coefficients.f90:25
gsw_mod_specvol_coefficients::a002
real(r8), parameter a002
Definition:
gsw_mod_specvol_coefficients.f90:11
gsw_mod_specvol_coefficients::b011
real(r8), parameter b011
Definition:
gsw_mod_specvol_coefficients.f90:86
gsw_mod_specvol_coefficients::a032
real(r8), parameter a032
Definition:
gsw_mod_specvol_coefficients.f90:23
gsw_mod_specvol_coefficients::a010
real(r8), parameter a010
Definition:
gsw_mod_specvol_coefficients.f90:14
gsw_mod_specvol_coefficients::b302
real(r8), parameter b302
Definition:
gsw_mod_specvol_coefficients.f90:109
gsw_mod_specvol_coefficients::a011
real(r8), parameter a011
Definition:
gsw_mod_specvol_coefficients.f90:15
gsw_mod_specvol_coefficients::b320
real(r8), parameter b320
Definition:
gsw_mod_specvol_coefficients.f90:81
gsw_mod_specvol_coefficients::a013
real(r8), parameter a013
Definition:
gsw_mod_specvol_coefficients.f90:17
gsw_mod_specvol_coefficients::a103
real(r8), parameter a103
Definition:
gsw_mod_specvol_coefficients.f90:30
gsw_mod_specvol_coefficients::b020
real(r8), parameter b020
Definition:
gsw_mod_specvol_coefficients.f90:65
gsw_mod_specvol_coefficients::a004
real(r8), parameter a004
Definition:
gsw_mod_specvol_coefficients.f90:13
gsw_mod_specvol_coefficients::b131
real(r8), parameter b131
Definition:
gsw_mod_specvol_coefficients.f90:93
gsw_mod_teos10_constants::offset
real(r8), parameter offset
Definition:
gsw_mod_teos10_constants.f90:49
gsw_mod_specvol_coefficients::a500
real(r8), parameter a500
Definition:
gsw_mod_specvol_coefficients.f90:58
gsw_mod_specvol_coefficients::a030
real(r8), parameter a030
Definition:
gsw_mod_specvol_coefficients.f90:21
gsw_mod_specvol_coefficients::a202
real(r8), parameter a202
Definition:
gsw_mod_specvol_coefficients.f90:42
gsw_mod_specvol_coefficients::a400
real(r8), parameter a400
Definition:
gsw_mod_specvol_coefficients.f90:55
gsw_mod_specvol_coefficients::b301
real(r8), parameter b301
Definition:
gsw_mod_specvol_coefficients.f90:97
gsw_mod_specvol_coefficients::a031
real(r8), parameter a031
Definition:
gsw_mod_specvol_coefficients.f90:22
gsw_mod_specvol_coefficients::b400
real(r8), parameter b400
Definition:
gsw_mod_specvol_coefficients.f90:82
gsw_alpha_on_beta
elemental real(r8) function gsw_alpha_on_beta(sa, ct, p)
Definition:
gsw_alpha_on_beta.f90:3
gsw_mod_specvol_coefficients::a220
real(r8), parameter a220
Definition:
gsw_mod_specvol_coefficients.f90:46
gsw_mod_specvol_coefficients::a300
real(r8), parameter a300
Definition:
gsw_mod_specvol_coefficients.f90:49
gsw_mod_specvol_coefficients::b230
real(r8), parameter b230
Definition:
gsw_mod_specvol_coefficients.f90:78
gsw_mod_specvol_coefficients::b500
real(r8), parameter b500
Definition:
gsw_mod_specvol_coefficients.f90:84
gsw_mod_specvol_coefficients::b220
real(r8), parameter b220
Definition:
gsw_mod_specvol_coefficients.f90:77
gsw_mod_specvol_coefficients::b212
real(r8), parameter b212
Definition:
gsw_mod_specvol_coefficients.f90:108
gsw_mod_specvol_coefficients::b050
real(r8), parameter b050
Definition:
gsw_mod_specvol_coefficients.f90:68
gsw_mod_specvol_coefficients::a140
real(r8), parameter a140
Definition:
gsw_mod_specvol_coefficients.f90:39
gsw_mod_specvol_coefficients::b041
real(r8), parameter b041
Definition:
gsw_mod_specvol_coefficients.f90:89
gsw_mod_specvol_coefficients::a001
real(r8), parameter a001
Definition:
gsw_mod_specvol_coefficients.f90:10
gsw_mod_specvol_coefficients::b000
real(r8), parameter b000
Definition:
gsw_mod_specvol_coefficients.f90:60
gsw_mod_specvol_coefficients::b002
real(r8), parameter b002
Definition:
gsw_mod_specvol_coefficients.f90:100
gsw_mod_specvol_coefficients::a302
real(r8), parameter a302
Definition:
gsw_mod_specvol_coefficients.f90:51
gsw_mod_specvol_coefficients::b202
real(r8), parameter b202
Definition:
gsw_mod_specvol_coefficients.f90:107
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_specvol_coefficients::a102
real(r8), parameter a102
Definition:
gsw_mod_specvol_coefficients.f90:29
gsw_mod_specvol_coefficients::b121
real(r8), parameter b121
Definition:
gsw_mod_specvol_coefficients.f90:92
gsw_mod_specvol_coefficients::b010
real(r8), parameter b010
Definition:
gsw_mod_specvol_coefficients.f90:63
gsw_mod_specvol_coefficients::b032
real(r8), parameter b032
Definition:
gsw_mod_specvol_coefficients.f90:103
gsw_mod_specvol_coefficients::b201
real(r8), parameter b201
Definition:
gsw_mod_specvol_coefficients.f90:94
gsw_mod_specvol_coefficients::a100
real(r8), parameter a100
Definition:
gsw_mod_specvol_coefficients.f90:27
gsw_mod_specvol_coefficients::b022
real(r8), parameter b022
Definition:
gsw_mod_specvol_coefficients.f90:102
gsw_mod_specvol_coefficients::b110
real(r8), parameter b110
Definition:
gsw_mod_specvol_coefficients.f90:71
gsw_mod_specvol_coefficients::a003
real(r8), parameter a003
Definition:
gsw_mod_specvol_coefficients.f90:12
gsw_mod_specvol_coefficients::a200
real(r8), parameter a200
Definition:
gsw_mod_specvol_coefficients.f90:40
gsw_mod_specvol_coefficients::a101
real(r8), parameter a101
Definition:
gsw_mod_specvol_coefficients.f90:28
gsw_mod_specvol_coefficients::a410
real(r8), parameter a410
Definition:
gsw_mod_specvol_coefficients.f90:57
gsw_mod_specvol_coefficients::a311
real(r8), parameter a311
Definition:
gsw_mod_specvol_coefficients.f90:53
gsw_mod_specvol_coefficients::b102
real(r8), parameter b102
Definition:
gsw_mod_specvol_coefficients.f90:104
gsw_mod_specvol_coefficients::b103
real(r8), parameter b103
Definition:
gsw_mod_specvol_coefficients.f90:70
gsw_mod_specvol_coefficients::a040
real(r8), parameter a040
Definition:
gsw_mod_specvol_coefficients.f90:24
gsw_mod_specvol_coefficients::a120
real(r8), parameter a120
Definition:
gsw_mod_specvol_coefficients.f90:34
gsw_mod_teos10_constants::gsw_sfac
real(r8), parameter gsw_sfac
Definition:
gsw_mod_teos10_constants.f90:45
gsw_mod_specvol_coefficients::b101
real(r8), parameter b101
Definition:
gsw_mod_specvol_coefficients.f90:90
gsw_mod_specvol_coefficients::a221
real(r8), parameter a221
Definition:
gsw_mod_specvol_coefficients.f90:47
gsw_mod_specvol_coefficients::a230
real(r8), parameter a230
Definition:
gsw_mod_specvol_coefficients.f90:48
gsw_mod_specvol_coefficients::b401
real(r8), parameter b401
Definition:
gsw_mod_specvol_coefficients.f90:99
gsw_mod_specvol_coefficients::a212
real(r8), parameter a212
Definition:
gsw_mod_specvol_coefficients.f90:45
gsw_mod_specvol_coefficients::a121
real(r8), parameter a121
Definition:
gsw_mod_specvol_coefficients.f90:35
gsw_mod_specvol_coefficients::b100
real(r8), parameter b100
Definition:
gsw_mod_specvol_coefficients.f90:69
gsw_mod_specvol_coefficients::b030
real(r8), parameter b030
Definition:
gsw_mod_specvol_coefficients.f90:66
gsw_mod_specvol_coefficients::b001
real(r8), parameter b001
Definition:
gsw_mod_specvol_coefficients.f90:85
gsw_mod_specvol_coefficients::a012
real(r8), parameter a012
Definition:
gsw_mod_specvol_coefficients.f90:16
gsw_mod_specvol_coefficients::a130
real(r8), parameter a130
Definition:
gsw_mod_specvol_coefficients.f90:37
gsw_mod_specvol_coefficients::a122
real(r8), parameter a122
Definition:
gsw_mod_specvol_coefficients.f90:36
gsw_mod_specvol_coefficients::a211
real(r8), parameter a211
Definition:
gsw_mod_specvol_coefficients.f90:44
gsw_mod_specvol_coefficients::a201
real(r8), parameter a201
Definition:
gsw_mod_specvol_coefficients.f90:41
gsw_mod_specvol_coefficients::b200
real(r8), parameter b200
Definition:
gsw_mod_specvol_coefficients.f90:75
gsw_mod_specvol_coefficients::a000
real(r8), parameter a000
Definition:
gsw_mod_specvol_coefficients.f90:9
gsw_mod_specvol_coefficients::a021
real(r8), parameter a021
Definition:
gsw_mod_specvol_coefficients.f90:19
gsw_mod_specvol_coefficients
Definition:
gsw_mod_specvol_coefficients.f90:2
gsw_mod_specvol_coefficients::b003
real(r8), parameter b003
Definition:
gsw_mod_specvol_coefficients.f90:61
src
fv3-bundle
gsw
toolbox
gsw_alpha_on_beta.f90
Generated on Tue Nov 6 2018 11:38:36 for FV3 Bundle by
1.8.14