Some software I've written
On this webpage, you can find some software that I've written for my research. I hope you find some of that stuff helpfull. If you have problems with the programs or find a bug, please tell me.
IOfunctions 1.0
This package provides some reading and writing functions of different N-body formats with an easy interface: a FILE object and a TIPSY_STRUCTURE as defined in IOfunctions.h. This allows you to easily read/write from/to a file or stream like stdin/stdout. So far, the following formats are supported: Tipsy (ascii, binary and standard binary (XDR)) and Gadget binary. You probably find these reading and writing functions helpfull for some self-written analysis tools where you have to read in and manipulate data from N-body simulations.
Download IOfunctions-1.0.tar into the directory you wish e.g. ~/programs/. Change to that directory e.g. cd ~/programs/ and type tar -xvf IOfunctions-1.0.tar. You can now use these functions by linking the files to other directories where you for example have a self-written program.
Conversiontools 1.0
With the simple reading and writing functions from the IOfunctions package, there comes for "free" a whole bunch of conversion tools. Hence, I put together the following conversion tools:
- ts2ta: converts from Tipsy standard binary format to Tipsy ascii format
- ts2tb: converts from Tipsy standard binary format to Tipsy binary format
- ts2gb: converts from Tipsy standard binary format to Gadget binary format
- ta2ts: converts from Tipsy ascii format to Tipsy standard binary format
- tb2ts: converts from Tipsy binary format to Tipsy standard binary format
- gb2ts: converts from Gadget binary format to Tipsy standard binary format
- ts2tsdpp: converts form Tipsy standard binary format with single precision positions to Tipsy standard binary format with double precision positions
- tsdpp2ts: converts form Tipsy standard binary format with double precision positions to Tipsy standard binary format with single precision positions
The input file comes always from the stdin stream and the output goes to stdout e.g. ts2gb < filename.std > filename.dat converts the Tipsy standard binary format file filename.std to Gadget binary format. An output containing time, total number of particles, number of gas, dark and star particles is sent to the stderr stream. All other conversions can be done by piping e.g. tb2ts < filename.bin | ts2gb > filename.dat converts the Tipsy binary format file filename.bin to Gadget binary format.
The conversiontools package needs the IOfunctions package you can also find on this page. Please install that before. Then download conversiontools-1.0.tar into the directory you wish e.g. ~/programs/. Change to that directory e.g. cd ~/programs/ and type tar -xvf conversiontools-1.0.tar. A subdirectory conversiontools was created. Change to that directory with cd conversiontools and type make. This will create the programs listed above.
Halogen 1.0
Halogen is a tool to generate multi-mass initial conditions of spherical structures models for N-body simulations. More details can be found in the paper: Multi-mass spherical structure models for N-body simulations.
Halogen needs the IOfunctions package you can also find on this page. Please install that before. Then download halogen-1.0.tar into the directory you wish e.g. ~/programs/. Change to that directory e.g. cd ~/programs/ and type tar -xvf halogen-1.0.tar. A subdirectory halogen was created. Change to that directory with cd halogen and type make. This will create the program.
Halogen4MUSE
A stripped-down version of Halogen was developed during the Modest 7a workshop in Split, Croatia, in August 2007. This version can be used for generating single-mass initial conditions and can be found on the AMUSE project webpage (the successor project of MUSE).