--- trunk/Sources/phylmd/suphec.f 2015/09/29 19:48:59 171 +++ trunk/Sources/phylmd/suphec.f 2016/06/06 17:42:15 201 @@ -42,22 +42,31 @@ ! specific ideal gas constant for dry air, in J K-1 kg-1 ! (factor 1e3: conversion from g to kg) - real, save:: RCPV, RCVD, RCVV + real, parameter:: RCPV = 4. * RV + ! specific heat capacity at constant pressure of water vapor, in J K-1 kg-1 + + real, save:: RCVD + real, save:: RCVV real, parameter:: RCPD = 7. / 2 * RD - ! specific heat capacity for dry air, in J K-1 kg-1 + ! specific heat capacity at constant pressure of dry air, in J K-1 kg-1 real, parameter:: RMO3 = 47.9942 REAL, parameter:: RKAPPA = RD/RCPD real, save:: RETV ! A1.5, 6 Thermodynamic liquid, solid phases - REAL, save:: RCW, RCS + + REAL, parameter:: RCW = RCPV ! LIQUID PHASE Cw + real, save:: RCS ! A1.7 Thermodynamic transition of phase REAL, save:: RLMLT real, parameter:: RTT = 273.16 - real, parameter:: RLVTT = 2.5008E+6 + + real, parameter:: RLVTT = 2.5008E+6 + ! specific latent heat of vaporization of water at triple point, in J kg-1 + real, parameter:: RLSTT = 2.8345E+6 real, parameter:: RATM = 1e5 @@ -100,7 +109,6 @@ ! 5. DEFINE THERMODYNAMIC CONSTANTS, GAS PHASE. RCVD = RCPD-RD - RCPV = 4. * RV RCVV = RCPV-RV RETV = RV / RD - 1. print *, 'Thermodynamics, gas' @@ -109,17 +117,10 @@ print *, "rv = ", RV, "J K-1 kg-1" print '('' Cpd = '', e13.7)', RCPD print '('' Cvd = '', e13.7)', RCVD - print '('' Cpv = '', e13.7)', RCPV print '('' Cvv = '', e13.7)', RCVV print '('' Rd/Cpd = '', e13.7)', RKAPPA print '('' Rv / Rd - 1 = '', e13.7)', RETV - ! 6. DEFINE THERMODYNAMIC CONSTANTS, LIQUID PHASE. - - RCW = RCPV - print *, 'Thermodynamic, liquid ' - print '('' Cw = '', E13.7)', RCW - ! 7. DEFINE THERMODYNAMIC CONSTANTS, SOLID PHASE. RCS = RCPV @@ -131,7 +132,6 @@ RLMLT = RLSTT-RLVTT print *, 'Thermodynamic, transition of phase:' print '('' Fusion point = '', E13.7)', RTT - print '('' RLvTt = '', E13.7)', RLVTT print '('' RLsTt = '', E13.7)', RLSTT print '('' RLMlt = '', E13.7)', RLMLT print '('' Normal pressure = '', E13.7)', RATM