Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
examples_aswns_nonbaro [2022/08/16 17:09] theoastro [Plotting your results] |
examples_aswns_nonbaro [2022/08/16 20:52] (current) theoastro [Computing non-barotropic stars] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Computing non-barotropic stars ===== | ===== Computing non-barotropic stars ===== | ||
| - | + | ==== Theoretical Background and Model Parameters ==== | |
| - | This test follows the computation focusses on the computation of a non-barotropic configuration | + | |
| - | + | ||
| - | ==== Model Parameters | + | |
| - | + | ||
| - | ==== Theoretical Background | + | |
| For a careful theoretical understanding, | For a careful theoretical understanding, | ||
| Line 23: | Line 18: | ||
| {{ASWNS_EOS_4.png|EOS4}} | {{ASWNS_EOS_4.png|EOS4}} | ||
| - | ==== Changing the code input ==== | + | ==== Code input ==== |
| The simple example that is given in the git repository looks at a cold, rigidly rotating neutron star. | The simple example that is given in the git repository looks at a cold, rigidly rotating neutron star. | ||
| Line 97: | Line 92: | ||
| - | Of course, it would also be possible to produce simple 1d plots and/or use python for plotting, where an example is given below, where we show the density along one radial direction for approximately theta=0: | + | Of course, it would also be possible to produce simple 1d plots and/or use python for plotting, where an example is given below, where we show the density along one radial direction |
| + | import numpy as np | ||
| + | import matplotlib.pyplot as plt | ||
| + | | ||
| + | th, r, rho = np.loadtxt(' | ||
| + | fig = plt.figure() | ||
| + | plt.plot(r[0: | ||
| + | plt.xlabel(' | ||
| + | plt.ylabel(' | ||
| + | plt.show(); | ||
| {{ASWNS_nonbaro_1d.png}} | {{ASWNS_nonbaro_1d.png}} | ||
Last modified: le 2022/08/16 17:09
