Changes between Version 3 and Version 4 of doc/tec/radiation


Ignore:
Timestamp:
May 4, 2015 11:46:04 AM (9 years ago)
Author:
maronga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/radiation

    v3 v4  
    11= Radiation models =
    2 PALM offer a built-in simple and fast radiation model for clear sky conditions. Moreover, an interface allows for using the RRTMG code.
     2PALM offer a built-in simple and fast radiation model for clear sky conditions. Moreover, an interface allows for using the [http://rtweb.aer.com/rrtm_frame.html RRTMG] code.
     3
     4== Constant radiation ==
     5Not really being a radiation model, this option allows for prescribing the net radiation at the surface (e.g. as driving for the [wiki;doc/tec/lsm land surface model]). The user can use the user interface in order to modify the net radiation during the run. For more information, see [wiki:doc/app/radpar#net_radiation].
    36
    47
    58== Simple clear sky radiation ==
    6 Coming soon.
     9A simple clear sky radiation model can be used for simulations without clouds and highly-parametrized radiation fluxes.
    710
    811
    912== RRTMG ==
    10 Coming soon.
     13Since r1585 PALM can be used in combination with the [http://rtweb.aer.com/rrtm_frame.html RRTMG] radiation code. The RRTMG source code is shipped along with PALM, but it is not part of the model (this eans that RRTMG is put under a difference licence than PALM, which e.g. forbids reselling of the code). Unlike most embedded modules in PALM, the RRTMG is thus used as external library and linked to the default PALM code. This in turn means that RRTMG must be installed in advance on the host where PALM shall be executed. The next section explains the installation of RRTMG and how to use it in PALM.
     14
     15=== Installation ===
     16The RRTMG source code for creating an external library can be found under [source:palm/trunk/LIB/rrtmg trunk/LIB/rrtmg]. It is accompanied by an installation script called [source:palm/trunk/LIB/rrtmg/install_rrtmg install_rrtmg]. In order to install RRTMG, perform the following steps:
     17
     181. Copy all files from [source:palm/trunk/LIB/rrtmg trunk/LIB/rrtmg] to the host where PALM/RRTMG shall be executed.
     192. Open [source:palm/trunk/LIB/rrtmg/install_rrtmg install_rrtmg] and modify the following lines:
     20{{{
     21 compiler_name="mpif90"
     22 fopts="-fltconsistency -O3 -cpp -r8 -nbs -convert little_endian -I /muksoft/packages/netcdf/4_intel/include"
     23 fopts_trace="-fpe0 -C -check nooutput_conversion -debug -traceback -g -w -xT -O0 -ftz -fno-alias -no-prec-div -no-prec-sqrt -ip -nbs -convert little_endian -diag-disable 8290,8291 -I /muksoft/packages/netcdf/4_intel/include"
     24 install_path="$HOME/palm/rrtmg"
     25 compile_static=true
     26 compile_shared=true
     27 compile_static_debug=false
     28 compile_shared_debug=false
     29}}}
     30For a proper configuration, see your [browse:palm/trunk?order=name#SCRIPTS .mrun.config] file for the respective computer architecture where RRTMG shall be installed. fopts_trace is only required if you want to have debug options enabled.
     31Use the switch parameters  compile_static=true, compile_shared=true, compile_static_debug=false, and compile_shared_debug=false to set flags for compilation of RRTMG as static library, shared library (recommended), static library with debug options (recommended), and shared library with debug options, respectively. Save your changes.
     32
     33
     343. Execute [source:palm/trunk/LIB/rrtmg/install_rrtmg install_rrtmg] with option "-p", which defines the path where the library shall be installed.
     35
     364. Open your .mrun.config file and add the following line to the list of input files:
     37rrtmg_lw.nc              in:locopt     d3#:d3f  $base_data/$fname/INPUT    _rlw nc
     38rrtmg_sw.nc              in:locopt     d3#:d3f  $base_data/$fname/INPUT    _rsw nc
     39RAD_SND_DATA             in:locopt     d3#:d3f  $base_data/$fname/INPUT    _rsnd nc