To extract the ali package files do:

% tar xzf ali_package.tar.gz

and it will create three directories: ali, prf and lvg/dat The first will
contain the ali sources and standard input file bernes.inp. The second directory
prf contains the prf program that will generate spectra in the form of FITS
scans using a outfile in the ali directory. The prf standard input file
bernes.inp is also provided. The third directory lvg/dat contains the molecular
input files. An awk script to convert Leiden-type data files is also provided.

To compile ali:

% cd ali

edit the makefile Makefile if needed. Here the number of threads are 4.
Depending on processor you may want to extend this. Compile using

% make

the ali program should have been compiled. Test it with (not using the suffix
.inp)

% ./ali bernes

This will create a log file bernes.log and file containing radial Tex and
shell-taus: bernes.rad. In addition, there is a gnuplot script bernes.gp for
plotting the CO 1-0 and 2-1 radial excitation temperature profiles:

% gnuplot bernes.gp

Running ali will also create a file bernes.prf which is used by the spectral
line profile calculation prf. Compile prf:

% cd ../prf
% make

Generate spectra:

% ./prf bernes

spectra will appear as single.dish FITS files in the prf/FITS directory.


There is also input files for a cooling calculation case for IRC+10216. The code
will also determine the radial kinetic temperature so that it is consistent with
the cooling/heating at different radii. The file is irc_cool.inp. Before doing
cooling calculations one has to specify -DCOOLING in the Makefile and recompile
the package by:

% make clean
% make

The cooling only works for circumstellar envelopes with a constant expansion
velocity. See also the parameters in the function DostGasHeating() in file
adjust.c. After successful completion a file called .tkin is saved and can be
used as indata for the kinetic temperature. Normally one would like to rename
it:

% mv .tkin .tkin_irc_cool

and then use it as indata by entering the new filename at the temperature row in
the ali *.inp file. The prf program doesn't need to be changed when including
cooling.

cheers/per

per.bergman@chalmers.se

