Changeset 5495
- Timestamp:
- Jan 20, 2025, 4:01:44 PM (7 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/lmdz_lscp.f90
r5443 r5495 841 841 IF (mpc_bl_points(i,k) .GT. 0) THEN 842 842 zcond(i) = MAX(0.0,qincloud_mpc(i))*rneb(i,k) 843 ! following line is very strange and probably wrong 844 rhcl(i,k)= (zqs(i)+zq(i))/2./zqs(i) 843 !--Relative humidity (no unit) in clear sky, calculated as rh = q / qsat 844 !--This is slighly approximated, the actual formula is 845 !-- rh = q / qsat * (eps + (1-eps)*qsat) / (eps + (1-eps)*q) 846 !--Here, rh = (qtot - qincld * cldfra) / clrfra / qsat 847 !--where (qtot - qincld * cldfra) is the grid-mean clear sky water content 848 rhcl(i,k) = ( zq(i) - qincloud_mpc(i) * rneb(i,k) ) / ( 1. - rneb(i,k) ) / zqs(i) 845 849 ! water vapor update and partition function if thermals 846 850 zq(i) = zq(i) - zcond(i) … … 872 876 zcond(i) = MAX(0.0,zqn(i)-zqs(i))*rneb(i,k) 873 877 ENDIF 874 ! following line is very strange and probably wrong: 875 rhcl(i,k)=(zqs(i)+zq(i))/2./zqs(i) 878 !--Relative humidity (no unit) in clear sky, calculated as rh = q / qsat 879 !--This is slighly approximated, the actual formula is 880 !-- rh = q / qsat * (eps + (1-eps)*qsat) / (eps + (1-eps)*q) 881 !--Here, rh = (qtot - qincld * cldfra) / clrfra / qsat 882 !--where (qtot - qincld * cldfra) is the grid-mean clear sky water content 883 rhcl(i,k) = ( zq(i) - zqn(i) * rneb(i,k) ) / ( 1. - rneb(i,k) ) / zqs(i) 876 884 ! Overwrite partitioning for non shallow-convective clouds if iflag_icefrac>1 (icefrac turb param) 877 885 IF (iflag_icefrac .GE. 1) THEN
Note: See TracChangeset
for help on using the changeset viewer.