Changeset 3669


Ignore:
Timestamp:
Mar 5, 2025, 2:13:17 PM (4 months ago)
Author:
afalco
Message:

Pluto: add C2H4 as gas.
AF

Location:
trunk/LMDZ.PLUTO/libf/phypluto
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/calc_cpp_mugaz.F90

    r3353 r3669  
    6363               mugaz_c = mugaz_c + 30.07*gfrac(igas)
    6464            elseif(igas.eq.igas_C2H2)then
    65                ! C2H2 http://encyclopedia.airliquide.com/Encyclopedia.asp?GasID=1
     65               ! C2H2 https://encyclopedia.airliquide.com/fr/acetylene
    6666               mugaz_c = mugaz_c + 26.04*gfrac(igas)
    6767            ! GG MODIF JAN2019
     68            elseif(igas.eq.igas_C2H4)then
     69               mugaz_c = mugaz_c + 28.054*gfrac(igas)
    6870            elseif(igas.eq.igas_CO)then
    6971               mugaz_c = mugaz_c + 28.01*gfrac(igas)
     
    9193            ! ignore variable gas in cpp calculation
    9294         else
    93             ! all values at 300 K from Engineering Toolbox
     95            ! values at minimum temperature from Engineering Toolbox
     96            ! (better for Pluto)
    9497            if(igas.eq.igas_CO2)then
    95                !cpp_c   = cpp_c   + 0.744*gfrac(igas) ! @ ~210 K (better for
    96                !Mars conditions)
    97                cpp_c   = cpp_c   + 0.846*gfrac(igas)*44.01/mugaz_c
     98            ! https://www.engineeringtoolbox.com/carbon-dioxide-d_974.html
     99               cpp_c   = cpp_c   + 0.709*gfrac(igas)*44.01/mugaz_c
    98100            elseif(igas.eq.igas_N2)then
    99                cpp_c   = cpp_c   + 1.040*gfrac(igas)*28.01/mugaz_c
     101               cpp_c   = cpp_c   + 1.039*gfrac(igas)*28.01/mugaz_c
    100102            elseif(igas.eq.igas_H2)then
    101103               cpp_c   = cpp_c   + 14.31*gfrac(igas)*2.01/mugaz_c
     
    109111               cpp_c   = cpp_c   + 1.003*gfrac(igas)*34.08/mugaz_c ! from wikipedia...
    110112            elseif(igas.eq.igas_CH4)then
    111                cpp_c   = cpp_c   + 2.226*gfrac(igas)*16.04/mugaz_c
     113               cpp_c   = cpp_c   + 2.087*gfrac(igas)*16.04/mugaz_c
    112114            elseif(igas.eq.igas_NH3)then
    113115               cpp_c   = cpp_c   + 2.175*gfrac(igas)*17.03/mugaz_c
    114116               print*,'WARNING, cpp for NH3 may be for liquid'
    115117            elseif(igas.eq.igas_C2H6)then
    116                ! C2H6
    117118               ! http://encyclopedia.airliquide.com/Encyclopedia.asp?GasID=28
    118                cpp_c   = cpp_c   + 1.763*gfrac(igas)*30.07/mugaz_c
     119               cpp_c   = cpp_c   + 1.535*gfrac(igas)*30.07/mugaz_c
    119120            elseif(igas.eq.igas_C2H2)then
    120                ! C2H2
    121                ! http://encyclopedia.airliquide.com/Encyclopedia.asp?GasID=1
     121               ! https://encyclopedia.airliquide.com/fr/acetylene
    122122               cpp_c   = cpp_c   + 1.575*gfrac(igas)*26.04/mugaz_c
    123123            !!!!! MODIF GG JAN 2019  (check source values !!)
     124            elseif(igas.eq.igas_C2H4)then
     125               ! https://www.engineeringtoolbox.com/ethylene-ethene-C2H4-properties-d_2104.html
     126               cpp_c   = cpp_c   + 1.53*gfrac(igas)*28.054/mugaz_c
     127            !!!!! MODIF GG JAN 2019  (check source values !!)
    124128            elseif(igas.eq.igas_CO)then
    125                cpp_c   = cpp_c   + 1.0425*gfrac(igas)*28.01/mugaz_c
     129               cpp_c   = cpp_c   + 1.039*gfrac(igas)*28.01/mugaz_c
    126130            elseif(igas.eq.igas_OCS)then
    127131               cpp_c   = cpp_c   + 0.6909*gfrac(igas)*60.07/mugaz_c
  • TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/gases_h.F90

    r3184 r3669  
    55!======================================================================C
    66!
    7 !     gases_h   
     7!     gases_h
    88!
    99!     A F90-allocatable version for gases.h -- AS 12/2011
     
    3030      integer :: igas_NH3
    3131      integer :: igas_C2H2
     32      integer :: igas_C2H4
    3233      integer :: igas_C2H6
    3334!! GG MODIF Jan 2019
    3435      integer :: igas_OCS
    3536      integer :: igas_HCl
    36       integer :: igas_HF           
     37      integer :: igas_HF
    3738!!$OMP THREADPRIVATE(ngasmx,vgas,gnom,gfrac,&
    3839!       !$OMP igas_H2,igas_He,igas_H2O,igas_N2,igas_CO,igas_N2,&
    39 !       !$OMP igas_O2,igas_SO2,igas_H2S,igas_CH4,igas_NH3,igas_C2H2,igas_C2H6)
     40!       !$OMP igas_O2,igas_SO2,igas_H2S,igas_CH4,igas_NH3,igas_C2H2,igas_C2H4,igas_C2H6)
    4041! The saved variables here are not OMP THREADPRIVATE because loaded by
    4142! the OMP master only (see su_gases.F90) and thus shared by all threads
  • TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/su_gases.F90

    r3184 r3669  
    88
    99  !==================================================================
    10   !     
     10  !
    1111  !     Purpose
    1212  !     -------
    1313  !     Load atmospheric composition info
    14   !     
     14  !
    1515  !     Authors
    1616  !     -------
    1717  !     R. Wordsworth (2011)
    1818  !     Allocatable arrays by A. Spiga (2011)
    19   !     
     19  !
    2020  !==================================================================
    2121
     
    5454
    5555        ! find variable gas (if any)
    56         if(gfrac(igas).eq.-1.0)then 
     56        if(gfrac(igas).eq.-1.0)then
    5757           if(vgas.eq.0)then
    5858              vgas=igas
     
    109109           igas_C2H2=igas
    110110           count=count+1
    111         !! GG MODIF 11 Jan 2019
    112        elseif (trim(gnom(igas)).eq."OCS") then
     111        elseif (trim(gnom(igas)).eq."C2H4") then
     112           igas_C2H4=igas
     113           count=count+1
     114        elseif (trim(gnom(igas)).eq."OCS") then
    113115           igas_OCS=igas
    114116           count=count+1
    115        elseif (trim(gnom(igas)).eq."HCl") then
     117        elseif (trim(gnom(igas)).eq."HCl") then
    116118           igas_HCl=igas
    117119           count=count+1
    118        elseif (trim(gnom(igas)).eq."HF") then
     120        elseif (trim(gnom(igas)).eq."HF") then
    119121           igas_HF=igas
    120122           count=count+1
Note: See TracChangeset for help on using the changeset viewer.