https://github.com/evgenyneu/overshootplot
A plotting utility that creates graphs for stellar overshoots from convective regions
https://github.com/evgenyneu/overshootplot
Last synced: about 2 months ago
JSON representation
A plotting utility that creates graphs for stellar overshoots from convective regions
- Host: GitHub
- URL: https://github.com/evgenyneu/overshootplot
- Owner: evgenyneu
- License: mit
- Created: 2018-02-19T04:45:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-19T05:04:31.000Z (about 7 years ago)
- Last Synced: 2025-01-10T14:42:19.836Z (3 months ago)
- Language: Python
- Size: 1.68 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overshoot plot
A utility written in Python that plots overshoot data from stellar convective regions.
## Setup
This code requires Python 3.6. Check the you have it installed by typing `python3 -V` or `python 3.6`.
If you don't have Python or have earlier version, please install Python3.6 before proceeding.Make sure you have `pip3` installed.
On Ubuntu you may need to install tkinker for python 3.6 (not needed on MacOS):
```
sudo apt-get install python3.6-tk
```Once this is done, setup the following libraries:
```
pip3 install matplotlib
```## Usage
Clone the repository into a local folder:
```
git clone https://github.com/evgenyneu/OvershootPlot.git
cd OvershootPlot
```## Plot evolution
Plot parameters that are changing with time:
```
python3 plot_evolution.py
```To see the options, run:
```
python3 plot_evolution.py -h
```### Examples of evolution plots
Show the extent of inward overshoot in meters from the intershell convective region #1.
```shell
python3 plot_evolution.py -x=model -y=overshoot_dr_m -t shell -z=1 -d=in
```
Show both the inner edge of intershell convective zone and the overshoot for zone 1, measured in mass/MSun.
```
python3 plot_evolution.py -x=model -y=convection_m_msun -y=overshoot_m_msun -t shell -z=1 -d=in
```
### Evolution plot app
The model plots can be veiwed in an app:
```
python3 gui_evolution.py
```
## Plot single model
Plot parameters for a single model 150, at one instance of time. The first model is plotted if the model option `-m` is not supplied:
```
python3 plot_model.py -m=170
```To see the options, run:
```
python3 plot_model.py -h
```### Examples of single model plots
See how density changes near the overshoot region marked with red lines:
```
python3 plot_model.py -y=rho -m=200
```
Show the change in the oxygen abundance:
```
python3 plot_model.py -x=m_msun -y=abund_o_16 -m=200
```
### Model plot app
The model plots can be veiwed in an app:
```
python3 gui_model.py
```