-
Notifications
You must be signed in to change notification settings - Fork 4
Starting your first GENEC model
This page is meant to complement, not replace the main GENEC main manual.
After compiling genec and genec_makeini, you are ready to run your first model :)
An easy model to run is a (non-rotating: "S0") 15-solar-mass ("M015") model at solar metallicity (Z=0.014, "Z14"). You can use M015Z14S0 as the "starname" for this model.
We save models outside of the code directories so usually create a folder called something like "GENEC_models" wherever convenient and create a folder called "M015Z14S000" for your first model (under the GENEC_models general folder). We add more characters/digits compared to the starname as we might run the same mass/metallicity models with different input physics options.
mkdir .../GENEC_models
[replace the three dots by your favourite path]
cd !$
mkdir M015Z14S000
cd !$
[these three lines go into your GENEC_models folder, creates the model folder and goes into it]
Once in the model folder, you can create the initial input files using the genec_makeini script:
/path/to/GENEC/bin/genec_makeini M015Z14S000
[Replace "/path/to/GENEC" with the actual path to the GENEC code]
The variable nzmod is set to 1000 by default in the ini_M015Z14S000.com input file. It is often better to change this to 10. You are now ready to start your first GENEC model. To do this, type:
python /path/to/GENEC/tools/GENEC_launch.py M015Z14S000
Your terminal windows should then be filled by output as the computation proceeds. To stop the code, type Ctrl-C .
You can now go back to the manual and the main Wiki page.