These are a series of programs that show how Cloudy can be used as a subroutine of other, larger, programs. When I use it in this way I first create a library, compile the new main program, and link the main program to this library.
Each sample program includes the header files cddefines.h and cddrive.h. These are included in the Cloudy source directory. You will need to alter these lines so that they point to where the files live on your machine or you will need to include the path to these files on your compile line.
collion - This is an example of collisional ionization
comp4, This checks that the code is properly initialized when it sets up. Two different models are computed twice, and the output goes to file1.txt (the first pair) and file2.txt (the second). These files should be exactly the same.
hazy_coolingcurve This is an example of a collisional ionization calculation in which only the temperature is varied.
hazy_kmt - This redoes the calculation originally done by Krolick, McKee, & Tarter (1981; ApJ, 249, 422),
hizlte - a high metallicity gas in thermodynamic equilibrium.
mpi This is my main routine for running large grids on our HP cluster. It uses MPI to place a grid point on each processor.
vary_nete Both the electron density and temperature are varied over a broad range and several [O III] lines are predicted.
varyn This is a series of calculations in which the density is varied, and the intensities of some [OII] lines relative to [OII] 3727 are printed.
Visit www.nublado.org for details and latest updates.
Good luck,
Gary J. Ferland
last modified 28 February, 2007