You are here: Home / Tools & Utilities / Python / NuGrid's mesa.py

NuGrid's mesa.py

Demos, examples, and howto for NuGrid's mesa.py module that provides a profile and a historydata class.
NuGrid's mesa.py
Last update: July 7, 2016 - NuGridPy is now available on GitHub: https://nugrid.github.io/NuGridPy. The version is compatible with python 2 and 3 via the futures package.
Image Profile demo nugrid's mesa.py
start a profile instance for nearest cycle number and plot one profile column against another by name
File historydata-demo.py
The most important features of the history_data class in mesa.py. Plot HRDs, Kippenhahn diagrams etc.
File python_example.py
An example using nugrid_mesa.py.
Image NuGrid's mesa.py kip_cont example
m2 is a history_data instance, then m2.kip_cont(modstart=10900,modstop=12400,ixaxis='age', xres=5000,yres=2000,ylims=[0.55,0.60]) produces this plot. As always, check the doscstring to check for more options. Thanks to Sam Jones for providing this method.
mesa.py tutorial on YouTube
Thanks to Christian Ritter for putting this up.
Downloads