You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting_started.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,18 +124,18 @@ If you do not have python3 installed, install it by following the instructions b
124
124
125
125
126
126
## 2. Evolving your first binary
127
-
To start using COMPAS, you will need the python script pythonSubmit.py, which specifies all the program options (physics assumptions, output types) and runs COMPAS in the terminal. Although the primary functionality of COMPAS is to evolve a whole population of binary stars rapidly, for now, let's focus on evolving a single stellar system and examining the detailed output.
127
+
To start using COMPAS, you will need the python script `pythonSubmitDemo.py`, which specifies all the program options (physics assumptions, output types) and runs COMPAS in the terminal. Although the primary functionality of COMPAS is to evolve a whole population of binary stars rapidly, for now, let's focus on evolving a single stellar system and examining the detailed output.
128
128
129
-
To start, change to the `demo` directory:
129
+
To start, change to the `examples/methods_paper_plots/detailed_evolution/` directory:
130
130
131
-
cd $COMPAS_ROOT_DIR/demo
131
+
cd $COMPAS_ROOT_DIR/examples/methods_paper_plots/detailed_evolution/
132
132
133
-
Here, you will find the script pythonSubmitDemo.py for this demo.
133
+
Here, you will find the script `pythonSubmitDemo.py` for this demo.
134
134
135
135
### 2.1 Running COMPAS from a grid file
136
136
In population synthesis, the initial stellar population is usually generated by drawing the primary mass, secondary mass, semi-major axis, and eccentricity from their respective distributions specified in the program options. However, we illustrate COMPAS's ability to specify a grid of initial values for single and binary star evolution using COMPAS's grid functionality.
137
137
138
-
An example grid file, `Grid_demo.txt`, has been included in the `demo` directory. Open it with a text editor to view it:
138
+
An example grid file, `Grid_demo.txt`, has been included in the current `detailed_evolution` directory. Open it with a text editor to view it:
139
139
140
140
# Demo BSE Grid file
141
141
@@ -144,7 +144,7 @@ An example grid file, `Grid_demo.txt`, has been included in the `demo` directory
144
144
145
145
It should be clear that this grid file specifies a binary of zero-age main sequence stars with primary mass 35.4 Msol, secondary mass 29.3 Msol, metallicity 0.001, zero eccentricity, and semi-major axis of 1.02 AU. For more detailed documentation of COMPAS's grid functionality for both single and binary stars, please see [Specifications](./COMPAS_Doc.pdf).
146
146
147
-
To tell the python submit script to take its input from this grid file, you need to open `pythonSubmit.py` with a text editor, and specify the grid filename `grid_filename = 'Grid_demo.txt'`. And to print the time evolution of binary properties, we need to turn on detailed output: `detailed_output = True`. COMPAS can produce logfiles of different types: HDF5, CSV, TSV, and TXT, which can be chosen by editing the line `logfile_type = 'HDF5'` (the default type is HDF5). For this demo, this has all been done for you in the file `pythonSubmitDemo.py`.
147
+
To tell the python submit script to take its input from this grid file, you usually need to open `$COMPAS_ROOT_DIR/preProcessing/pythonSubmit.py` with a text editor, and specify the grid filename `grid_filename = 'Grid_demo.txt'`. And to print the time evolution of binary properties, we need to turn on detailed output: `detailed_output = True`. COMPAS can produce logfiles of different types: HDF5, CSV, TSV, and TXT, which can be chosen by editing the line `logfile_type = 'HDF5'` (the default type is HDF5). For this demo, this has all been done for you in the file `pythonSubmitDemo.py` found in the current directory.
148
148
149
149
Now let's run COMPAS!
150
150
@@ -181,10 +181,10 @@ The COMPAS run just now produces a new directory `COMPAS_Output`, inside which y
181
181
182
182
We examine `BSE_Detailed_Output_0.h5` to look at the evolution of the two stars. A default python plotting script has been included to visualise the data. Let's run the script:
0 commit comments