Ignore:
Timestamp:
Feb 27, 2025, 7:03:20 PM (11 months ago)
Author:
gmilcareck
Message:

Generic PCM:
Cleaning up the code. The gas constant and Avogadro number values
was not the same between the files in the model.
We choose the value recommended by the 2019 revision of the SI.
R=8.314463 J.K-1.mol-1 and NA=6.022141e23 mol-1.
GM

Location:
trunk/LMDZ.GENERIC/libf/phystd/dyn1d
Files:
2 edited

Legend:

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

    r1403 r3663  
    12541254!
    12551255!    The specific gas constant R is related to the universal gas
    1256 !    constant R-bar = 8.31441 J/(mol degrees Kelvin) by the molar mass
     1256!    constant R-bar = 8.314463 J/(mol degrees Kelvin) by the molar mass
    12571257!    M = 18.0152 g/mol:
    12581258!
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F

    r3576 r3663  
    659659      PRINT *,"--> mugaz = ",mugaz
    660660      PRINT *,"--> cpp = ",cpp
    661       r = 8.314511E+0 * 1000.E+0 / mugaz
     661      r = 8.314463E+0 * 1000.E+0 / mugaz
    662662      rcp = r / cpp
    663663
Note: See TracChangeset for help on using the changeset viewer.