Changeset 2743 for trunk/LMDZ.TITAN/libf


Ignore:
Timestamp:
Jul 5, 2022, 11:56:27 PM (2 years ago)
Author:
aslmd
Message:

made the vertical discretization for Titan LES similar to that of Mars (simple linear law for znw and refinement close to the surface). no more need to prepare a file levels, just put ztop and number of levels in namelist. a file levels is saved at the end of the znw computation so that it can be read in update_inputs_physiq_mod in the case of Titan.

added MESOSCALE precompiling flags in call_profilgases to set constant methane abundance. therefore no need for profile.def file and the number of vertical levels is set by namelist -- no need to set the same number in both levels and profile.def

outputing ustar from vdifc

ending hardcoding of ptop in update_inputs_physiq_mod for Titan and generic LES/mesoscale. streamlining grod%ptop through module_lmd_driver as ptopwrf within variables_mod module.

adding flux outputs to check surface and atmosphere energy budgets

Location:
trunk/LMDZ.TITAN/libf/phytitan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/call_profilgases.F90

    r1648 r2743  
    4343
    4444!$OMP MASTER
    45      
     45#ifndef MESOSCALE     
    4646     ! Load CH4 vertical profile from file 'profile.def'
    4747     open(90,file='profile.def',status='old',form='formatted',iostat=ierr)
     
    6060           endif         
    6161        enddo       
    62        
     62#else       
     63        gfrac(igas_CH4,:) = 1.443E-02
     64        print*,"MESOSCALE. setting constant CH4",gfrac(igas_CH4,1)
     65#endif
    6366        ! Then set H2 (fixed) and N2 (what remains)
    6467
    6568        gfrac(igas_H2,:) = 1.0E-3
    6669        gfrac(igas_N2,:) = 1.0 - ( gfrac(igas_CH4,:) + gfrac(igas_H2,:) )
    67        
     70
     71
     72#ifndef MESOSCALE       
    6873     else
    6974        write(*,*) 'Cannot find required file "profile.def"'
     
    7277
    7378     close(90)
     79#endif
    7480!$OMP END MASTER
    7581!$OMP BARRIER
  • trunk/LMDZ.TITAN/libf/phytitan/vdifc.F

    r1668 r2743  
    1212      use comcstfi_mod, only: g, r, cpp, rcp
    1313      use callkeys_mod, only: tracer,nosurf
     14      use turb_mod, only: ustar
    1415
    1516      implicit none
     
    203204         zcdv(ig)=zcdv_true(ig)*sqrt(zu2)
    204205         zcdh(ig)=zcdh_true(ig)*sqrt(zu2)
     206         ustar(ig)=sqrt(zcdv_true(ig))*sqrt(zu2)
    205207      ENDDO
    206208
Note: See TracChangeset for help on using the changeset viewer.