Ignore:
Timestamp:
Jan 28, 2026, 3:06:52 PM (40 hours ago)
Author:
mmaurice
Message:

Generic PCM

Introduce molecular viscosity module. Add callconduc and callmolvis
flags to call conduction and molecular viscosity, respectively. Change
phitop in conduction to phitop_conduc (there is also phitop_molvis now).
Move thermal conductivity lambda to conc_mod.F90.

MM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/conduction.F90

    r3235 r4033  
    99   
    1010      use comcstfi_mod, only: r, cpp, mugaz
    11       use callkeys_mod, only: phitop,zztop,a_coeff,s_coeff,force_conduction
     11      use callkeys_mod, only: phitop_conduc,zztop,a_coeff,s_coeff,force_conduction
     12      use conc_mod,     only: lambda
    1213      use gases_h
    1314
     
    4849      INTEGER :: i,ig,l,igas,kgas
    4950      REAL :: alpha(ngrid,nlayer)
    50       REAL :: lambda(ngrid,nlayer)
    5151      REAL :: muvol(ngrid,nlayer)   ! kg.m-3
    5252      REAL :: C(ngrid,nlayer)
     
    111111              molar_frac(:,:,igas) = gfrac(igas)
    112112              here(igas) = .true.
     113            elseif(igas.eq.igas_CO2) then
     114              !Interpolated from Hurly et al., (2007)
     115              !valid between 20 and 1000 K (max 3 percent of error)
     116              akk(igas) = 3.072e-4
     117              skk(igas) = 0.69
     118              molar_mass(igas) = 44.010e-3
     119              akk_visc(igas) = 4.5054e-7
     120              skk_visc(igas) = 0.6658
     121              molar_frac(:,:,igas) = gfrac(igas)
     122              here(igas) = .true.
    113123              ! Add more molecules here and the reference PLEASE!
    114124            else
     
    205215                   * (1-D(:,nlayer-1))
    206216      C(:,nlayer)  =C(:,nlayer-1)+zt(:,nlayer-1)-zt(:,nlayer)
    207       C(:,nlayer)  =(C(:,nlayer)*lambda(:,nlayer)+phitop) &
     217      C(:,nlayer)  =(C(:,nlayer)*lambda(:,nlayer)+phitop_conduc) &
    208218                   / den(:,nlayer)
    209219
Note: See TracChangeset for help on using the changeset viewer.