source: LMDZ6/trunk/libf/phylmd/ecrad.v1.5.1/radiation_constants.F90 @ 5327

Last change on this file since 5327 was 3908, checked in by idelkadi, 3 years ago

Online implementation of the radiative transfer code ECRAD in the LMDZ model.

  • Inclusion of the ecrad directory containing the sources of the ECRAD code
    • interface routine : radiation_scheme.F90
  • Adaptation of compilation scripts :
    • compilation under CPP key CPP_ECRAD
    • compilation with option "-rad ecard" or "-ecard true"
    • The "-rad old/rtm/ecran" build option will need to replace the "-rrtm true" and "-ecrad true" options in the future.
  • Runing LMDZ simulations with ecrad, you need :
    • logical key iflag_rrtm = 2 in physiq.def
    • namelist_ecrad (DefLists?)
    • the directory "data" containing the configuration files is temporarily placed in ../libfphylmd/ecrad/
  • Compilation and execution are tested in the 1D case. The repository under svn would allow to continue the implementation work: tests, verification of the results, ...
File size: 1.4 KB
Line 
1! radiation_constants.F90 - Constants used in radiation calculations
2!
3! (C) Copyright 2014- ECMWF.
4!
5! This software is licensed under the terms of the Apache Licence Version 2.0
6! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
7!
8! In applying this licence, ECMWF does not waive the privileges and immunities
9! granted to it by virtue of its status as an intergovernmental organisation
10! nor does it submit to any jurisdiction.
11!
12! Author:  Robin Hogan
13! Email:   r.j.hogan@ecmwf.int
14!
15
16module radiation_constants
17
18  use parkind1, only : jprb
19!  use yomcst,   only : RPI, RSIGMA, RG, RD, RMV, RMO3, RHPLA
20
21  implicit none
22  public
23
24  ! Rename some constants from their cryptic IFS names
25  real(jprb), parameter :: Pi                 = 3.14159265358979323846_jprb
26  real(jprb), parameter :: AccelDueToGravity  = 9.80665_jprb! m s-2
27  real(jprb), parameter :: StefanBoltzmann    = 5.67037321e-8_jprb ! W m-2 K-4
28  real(jprb), parameter :: DensityLiquidWater = 1000.0_jprb ! kg m-3
29  real(jprb), parameter :: DensitySolidIce    = 916.7_jprb  ! kg m-3
30  real(jprb), parameter :: GasConstantDryAir  = 287.058_jprb! J kg-1 K-1
31  real(jprb), parameter :: PlanckConstant     = 6.6260695729e-34_jprb ! J s
32  real(jprb), parameter :: BoltzmannConstant  = 1.380648813e-23_jprb ! J K-1
33  real(jprb), parameter :: SpeedOfLight       = 299792458.0_jprb ! m s-1
34
35end module radiation_constants
Note: See TracBrowser for help on using the repository browser.