Sunday, June 12, 2011

Star clusters for Celestia

Although Celestia currently can display Globular Clusters, they're individual objects and not composed of discrete Stars.

Long ago, a Celestian calling himself Rassilon wrote a cluster generator. In addition to defining a random collection of stars, it'll define planetary systems around some of them if that's desired. Unfortunately, it hasn't been updated for a long time, and runs only under Windows.

An open-source, scientifically accurate cluster generator, McLuster, is available which uses monte-carlo techniques to define various types clusters of stars. It's intended primarily for generating inputs for the NSTARS family of programs, which are used to study the gravitational development of clusters. For more information about McLuster, see http://www.astro.uni-bonn.de/~akuepper/mcluster/mcluster.html

I've written a Fortran-77 program of my own, called MCL2STC, which translates the output of McLuster into Celestia's STC (STar Catalog) format.

They don't generate any planetary systems, and both programs are controlled by command-line: they don't include a Graphical User Interface.

I've packaged the two programs together and made them available in
http://www.lepp.cornell.edu/~seb/celestia/files/mcl2stc.zip
It's about 1.5MB and expands to about 4MB. It's so large because it includes Cygwin runtime libraries for use under Windows. I've included the f77 source code for mcl2stc, so it can be built under other operating systems. The source code for McLuster is available on the Web site mentioned above.

The picture below shows two types of clusters generated by McLuster, translated by mcl2stc, and displayed by Celestia. The one on the left is about 50 mega-years old, while the smaller one is about 4 giga-years old -- most of its hot, young stars have disappeared, leaving cooler, yellower ones.



In response to the comment about compilation problems: the current version of MCL2STC must be compiled using the older g77 compiler. It is not compatible with either gfortran or g95. A compatible version is being worked on, but won't be available for a while, probably several months.