23-Degeneracy (and radiation) pressure (template)#

import numpy as np, copy
import matplotlib.pyplot as plt
%matplotlib inline
from astropy import constants as const
import astropy.units as u
from astropy.units import cds
cds.enable() 
<astropy.units.core._UnitContext at 0x1104e8ca0>

0. To execute:#

Here are some models for the Sun, a M10 star, and the Sun towards the end of its main sequence lifetime.

def read_model(file):

    return np.genfromtxt(file, skip_header=5, names=True)

Msun    = read_model('https://raw.githubusercontent.com/veropetit/PHYS633-F2024/main/Book/L19-Convection/19-Sun-profile8.data')
MsunOld = read_model('https://raw.githubusercontent.com/veropetit/PHYS633-F2024/main/Book/L23-Degeneracy/23-SunOld-profile15.data')
M10     = read_model('https://raw.githubusercontent.com/veropetit/PHYS633-F2024/main/Book/L19-Convection/19-M10-profile8.data')

1. In Class: Degeneracy pressure in normal stars#

We will explore the transision zones between ideal gas pressure, non-relativistic degenerate pressure, and relativistic degenerate pressure, in a \(\log T\)-\(\log\rho\) diagram.

We will use the fill_between function to highlight the regions where the degeneracy pressure (non-relativistic and relativistic should dominate.

We will also add the \(\rho-T\) profiles for a solar model, a 10 Msun model, and a model of the sun towards the end of the hydrogen-burning phase.

In the next class we will also add the transition region for radiation pressure.

TODO: On the graph, add a vertical line to show the mean density of a white dwarf with the same mass as the sun, and the same radius as the Earth.

fig, ax = plt.subplots(1,1, figsize=(8,6))
ax.set_xlim(-6,10)
ax.set_ylim(3,10)

## We set the electronic mean molecular weigth to approximatively 2,
## which is more appropriate for regions where the hydrogen is depleted. 
## So note that in reality the boundaries can shift a little bit. 
mu_e = 2.0

###################################
###################################
# In class





###################################
###################################
# At home


#-------------------
plt.rcParams.update({'font.size': 18})
ax.set_xlabel(r'$\log(\rho)$')
ax.set_ylabel(r'$\log(T)$')
Text(0, 0.5, '$\\log(T)$')
../_images/9a00aa5979cb87ec687e23e157691c4d65a290c9c423867d8ced03d3775888ce.png

TODO: write a caption for your graph (make sure to also include the radiation pressure that we will add in the next lecture). Comment on which type of stars are more likely to have important degeneracy/radiation pressure (also, where in the star).

2. At home: Use the properties of polytrope to understand non-relativistic white dwarfs#

White dwarfs are the remnant of solar mass object, once the fusion stops. WD are generally made of elements heavier than He, e.g. carbon or oxygen depending on their evolution. In the case were no H or He is present in a gas, the electronic mean molecular weigth \(\mu_e\sim2\).

These objects remain in hydrostatic equilibrium because of non-relativistic degeneracy pressure, of the form

\[P_e = 1.00\times10^{13}\left(\frac{\rho}{\mu_e}\right)^{5/3}.\]

The numerical constant is such that the pressure is in dyn/cm2 for a density given in g/cm3.

You probably notice that the pressure does not depend on temperature, just like a polytrop!

This would correspond to a polytrop of index \(n=3/2\), with \(K = 1.00\times10^{13}/\mu_e^{5/3}\). For such a polytrop, \(\epsilon_1=3.654\), and \((-\theta(\epsilon_1)')=0.20330\), according to Henson Table 7.1.

TODO

a. Use the property of polytrops to find an expression for \(M_\star\) as a function of only \(R_\star\) and \(K\) (and constants such as \(G\) and \(\epsilon_1\) etc). Show your work here.

b. If you have not already done so in a), evaluate the numerical constants such that you get an equation for the mass in solar units if you give the radius in solar units.

c. Make a plot of the WD radius as a function of mass for a selection of masses between, say, 0.1 and 10 Msun.

###################################
###################################
# At home

TODO: Write a caption for your figure. Comment on the relationship between the radius and the mass of a non-relativistic white dwarf – how is it similar/different from main sequence stars? (you may want to look at the Open Stack astronomy textbook, to see how the radius of main sequence stars changes with mass).

3. At home: Do the same as #2, for a relativistic white dwarf.#

TODO: show your work below

###################################
###################################
# At home

TODO provide an interpretation of your result (hint: as a white dwarf becomes more massive, it becomes more and more relativistic).