next up previous contents
Next: Mass Ratio q1.0: Equal-mass Up: Corotating Binaries Previous: Mass Ratio q=1.0: Equally-spaced   Contents


Mass Ratio q=1.0: Previously Calculated Single Star Models

To construct a $q=1.0$ corotating binary configuration based on a previously computed single star model, you can use the ``setup2cr'' subroutine, which is called by setting the three letter code in sph.init to ``2cr''.

The particle positions and other important parameters are read in from a file called ``pos.sph'', which you will need to create. We have supplied the code to make an executable called ``b2pos'', which will write this file for you. Based on responses to two questions, it can convert binary output files, in the form ``out012.sph'' (or any other 3-digit number) or ``restart.sph'' into the ASCII pos.sph file. For more on file I/O, please see Sec. 5.

Note that the parameter ``N'' used to initialize the run is essentially ignored, since the number of particles is set by the configuration read in from the files.



Joshua Faber 2003-06-28