SOLAR
Code used in our papers dealing with planetary formation.
Link to the code: solar-4.1.tgz.
README file
/* Planetary system formation code developed by A. Balaz (antun [at] scl [dot] rs)
Address: Institute of Physics, Belgrade, Serbia and Montenegro
Scientific Computing Laboratory, http://www.scl.rs/solar/
Public use and modification of this code is allowed providing the appropriate papers are properly acknowledged. The author would be grateful for all information and/or comments regarding the use of the code.
*/
ABOUT SOLAR
This is the distribution of SOLAR, v. 4.1
It is a simulation of planetary formation trough gravitational accretion. It is based on a simple interaction criterion, depending on a single parameter K. The second basic quantity is N, initial number of dust particles. Output consists of radii, masses and spins of n final particles (planets).
Distribution consists of the following files:
README.TXT | this file |
main.c | main program |
util.c | utilities for the main program |
solar.c | accretion function |
rho.c | initial mass distribution |
nr_util.c | Numerical Recipes routines |
Makefile | makefile |
rho1.c - rho8.c | different initial mass distributions; if you want to use e.g. rho3.c instead of current rho.c, just do 'cp rho3.c rho.c' and recompile the program |
rhos.txt | description of distributions rho1.c - rho8.c |
The program was tested on SGI O2 and O2000 machines with native SGI's cc and Linux, kernels 2.0 - 2.6 with gcc.
INSTALLATION
1) Unpack the source:
tar -xvzf solar-4.1.tgz
or, if you get some complaints:
gunzip solar-4.1.tgz tar -xvf solar-4.1.tar
2) Go to solar-4.1 directory:
cd solar-4.1
3) Read the README.TXT file.
4) Change the Makefile to suite your needs, i.e. choose the compiler options properly.
5) Compile and install the program:
make
make install
6) If you want to change the initial mass distribution, e.g. to replace existing rho.c with rho3.c:
cp rho3.c rho.c
make clean
make
make install
USING SOLAR
On the command line type
./solar
or
./solar -h
for details.