Read me file for the sample programs


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 this to the library. 

Each sample program includes the header files cddefines.h and cddrive.h.  These are included in the Cloudy source directory.  The main programs have explicit paths to where these files live on my computer.  You will need to alter these lines so that they point to where the files live on your machine.


hazy_coolingcurve.c

This is an example of a 1-D calculation.  The gas temperature is varied over a very broad range and photoionization is turned off.  This is a model in collisional equilibrium.  A single zone is computed and the temperature and cooling are printed.  This was used to create a figure in Hazy.  The calculation is fast, taking several minutes on my workstation.

This figure shows a plot of the results from this test.  The x-axis is the log of the gas temperature.  The y-axis is the cooling divided by the square of the density.


vary_nete.c

This is an example of a 2D calculation.  Both the electron density and temperature are varied over a broad range and several [O III] lines are predicted.

This figure shows the [O III] 4363 / 5007 ratio as a function of density and temperature, as output from this program.


mpi.c

This is my main routine for running large grids on our HP cluster.  It uses MPI to place a grid point on each processor.


If you find a problem

Cloudy should run on all platforms without errors.  Botched asserts or outright crashes should never happen. I can't fix it if I don't know it's broken.  Please let me know of any problems. My email address is gary@pa.uky.edu


Visit http://nublado.org for details and latest updates. 

Good luck,
Gary J. Ferland