Solution to the stellar structure equations for a static compact object in GR given real tabulated dense matter equations of state.
If you use conda it's always a good idea to work on a clean environment
conda create -n stellarStructure python=3.7
conda activate stellarStructure
Then, proceed to clone this repository
git clone https://github.com/DavidRamosSal/stellar_structure.git
Finally install the required libraries
pip install -r requirements.txt
Copy any numerical equation of state of your interest (it should have three columns 1. baryon density, 2. pressure (p/c equationsOFState/numerical
and run:
python3 main.py
Raw data will be saved in results/$nameOfTheEOSFile$
. The profiles corresponding to a central density of 10 results/$nameOfTheEOSFile$/$n$.dat
with the following columns:
- mass (solar masses)
- pressure (p/c
$^2$ ) - density (epsilon/c
$^2$ ) -
$\nu$ metric function -
$\lambda$ metric function - radius (km)
The consolidated results are saved in results/$nameOfTheEOSFile$/$MRrhoc$.dat
with columns:
- radius (km)
- mass (solar masses)
- density (g/cm
$^3$ )
In example
you can find the results obtained with the 37 dense matter EOSs included on this repository. The RAnalysis notebook contains an analysis of those results.
The Stellar_structure_manual notebook in docs
gives an in-depth description and validation of the integration routine.