pynucastro.eos.electron_eos module

pynucastro.eos.electron_eos module#

Classes and methods for managing an electron / positron equation of state.

class pynucastro.eos.electron_eos.ElectronEOS(include_positrons=True)[source]#

Bases: object

An electron/positron EOS that works for arbitrary degeneracy or relativity. This works by performing the Fermi-Dirac integrals directly. This assumes complete ionization.

Parameters:

include_positrons (bool) – consider both positrons and electrons.

pe_state(rho=None, T=None, comp=None, *, compute_derivs=True, eta_guess_min=-100, eta_guess_max=10000000.0)[source]#

Find the pressure and energy given density, temperature, and composition

Parameters:
  • rho (float) – Density (g/cm**3)

  • T (float) – Temperature (K)

  • comp (Composition) – Composition (abundances of each nucleus)

  • compute_derivs (bool) – Are the derivatives with respect to rho and T computed?

  • eta_guess_min (float) – The minimum degeneracy parameter guess for the root-finding

  • eta_guess_max (float) – The maximum degeneracy parameter guess for the root-finding

Returns:

  • electron_state (EOSComponentState) – The thermodynamics of the electrons

  • positron_state (EOSComponentState) – The thermodynamics of the positrons