Skip to content

Commit

Permalink
building 2024june notebooks
Browse files Browse the repository at this point in the history
automatically generated by github build-docs action
  • Loading branch information
gh-actions committed Jan 10, 2024
1 parent 9b85631 commit 6d33caa
Show file tree
Hide file tree
Showing 118 changed files with 46,491 additions and 0 deletions.
96 changes: 96 additions & 0 deletions 2024june/Exercises_01_building_systems.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Exercises #1: Building Systems\n",
"\n",
"These exercises are designed to be done anytime after the tutorial on constraints.\n",
"\n",
"Don't feel like you need to do all of these - just pick and choose which seem the most interesting to you. Make sure to save your notebooks and/or bundles, as [tomorrow's exercise](./Exercises_02_forward_models.ipynb) will have you generate synthetic models for these same system(s)."
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# \\#1: Sun-Jupiter\n",
"\n",
"Create a default binary Bundle, re-parameterize so that you can set both masses. Now set the the masses and the radii such that you have a Jupiter around a Sun.\n",
"\n",
"Hint: try using units to handle the conversion between Jupiter and Solar masses/radii. You can always do `dir(phoebe.u)` to see a list of all available units, or `phoebe.u.solMass.find_equivalent_units()`. For other quantities (orbital/rotation periods, sma, etc), you may need to lookup the values since they do not have units/constants available."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# \\#2: Sun-Earth\n",
"\n",
"Create a Sun-Earth system. Make sure to get the correct masses, radii, orbital period, separation, eccentricity, and rotational period."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# \\#3: Advanced: Reproduce Systems from the Literature\n",
"\n",
"Find (or pick your favorite) EB solution in the literature and try to map the reported values in the paper into PHOEBE.\n",
"\n",
"If you'd like to try a semi-detached or contact binary, refer to the following tutorials:\n",
"* [Advanced: Contact Binary Hierarchy](http://phoebe-project.org/docs/2.4/tutorials/contact_binary_hierarchy)\n",
"* [Advanced: Semidetached Systems](http://phoebe-project.org/docs/2.4/tutorials/requiv_crit_semidetached)\n",
"\n",
"Depending on the code used for modeling, the results may be reported using parameters not readily available in PHOEBE. For detached systems, you can use any reported point radii (polar, equatorial, back/front) as approximations for the equivalent radius. If the solution is reported in equipotentials, you can convert them to radii using [phoebe.distortions.roche.pot_to_requiv](http://phoebe-project.org/docs/2.4/api/phoebe.distortions.roche.pot_to_requiv) with `d=1-e` (as potentials are defined at periastron) along with an estimate of the semi-major axis from the RV semi-amplitudes, inclination, and eccentricity. If you get stuck, don't hesitate to ask for help!"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
46 changes: 46 additions & 0 deletions 2024june/Exercises_01_building_systems.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env python
# coding: utf-8

# # Exercises #1: Building Systems
#
# These exercises are designed to be done anytime after the tutorial on constraints.
#
# Don't feel like you need to do all of these - just pick and choose which seem the most interesting to you. Make sure to save your notebooks and/or bundles, as [tomorrow's exercise](./Exercises_02_forward_models.ipynb) will have you generate synthetic models for these same system(s).

# # \#1: Sun-Jupiter
#
# Create a default binary Bundle, re-parameterize so that you can set both masses. Now set the the masses and the radii such that you have a Jupiter around a Sun.
#
# Hint: try using units to handle the conversion between Jupiter and Solar masses/radii. You can always do `dir(phoebe.u)` to see a list of all available units, or `phoebe.u.solMass.find_equivalent_units()`. For other quantities (orbital/rotation periods, sma, etc), you may need to lookup the values since they do not have units/constants available.

# In[ ]:





# # \#2: Sun-Earth
#
# Create a Sun-Earth system. Make sure to get the correct masses, radii, orbital period, separation, eccentricity, and rotational period.

# In[ ]:





# # \#3: Advanced: Reproduce Systems from the Literature
#
# Find (or pick your favorite) EB solution in the literature and try to map the reported values in the paper into PHOEBE.
#
# If you'd like to try a semi-detached or contact binary, refer to the following tutorials:
# * [Advanced: Contact Binary Hierarchy](http://phoebe-project.org/docs/2.4/tutorials/contact_binary_hierarchy)
# * [Advanced: Semidetached Systems](http://phoebe-project.org/docs/2.4/tutorials/requiv_crit_semidetached)
#
# Depending on the code used for modeling, the results may be reported using parameters not readily available in PHOEBE. For detached systems, you can use any reported point radii (polar, equatorial, back/front) as approximations for the equivalent radius. If the solution is reported in equipotentials, you can convert them to radii using [phoebe.distortions.roche.pot_to_requiv](http://phoebe-project.org/docs/2.4/api/phoebe.distortions.roche.pot_to_requiv) with `d=1-e` (as potentials are defined at periastron) along with an estimate of the semi-major axis from the RV semi-amplitudes, inclination, and eccentricity. If you get stuck, don't hesitate to ask for help!

# In[ ]:




59 changes: 59 additions & 0 deletions 2024june/Exercises_01_building_systems_solutions.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Exercises #1 Example Solutions: Building Systems\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# \\#1: Sun-Jupiter\n",
"\n",
"**See this [example solution](./Exercises_01_solutions_1.ipynb)**"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# \\#2: Sun-Earth\n",
"\n",
"**NO EXAMPLE SOLUTION**"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# \\#3: Advanced: Reproduce Systems from the Literature\n",
"\n",
"**See this [example solution](./Exercises_01_solutions_4.ipynb)**"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
17 changes: 17 additions & 0 deletions 2024june/Exercises_01_building_systems_solutions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python
# coding: utf-8

# # Exercises #1 Example Solutions: Building Systems
#

# # \#1: Sun-Jupiter
#
# **See this [example solution](./Exercises_01_solutions_1.ipynb)**

# # \#2: Sun-Earth
#
# **NO EXAMPLE SOLUTION**

# # \#3: Advanced: Reproduce Systems from the Literature
#
# **See this [example solution](./Exercises_01_solutions_4.ipynb)**
Loading

0 comments on commit 6d33caa

Please sign in to comment.