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)

Returns:

  • electron_state (EOSState) – The thermodynamics of the electrons

  • positron_state (EOSState) – The thermodynamics of the positrons