Changeset 590 for trunk/LMDZ.GENERIC/libf/phystd
- Timestamp:
- Mar 19, 2012, 6:29:26 PM (13 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90
r588 r590 118 118 119 119 real fluxtoplanet 120 real szangle 121 logical global1d 122 save szangle,global1d 120 123 real*8 taugsurf(L_NSPECTV,L_NGAUSS-1) 121 124 real*8 taugsurfi(L_NSPECTI,L_NGAUSS-1) … … 266 269 OSR_nu=0. 267 270 271 if (ngridmx.eq.1) then 272 PRINT*, 'Simulate global averaged conditions ?' 273 global1d = .false. ! default value 274 call getin("global1d",global1d) 275 write(*,*) "global1d = ",global1d 276 if (global1d) then 277 PRINT *,'Solar Zenith angle (deg.) ?' 278 PRINT *,'(assumed for averaged solar flux S/4)' 279 szangle=60.0 ! default value 280 call getin("szangle",szangle) 281 write(*,*) "szangle = ",szangle 282 endif 283 endif 284 268 285 firstcall=.false. 269 286 … … 543 560 endif 544 561 545 if (ngridmx.eq.1) then ! fixed zenith angle 'szangle' in 1D562 if ((ngridmx.eq.1).and.(global1d)) then ! fixed zenith angle 'szangle' in 1D simulations w/ globally-averaged sunlight 546 563 acosz = cos(pi*szangle/180.0) 547 564 print*,'acosz=',acosz,', szangle=',szangle 548 565 else 549 acosz=mu0(ig) ! cosine of sun incident angle 566 acosz=mu0(ig) ! cosine of sun incident angle : 3D simulations or local 1D simulations using latitude 550 567 endif 551 568 … … 742 759 fluxtoplanet=0. 743 760 744 if((ngridmx.eq.1).and.( .not.(diurnal.or.tlocked)))then761 if((ngridmx.eq.1).and.(global1d))then 745 762 do nw=1,L_NSPECTV 746 763 stel_fract(nw)= stel(nw) * 0.25 / acosz -
trunk/LMDZ.GENERIC/libf/phystd/callkeys.h
r589 r590 38 38 & , rainthreshold & 39 39 & , aerofixed & 40 & , szangle &41 40 & , hydrology & 42 41 & , sourceevol & … … 97 96 real satval 98 97 real rainthreshold 99 real szangle100 98 real CLFfixval 101 99 real n2mixratio -
trunk/LMDZ.GENERIC/libf/phystd/inifis.F
r589 r590 358 358 write(*,*)" Fat1AU = ",Fat1AU 359 359 360 361 ! 1D solar zenith angle362 write(*,*)"Solar zenith angle in 1D?"363 szangle=60.0364 call getin("szangle",szangle)365 write(*,*)" szangle = ",szangle366 360 367 361 ! TRACERS: -
trunk/LMDZ.GENERIC/libf/phystd/iniorbit.F
r253 r590 26 26 c Input: 27 27 c ------ 28 c apoastr \ apoastron and periastron of the orbit 29 c periastr / in millions of kilometres.28 c apoastr \ apoastron and periastron of the orbit in AU 29 c periastr / 30 30 c 31 31 c======================================================================= … … 59 59 peri_day=pperi_day 60 60 61 PRINT*,'Periastron in Mkm ',periastr 62 PRINT*,'Apoastron in Mkm ',apoastr 61 62 !!!! SPARADRAP TEMPORAIRE !!!! 63 !!!! SPARADRAP TEMPORAIRE !!!! 64 !!!! We hope that all cases are above 25 Mkm [OK with Gliese 581d] 65 IF ( apoastr .gt. 25.) THEN 66 PRINT*,'!!!!! WARNING !!!!!' 67 PRINT*,'!!!!! YOU ARE ABOUT TO WITNESS A DIRT HACK !!!!!' 68 PRINT*,'This must be an old start file.' 69 PRINT*,'The code changed 19/03/2012: we now use AU.' 70 PRINT*,'So I am assuming units are in Mkm here' 71 PRINT*,'and I am performing a conversion towards AU.' 72 periastr = periastr / 149.598 ! Mkm to AU 73 apoastr = apoastr / 149.598 ! Mkm to AU 74 ENDIF 75 !!!! SPARADRAP TEMPORAIRE !!!! 76 !!!! SPARADRAP TEMPORAIRE !!!! 77 78 79 PRINT*,'Periastron in AU ',periastr 80 PRINT*,'Apoastron in AU ',apoastr 63 81 PRINT*,'Obliquity in degrees :',obliquit 64 unitastr=149.597927 82 83 65 84 e_elips=(apoastr-periastr)/(periastr+apoastr) 66 p_elips=0.5*(periastr+apoastr)*(1-e_elips*e_elips) /unitastr85 p_elips=0.5*(periastr+apoastr)*(1-e_elips*e_elips) 67 86 68 87 print*,'e_elips',e_elips -
trunk/LMDZ.GENERIC/libf/phystd/kcm1d.F90
r586 r590 137 137 write(*,*) "apoastron = ",apoastr 138 138 139 periastr = periastr*149.598 ! AU to Mkm140 apoastr = apoastr*149.598 ! AU to Mk141 142 139 albedo=0.2 ! default value for albedo 143 140 print*,'Albedo of bare ground?' -
trunk/LMDZ.GENERIC/libf/phystd/physdem1.F
r588 r590 195 195 c Informations about Mars, only for physics 196 196 tab_cntrl(14) = year_day ! length of year (sols) ~668.6 197 tab_cntrl(15) = periastr ! min. star-planet distance ( Mkm) ~206.66198 tab_cntrl(16) = apoastr ! max. star-planet distance ( Mkm) ~249.22197 tab_cntrl(15) = periastr ! min. star-planet distance (AU) 198 tab_cntrl(16) = apoastr ! max. star-planet distance (AU) 199 199 tab_cntrl(17) = peri_day ! date of periastron (sols since N. spring) 200 200 tab_cntrl(18) = obliquit ! Obliquity of the planet (deg) ~23.98 -
trunk/LMDZ.GENERIC/libf/phystd/planete.h
r253 r590 5 5 & obliquit,nres, & 6 6 & z0,lmixmin,emin_turb,coefvis,coefir, & 7 & timeperi,e_elips,p_elips ,unitastr7 & timeperi,e_elips,p_elips 8 8 9 9 real apoastr,periastr,year_day,peri_day, & 10 10 & obliquit,nres, & 11 11 & z0,lmixmin,emin_turb,coefvis,coefir, & 12 & timeperi,e_elips,p_elips ,unitastr12 & timeperi,e_elips,p_elips 13 13 14 14 -
trunk/LMDZ.GENERIC/libf/phystd/rcm1d.F
r589 r590 359 359 PRINT *,"--> periastr = ",periastr 360 360 ENDIF 361 periastr=periastr*149.598 ! AU to Mkm362 361 363 362 apoastr = -99999. … … 370 369 PRINT *,"--> apoastr = ",apoastr 371 370 ENDIF 372 apoastr=apoastr*149.598 ! AU to Mkm373 371 374 372 peri_day = -99999. -
trunk/LMDZ.GENERIC/libf/phystd/stellarlong.F
r253 r590 60 60 c ------------------------------------------------------- 61 61 62 c Initialisation eventuelle:63 if(.not.unitastr.gt.1.e-4) then64 call iniorbit(249.22,206.66,669.,485.,25.2)65 endif66 67 62 c calcul de l'zanomalie moyenne 68 63 -
trunk/LMDZ.GENERIC/libf/phystd/tabfi.F
r588 r590 81 81 82 82 83 c-----------------------------------------------------------------------84 c Initialization of various physical constants to defaut values (nid = 0 case)85 c-----------------------------------------------------------------------86 IF (nid.eq.0) then87 88 c Reference pressure89 c-------------------------------------90 c pressrf = 670. ! Pression de reference (Pa) ~65091 92 c Default (Martian) parameters for the dynamics and physics93 c----------------------------------------------------------94 rad=3397200. ! radius of Mars (m) ~3397200 m95 daysec=88775. ! length of a sol (s) ~88775 s96 omeg=4.*asin(1.)/(daysec) ! rotation rate (rad.s-1)97 g=3.72 ! gravity (m.s-2) ~3.7298 mugaz=43.49 ! Molar mass of the atmosphere (g.mol-1) ~43.4999 rcp=.256793 ! = r/cp ~0.256793100 101 c Default (Martian) parameters for physics only102 c----------------------------------------------103 year_day = 669. ! length of year (sols) ~668.6104 periastr = 206.66 ! min. Star-Planet distance (Mkm) ~206.66105 apoastr = 249.22 ! max. Star-Planet distance (Mkm) ~249.22106 peri_day = 485. ! date of periastron (sols since N. spring)107 obliquit = 25.19 ! Obliquity of the planet (deg) ~25.19108 109 c additional for stokes.F added by RDW110 c-------------------------------------111 ! molrad=2.2e-10 ! CO2112 ! visc=1.e-5 ! CO2113 114 c Boundary layer and turbulence115 c----------------------------116 z0 = 1.e-2 ! surface roughness (m) ~0.01117 emin_turb = 1.e-6 ! minimal energy ~1.e-8118 lmixmin = 30 ! mixing length ~100119 120 c Optical properties of polar caps and ground emissivity121 c-----------------------------------------------------122 emissiv=.95 ! Emissivity of martian soil ~.95123 emisice(1)=0.95 ! Emissivity of northern cap124 emisice(2)=0.95 ! Emissivity of southern cap125 albedice(1)=0.65 ! Albedo of northern cap126 albedice(2)=0.65 ! Albedo of southern cap127 iceradius(1) = 100.e-6 ! mean scat radius of CO2 snow (north)128 iceradius(2) = 100.e-6 ! mean scat radius of CO2 snow (south)129 dtemisice(1) = 0.4 ! time scale for snow metamorphism (north)130 dtemisice(2) = 0.4 ! time scale for snow metamorphism (south)131 132 c dust aerosol properties133 c---------------------------------134 tauvis= 0.2 ! mean visible optical depth135 136 c soil properties137 volcapa = 1.e6 ! soil volumetric heat capacity (in comsoil.h)138 ELSE139 83 c----------------------------------------------------------------------- 140 84 c Initialization of physical constants by reading array tab_cntrl(:) … … 216 160 p_rad=rad 217 161 218 ENDIF ! end of (nid = 0)219 162 220 163 c----------------------------------------------------------------------- … … 292 235 write(*,*) '(18) obliquit : planet obliquity (deg)' 293 236 write(*,*) '(17) peri_day : periastron date (sols since Ls=0)' 294 write(*,*) '(15) periastr : min. star-planet dist ( Mkm)'295 write(*,*) '(16) apoastr : max. star-planet ( Mkm)'237 write(*,*) '(15) periastr : min. star-planet dist (UA)' 238 write(*,*) '(16) apoastr : max. star-planet (UA)' 296 239 write(*,*) '(14) year_day : length of year (in sols)' 297 240 write(*,*) '(5) rad : radius of the planet (m)'
Note: See TracChangeset
for help on using the changeset viewer.