Ignore:
Timestamp:
Jan 9, 2018, 11:53:29 AM (7 years ago)
Author:
emillour
Message:

Mars GCM:
Updated the calculation of the dissociation and ionization
branching ratios, using the values in the Schunk and Nagy book.
New datafiles *branchingratio_schunkandnagy2000_param.dat must be loaded
for the "EUVDAT" subdirectory of the standard "datadir" directory.
Main changes are:

  • param_v4_h.F90 -> New definition for the O2 ionization branching ratio
  • param_read_e107.F -> Read the new files containing the S&N branching ratios
  • paramfoto_compact.F -> Mainly cleaning of the code and the comments.

Also correction of a bug affecting the calculation of CO losses

  • chemthermos.F90 -> Small modification to add the possibility of including

NO and O2 nightglow rates to the outputs

  • calchim.F90 and calchim_asis.F90 -> account for change in arguments in

calls to chemthermos
FGG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/calchim.F90

    r1266 r1888  
    166166      real :: surfdust1d(nlayer)   ! Dust surface area (cm2/cm3)
    167167      real :: jo3(nlayer)          ! Photodissociation rate O3->O1D (s-1)
     168      real :: em_no(nlayer)        !  NO nightglow emission rate
     169      real :: em_o2(nlayer)        !  O2 nightglow emission rate     
    168170
    169171!     for output:
     
    172174      parameter (output = .true.)
    173175      real :: jo3_3d(ngrid,nlayer)  ! Photodissociation rate O3->O1D (s-1)
     176      real :: emission_no(ngrid,nlayer) !NO emission rate
     177      real :: emission_o2(ngrid,nlayer) !O2 emission rate
    174178
    175179!=======================================================================
     
    665669         if (thermochem) then
    666670            call chemthermos(ig,nlayer,lswitch,chemthermod,zycol,ztemp,&
    667                              zdens,zpress,zlocal,szacol,ptimestep,zday)
     671                             zdens,zpress,zlocal,szacol,ptimestep,zday,&
     672                             em_no,em_o2)
     673            do l=1,nlayer
     674               emission_no(ig,l)=em_no(l)
     675               emission_o2(ig,l)=em_o2(l)
     676            enddo
    668677         end if
    669678
     
    715724            call writediagfi(ngrid,'jo3','j o3->o1d',    &
    716725                             's-1',3,jo3_3d(1,1))
     726            call writediagfi(ngrid,'emission_no',        &
     727                 'NO nightglow emission rate','cm-3 s-1',3,emission_no)
     728            call writediagfi(ngrid,'emission_o2',        &
     729                 'O2 nightglow emission rate','cm-3 s-1',3,emission_o2)
     730
    717731           if (callstats) then
    718732              call wstats(ngrid,'jo3','j o3->o1d',       &
    719733                          's-1',3,jo3_3d(1,1))
     734              call wstats(ngrid,'emission_no',           &
     735                   'NO nightglow emission rate','cm-3 s-1',3,emission_no)
     736              call wstats(ngrid,'emission_o2',           &
     737                   'O2 nightglow emission rate','cm-3 s-1',3,emission_o2)
    720738           endif
    721739         end if ! of if (ngrid.gt.1)
Note: See TracChangeset for help on using the changeset viewer.