| 1 |
|
| 2 |
************************************************* |
| 3 |
* Lorene codes for rotating relativistic stars * |
| 4 |
************************************************* |
| 5 |
|
| 6 |
$Id: README,v 1.7 2010/02/01 17:58:13 e_gourgoulhon Exp $ |
| 7 |
|
| 8 |
|
| 9 |
1/ Description of the various codes |
| 10 |
================================ |
| 11 |
|
| 12 |
rotstar: Code for rigidly rotating stars in GR |
| 13 |
(quasi-isotropic gauge) |
| 14 |
** OBSOLETE : use Lorene/Codes/Nrotstar/nrotstar instead ** |
| 15 |
|
| 16 |
rotdiff: Code for differentially rotating stars in GR |
| 17 |
(quasi-isotropic gauge) |
| 18 |
|
| 19 |
rotseq: Code for computing sequences of either rigidly or |
| 20 |
differentially rotating stars in GR (quasi-isotropic gauge) |
| 21 |
|
| 22 |
rotstar_dirac: Code for rigidly rotating stars in GR in the Dirac gauge. |
| 23 |
|
| 24 |
rotstar_dirac_diff: Code for differentially rotating stars in GR |
| 25 |
in the Dirac gauge. |
| 26 |
|
| 27 |
2/ Compilation |
| 28 |
=========== |
| 29 |
|
| 30 |
Typing |
| 31 |
|
| 32 |
gmake name_of_main_code |
| 33 |
|
| 34 |
where name_of_main_code = rotstar, rotdiff, rotseq or rotstar_dirac, |
| 35 |
rotstar_dirac_diff will produce the executable in a non-optimized version |
| 36 |
for debugging purposes. To get an optimized version for production purposes |
| 37 |
type instead |
| 38 |
|
| 39 |
gmake -f Makefile_O2 name_of_main_code |
| 40 |
|
| 41 |
You can clear everything by |
| 42 |
|
| 43 |
gmake uninstall |
| 44 |
|
| 45 |
|
| 46 |
3/ Input parameters |
| 47 |
================ |
| 48 |
|
| 49 |
rotstar / rotstar_dirac / rotstar_dirac_diff: |
| 50 |
----------------------- |
| 51 |
|
| 52 |
The code rotstar needs two input files: |
| 53 |
|
| 54 |
parrot.d : parameters of the computation |
| 55 |
par_eos.d : description of the equation of state |
| 56 |
|
| 57 |
Templates files are provided in the directory Parameters. For instance |
| 58 |
to compute a relativistic polytropic (gamma=2) star rotating at the |
| 59 |
Keplerian limit, do |
| 60 |
|
| 61 |
cp Parameters/Kepler_GR/parrot.d . |
| 62 |
cp Parameters/Kepler_GR/par_eos.d . |
| 63 |
|
| 64 |
Sample parameters (parrotdiff.d, par_eos.d) for rotstar_dirac_diff are |
| 65 |
stored under the directory of "Parameters/Rotstar_dirac_diff". Since |
| 66 |
rotdiff and rotstar_dirac_diff require the same parameters, the sample |
| 67 |
parameters are useful to compare the numerical difference between two |
| 68 |
codes. |
| 69 |
|
| 70 |
Note: rotstar_dirac and rotstar_dirac_diff runs only for relativistic models. |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
rotseq: |
| 75 |
------ |
| 76 |
The code rotseq needs two input files: |
| 77 |
|
| 78 |
parrotseq.d : parameters of the computation (includes the definition |
| 79 |
of the sequence) |
| 80 |
par_eos.d : description of the equation of state |
| 81 |
|
| 82 |
Templates files are provided in the directory Parameters/Rotseq. |
| 83 |
To use them, simply type |
| 84 |
|
| 85 |
cp Parameters/Rotseq/parrotseq.d . |
| 86 |
cp Parameters/Rotseq/par_eos.d . |
| 87 |
|
| 88 |
A constant baryon number sequence can be constructed either |
| 89 |
|
| 90 |
(i) either by varying the central enthalpy (parameters |
| 91 |
[entc_min, entc_max] of the input file parrotseq.d); the code then |
| 92 |
automatically adjusts the rotation frequency to get a fixed baryon |
| 93 |
mass |
| 94 |
|
| 95 |
(ii) or by varying the rotation frequency (parameters |
| 96 |
[freq_min_si,freq_max_si] of the input file parrotseq.d); |
| 97 |
the code then automatically adjusts the central enthalpy to get |
| 98 |
a fixed baryon mass |
| 99 |
|
| 100 |
The choice of the type of sequence is performed by setting |
| 101 |
|
| 102 |
-- entc_min != entc_max and freq_min_si = freq_max_si for |
| 103 |
a sequence of type (i) |
| 104 |
-- entc_min = entc_max and freq_min_si != freq_max_si for |
| 105 |
a sequence of type (ii) |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
4/ Running |
| 110 |
======= |
| 111 |
|
| 112 |
Simply type |
| 113 |
|
| 114 |
rotstar / rotstar_dirac / rotstar_dirac_diff |
| 115 |
|
| 116 |
or |
| 117 |
rotseq |
| 118 |
|
| 119 |
The output files like convergence.d can be visualized via xmgrace. |