-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from FormingWorlds/new_fxuv_w_mors
Add a Fxuv function using mors tracks
- Loading branch information
Showing
6 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
examples/comparison_work/output/Escape_vs_masses_3_models.pdf
Binary file not shown.
Binary file modified
BIN
+4.21 KB
(120%)
examples/comparison_work/output/Escape_vs_time_3_models.pdf
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import matplotlib.pyplot as plt | ||
|
||
from zephyrus.constants import * | ||
from zephyrus.planets_parameters import * | ||
from zephyrus.XUV_flux import Fxuv_mors | ||
|
||
########################### Fxuv computation #################################### | ||
|
||
star_age_sun, star_fxuv_sun = Fxuv_mors(1.0, 1.0, 1.0) | ||
star_age_2, star_fxuv_2 = Fxuv_mors(1.0, 0.5, 1.0) | ||
|
||
########################### Plot #################################### | ||
|
||
plt.figure(figsize=(8, 6)) | ||
|
||
plt.loglog(star_age_sun,star_fxuv_sun, color='gold', linestyle='-', label='1.0 AU, 1.0 Msun, 1.0 OmegaSun') | ||
plt.loglog(star_age_2,star_fxuv_2, color='red', linestyle='-', label='1.0 AU, 0.5 Msun, 1.0 OmegaSun') | ||
|
||
plt.xlabel('Age [Myr]', fontsize=15) | ||
plt.ylabel(r'XUV Flux received by the planet [W $m^{-2}$]', fontsize=15) | ||
plt.legend() | ||
plt.grid(alpha=0.5) | ||
plt.title('Test of the Fxuv_mors() function, using Star()', fontsize=15) | ||
|
||
plt.savefig('output/test_Fxuv_mors_function.pdf',dpi=180) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters