FV3 Bundle
gsw_internal_energy.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_internal_energy
(sa, ct, p)
3
!==========================================================================
4
!
5
! Calculates specific internal energy of seawater.
6
!
7
! sa : Absolute Salinity [g/kg]
8
! ct : Conservative Temperature [deg C]
9
! p : sea pressure [dbar]
10
!
11
! gsw_internal_energy : internal_energy of seawater [ J/kg ]
12
!--------------------------------------------------------------------------
13
14
use
gsw_mod_toolbox
,
only
:
gsw_enthalpy
,
gsw_specvol
15
16
use
gsw_mod_teos10_constants
,
only
:
gsw_p0
,
db2pa
17
18
use
gsw_mod_kinds
19
20
implicit none
21
22
real (r8)
,
intent(in)
:: sa, ct, p
23
24
real (r8)
::
gsw_internal_energy
25
26
gsw_internal_energy
=
gsw_enthalpy
(sa,ct,p) - &
27
(
gsw_p0
+
db2pa
*p)*
gsw_specvol
(sa,ct,p)
28
return
29
end function
30
31
!--------------------------------------------------------------------------
32
33
gsw_mod_toolbox::gsw_specvol
Definition:
gsw_mod_toolbox.f90:1314
gsw_mod_toolbox
Definition:
gsw_mod_toolbox.f90:1
gsw_mod_toolbox::gsw_internal_energy
Definition:
gsw_mod_toolbox.f90:698
gsw_mod_teos10_constants
Definition:
gsw_mod_teos10_constants.f90:2
gsw_mod_teos10_constants::gsw_p0
real(r8), parameter gsw_p0
Definition:
gsw_mod_teos10_constants.f90:32
gsw_internal_energy
elemental real(r8) function gsw_internal_energy(sa, ct, p)
Definition:
gsw_internal_energy.f90:3
gsw_mod_toolbox::gsw_enthalpy
Definition:
gsw_mod_toolbox.f90:440
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
src
fv3-bundle
gsw
toolbox
gsw_internal_energy.f90
Generated on Tue Nov 6 2018 11:38:36 for FV3 Bundle by
1.8.14