Radex is a computer program to calculate the strengths of atomic
and molecular lines from interstellar clouds which are assumed to be
homogeneous. Everyone is free to use the program, provided that
publications
make a reference to our paper: Van der Tak, F.F.S., Black, J.H.,
Schöier, F.L., Jansen, D.J., van Dishoeck, E.F., 2007, A&A
468, 627-635.
This web page describes the off-line version of RADEX; click
here to go to the on-line version.
Jump to: introduction
installation running Radex
molecular data
input output files
scripting Radex revision
history
> gunzip radex_public.tar.gz
> tar xf radex_public.tar
This creates a directory Radex with subdirectories src,
bin, and data.
-- go to the src subdirectory
-- edit the file Makefile to select a Fortran compiler (g77 /
gfortran / ifort / ...)
-- edit the file radex.inc to locate the molecular data area,
to customize the name of the log file,
and to select a geometry for the escape probability
> cd Radex/src
> make
> cd
> set path = ( $path $HOME/Radex/bin )
(To proceed within the same shell, follow this command by
"rehash".)
> cd ..
> radex < example.inp
> diff example.out standard.out
The only difference between the two files should be the Radex version.
> cd ..
> radex
Jump to: introduction
installation running Radex
molecular data
input output files
scripting Radex revision
history
| hco+.dat | file containing molecular data (see here) |
| hco+.rdx | file to write output to (will overwrite) |
| 50 500 | output frequency range (GHz; 0 0 means unlimited) |
| 20 | kinetic temperature (K) |
| 2 | number of collision partners (see under Details) |
| H2 | first collision partner |
| 10000 | density of first collision partner (cm-3) |
| e | second collision partner |
| 1 | density of second collision partner (cm-3) |
| 2.73 | temperature of background radiation (K; see under Details) |
| 1e12 | molecular column density (cm-2) |
| 2.0 | line width (km/s) |
| 1 (or 0) | run another calculation (or not) |
Collision partners: A maximum of seven collision partners may
be defined: H2, p-H2, o-H2, electrons,
H (atoms), He, and H+. Make sure that the data file contains
collisional rate coefficients for all partners for which densities are
given here. In most cases, using H2 as only partner is a
good default. When H2 is given as collision partner for CO,
a thermal
average of ortho and para H2 is taken.
Jump to: introduction
installation running Radex
molecular data
input output files
scripting Radex revision
history
Files with molecular data (term energies, statistical weights, Einstein coefficients, and rate coefficients for collisional deexcitation) must be placed in the subdirectory Radex/data. For many molecules of astrophysical interest, the LAMDA database provides data files in the required format. For molecules for which no collisional data exist, users need to make their own files. The databases at NASA-JPL and in Cologne provide spectroscopic data for many molecules. For collisional rate coefficients, consult NASA-GISS for the calculations of Sheldon Green, or the literature in the BASECOL and CASSIS databases for other work. Unfortunately, collisional data do not exist for all molecules of (potential) astrophysical interest. If you know about calculations that are not in the LAMDA database, please let us know!
The public distribution of Radex contains one example file (hco+.dat) in the data directory. If you need to make your own file, here is a detailed description of the required file format. Note that the same files are used by the Monte Carlo radiative transfer program Ratran. The format can be used for all molecules, whether linear (HCO+) or not (H2O). The lines that start with an exclamation mark (!) are not read by the program.
% Lines 1 - 2: molecule name
% Lines 3 - 4: molecular weight (a.m.u.)
% Lines 5 - 6: number of energy levels (NLEV)
% Lines 7 - (7+NLEV): level number, level energy (cm-1),
statistical weight.
These numbers may be followed by additional info such as the quantum
numbers,
which are however not used by the program.
The levels must be listed in order of increasing energy.
% Lines (8+NLEV) - (9+NLEV): number of radiative transitions
(NLIN)
% Lines (10+NLEV - (10+NLEV+NLIN): transition number, upper level,
lower level,
spontaneous decay rate (s-1).
These numbers may be followed by additional info such as the line
frequency
and upper state energy, which is however not used by the program.
% Lines (11+NLEV+NLIN) - (12+NLEV+NLIN): number of collision partners
% Lines (13+NLEV+NLIN) - (14+NLEV+NLIN): collision partner ID and
reference. Valid identifications
are: 1=H2, 2=para-H2, 3=ortho-H2, 4=electrons, 5=H, 6=He, 7=H+.
% Lines (15+NLEV+NLIN) - (16+NLEV+NLIN): number of transitions for
which collisional data exist (NCOL)
% Lines (17+NLEV+NLIN) - (18+NLEV+NLIN): number of temperatures for
which collisional data exist
% Lines (19+NLEV+NLIN) - (20+NLEV+NLIN): values of temperatures for
which collisional data exist
% Lines (21+NLEV+NLIN) - (21+NLEV+NLIN+NCOL): transition number, upper
level, lower level;
rate coefficients (cm3s-1) at each temperature.
RADEX interpolates between rate coefficients in the specified
temperature range. Outside this range, it assumes the collisional
de-excitation rate
coefficients are constant with T, i.e., it uses rate coefficients
specified
at the highest T (400 K in this case) also for higher temperatures, and
similarly
at temperatures below the lowest value (10 K in this case) for which
rate coefficients were specified.
| !MOLECULE |
| HCO+ |
| !MOLECULAR WEIGHT |
| 29.0 |
| !NUMBER OF ENERGY LEVELS |
| 21 |
| !LEVEL + ENERGIES(cm^-1) + WEIGHT + J |
| 1 0.000000000 1.0 0 |
| 2 2.975008479 3.0 1 |
| (etc) |
| 21 624.269300464 41.0 20 |
| !NUMBER OF RADIATIVE TRANSITIONS |
| 20 |
| !TRANS + UP + LOW + EINSTEINA(s^-1) + FREQ(GHz) |
| 1 2 1 4.251e-05 89.18839570 |
| 2 3 2 4.081e-04 178.37481404 |
| (etc) |
| 20 21 20 4.955e-01 1781.13802857 |
| !NUMBER OF COLL PARTNERS |
| 1 |
| !COLLISIONS BETWEEN |
| 1 H2-HCO+ from Flower (1999) |
| !NUMBER OF COLL TRANS |
| 210 |
| !NUMBER OF COLL TEMPS |
| 12 |
| !COLL TEMPS |
| 10.0 20.0 30.0 50.0 70.0 100.0 150.0 200.0 250.0 300.0 350.0 400.0 |
| !TRANS + UP + LOW + COLLRATES(cm^3 s^-1) |
| 1 2 1 2.6e-10 2.3e-10 2.1e-10 2.0e-10 1.9e-10 1.8e-10 2.0e-10 2.2e-10 2.3e-10 2.5e-10 2.7e-10 2.8e-10 |
| 2 3 1 1.4e-10 1.2e-10 1.1e-10 1.0e-10 9.2e-11 8.8e-11 8.4e-11 8.2e-11 8.1e-11 8.3e-11 8.1e-11 8.5e-11 |
| (etc) |
| 210 21 20 3.7e-10 3.6e-10 3.6e-10 3.5e-10 3.5e-10 3.5e-10 3.8e-10 4.0e-10 4.4e-10 4.7e-10 5.0e-10 5.2e-10 |
Jump to: introduction
installation running Radex
molecular data
input output files
scripting Radex revision
history
The output files from Radex start with a summary of the input parameters, followed by a line-by-line listing of upper state energy (K), frequency (GHz), wavelength (micron), excitation temperature (K), optical depth, peak intensity (K), and line flux (both in K km/s and in erg/s/cm2 units). Here is an example for HCO+ between 50 and 300 GHz.
| * Radex version: | 26jun06 | |||||||
| * Geometry: | Uniform sphere | |||||||
| * Molecular data file: | HCO+ | |||||||
| * T(kin) [K]: | 20.000 | |||||||
| * Total density [cm-3]: | 1.000E+04 | |||||||
| * T(background) [K]: | 2.730 | |||||||
| * Column density [cm-2]: | 1.000E+13 | |||||||
| * Line width [km/s]: | 1.000 | |||||||
| LINE | E_UP | FREQ | WAVEL | T_EX | TAU | TR | FLUX | FLUX |
| |
(K) | (GHz) | (um) | (K) | |
(K) | (K*km/s) | (erg/cm2/s) |
| 1 -- 0 | 4.3 | 89.1884 | 3361.3393 | 4.505 | 4.686E+00 | 1.557E+00 | 1.657E+00 | 1.514E-08 |
| 2 -- 1 | 12.8 | 178.3748 | 1680.6883 | 3.769 | 5.300E+00 | 5.927E-01 | 6.309E-01 | 4.612E-08 |
| 3 -- 2 | 25.7 | 267.5573 | 1120.4795 | 3.724 | 8.856E-01 | 1.789E-01 | 1.905E-01 | 4.698E-08 |
Jump to: introduction
installation running Radex
molecular data
input output files
scripting Radex revision
history
To use Radex to fit model parameters to observational data, or explore parameter space, the best strategy is probably to write a script that makes repeated calls to Radex. The directory Radex/bin contains two examples, written in the Python scripting language:
Jump to: introduction
installation running Radex
molecular data
input output files
scripting Radex revision
history
| 29aug07 | Initial public offering |
| 23apr08 | Added populations and number of
iterations to output file; re-formatted log file |
| 13aug08 |
Made radex_grid script
compatible with 23apr08 changes and fit for molecules with separate ortho/para-H2 collision rates |
| 06oct08 |
Increased maximum number of
collision temperatures to 25; built in checks that such array sizes are not exceeded; defined a maximum number of iterations in radex_column.py script. |
| 20nov08 |
User can now customize the name
of the log file (important to get on-line version running) |
| 18dec08 |
Changed default line width in
radex_column script from 2.73 to 1.0 km/s (a typo). Thanks Matthijs van der Wiel. |