Changeset 5144 for LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin
- Timestamp:
- Jul 29, 2024, 11:01:04 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/sens_heat_rain_m.F90
r5119 r5144 25 25 26 26 #ifdef IN_LMDZ 27 include "YOMCST.h" 28 ! for eps_w 27 USE lmdz_yomcst, ONLY: eps_w 29 28 #endif 30 29 31 REAL, INTENT(IN) :: rain ! rain mass flux, in kg m-2 s-132 REAL, INTENT(IN) :: t ! air temperature at 10 m, in K33 REAL, INTENT(IN) :: q ! specific humidity at 10 m34 REAL, INTENT(IN) :: rhoa ! density of moist air (kg / m3)35 REAL, INTENT(IN) :: xlv ! latent heat of evaporation (J / kg)36 REAL, INTENT(IN) :: t_int ! interface temperature, in K37 REAL, INTENT(IN) :: p ! surface pressure, in Pa30 REAL, INTENT(IN) :: rain ! rain mass flux, in kg m-2 s-1 31 REAL, INTENT(IN) :: t ! air temperature at 10 m, in K 32 REAL, INTENT(IN) :: q ! specific humidity at 10 m 33 REAL, INTENT(IN) :: rhoa ! density of moist air (kg / m3) 34 REAL, INTENT(IN) :: xlv ! latent heat of evaporation (J / kg) 35 REAL, INTENT(IN) :: t_int ! interface temperature, in K 36 REAL, INTENT(IN) :: p ! surface pressure, in Pa 38 37 39 38 ! Local: 40 39 41 40 REAL es ! saturation pressure of wator vapor, in Pa 42 41 REAL alfac ! wet bulb factor … … 58 57 t_celsius = t - 273.15 59 58 dtmp = (1. + 3.309e-3 * t_celsius - 1.44e-6 * t_celsius**2) * 0.02411 & 60 / (rhoa * cpa)59 / (rhoa * cpa) 61 60 62 61 ! Gosnell 1995 k0991, equation (11): 63 alfac = 62 alfac = 1. / (1. + (wetc * xlv * dwat) / (cpa * dtmp)) 64 63 65 64 ! Gosnell 1995 k0991, equation (12): 66 sens_heat_rain = 65 sens_heat_rain = rain * alfac * cpw * (t_int - t + (q_int - q) * xlv / cpa) 67 66 68 67 END FUNCTION sens_heat_rain 69 68 70 69 END MODULE sens_heat_rain_m
Note: See TracChangeset
for help on using the changeset viewer.