3.3: Two Layer Planet Structure Jupyter Notebook
- Page ID
- 11669
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Instructions
- To use this page, read the text between each of the python code windows, then press RUN to execute the code in the box.
- It is necessary to run each of the boxes in order.
- Don't click restart in the cells unless you come back to the top of the page and start over.
- If you modify the code, this modification will not remain after you leave or refresh this page.
- You must run simulations/cells that require user input to completion. Make sure you see the Message informing you a cell is complete before continuing to the next cell. Here's why you must do this:
- These cells may not be re-run until the simulation is completed, otherwise no output will be generated.
- All following cells will not run until the user input cell is completed.
- For Dropdown Menus: You do not need to rerun the cells with the menu to change your selection. However, you must rerun all of the following cells to implement the change.
Be patient, some times it can take 1-2 minutes for the juypter kernel to start.
An interactive model to explore the layered structure of far-away planetary interiors from the limited information available to us, assuming there are two distinct layers.
Key Questions: Consider these as you work your way through this page.
Initial Reference Model
- How are the initial density and core size related? For example, does a smaller starting density produce a large or small core radius when compared to a larger starting density?
Density Variation Example
- Find a density value that creates a non-physical (NaN: not-a-number) density for the core of your chosen planet? Why does this happen?
- Find a density value where the model shows a core that is larger than the planet itself? Why does this happen?
Radius Variation Example
- Find a radius value that creates a non-physical (NaN) density for the core of your chosen planet? Why does this happen?
- Find a radius value where the model shows a core is larger than the planet itself? Why does this happen?
Mass Variation Example
- Is there an upper bound on what the mass can be in the model? That is, is there a high value that breaks the model like the previous examples; ignore whether it is realistic or not.
- Find a mass value that creates a non-physical (NaN) density for the core of your chosen planet? Why does this happen?
- Find a mass value where the model shows a core that is larger than the planet itself? Why does this happen?
First let's call the necessary functions, and define a dictionary called planets holding the relevant parameters of different planets.
Reference Planet
Now to start your own model. Select a planet from the prompt once you run this cell.
Now, choose which density type you would like to use. The surface density can be measured, and the compositional density is the density of the assumed material that the mantle of the planet is made out of.
This cell will gather all the required parameters for your choices, and prompt you for your density value if you selected 'other' in the previous cell.
This cell defines the parameters beta, a, and b as defined in 3.2: Layered Structure of a Planet. beta depends on the planet's mass and radius. a and b depend on beta, alpha (which is 5/2 times the Moment of Inertia), and the density rho. a is the fraction between the core and total radius, and b is the proportionality constant to calculate the core density from the original density. Therefore, once you calculate \(a\), you can get the core radius by multiplying \(a\) by the total radius (however, for simplicity this model only plots a and not a * R). The density of the core is found by multiplying b by the original density, which is done in the plotting function below.
Density Variation Example
Take note of the appearance of the above model. This is generally what the model looks like when it is physically possible for the input parameters to yield a solution. That's why you were limited in your choice for the range for densities if you chose the other option above. In the next series of examples, we are going to consider how the initial mass, radius, and density affect the model, and if certain values of these parameters will create an impossible planet. First, let's change the initial density of the planet. See how changing the density changes the model, and why certain density choices are impossible. You can tell if a choice is impossible if the graph does not look nice and neat like the previous one; you may also encounter non-physical values in the form of nan values (nan/NaN stands for not-a-number) or the radius of the core could end up being larger than the radius of the planet itself.
Radius Variation Example
Now let's set the density to a constant value, we will use the compositional density of the planet you selected. This time, let's change the radius and see what happens. Like before, take note of when and why the model gives a nan or a core radius larger than the planet itself. Note that the given range of radii are given to accommodate all three planets, it may be easier to find the nan and large cores near the radius of the initial planet.
Mass Variation Example
Finally, lets set the radius to its original length and change the mass of your planet. Like before, take note of when and why the model gives a nan or a core radius larger than the planet itself.
Key Questions: Consider these as you work your way through this page.
Initial Reference Model
- How are the initial density and core size related? For example, does a smaller starting density produce a large or small core radius when compared to a larger starting density?
Density Variation Example
- Find a density value that creates a nan density for the core of your chosen planet? Why does this happen?
- Find a density value where the model shows a core is larger than the planet itself? Why does this happen?
Radius Variation Example
- Find a radius value that creates a nan density for the core of your chosen planet? Why does this happen?
- Find a radius value where the model shows a core is larger than the planet itself? Why does this happen?
Mass Variation Example
- Is there an upper bound on what the mass can be in the model? ie is there a high value that breaks the model like the previous examples; ignore whether it is realistic or not.
- Find a mass value that creates a nan density for the core of your chosen planet? Why does this happen?
- Find a mass value where the model shows a core is larger than the planet itself? Why does this happen?