pynucastro.eos.stellar_eos module

pynucastro.eos.stellar_eos module#

Classes a methods for a full stellar equation of state (ions + electrons + radiation)

class pynucastro.eos.stellar_eos.EOSState(eta=0.0, n_ele=0.0, n_pos=0.0, p=0.0, e=0.0, dp_drho=0.0, dp_dT=0.0, de_drho=0.0, de_dT=0.0, c_v=0.0, c_p=0.0, gamma1=0.0)[source]#

Bases: object

The full thermodynamic state of a multi-component plasma (ions, electrons, and radiation)

class pynucastro.eos.stellar_eos.StellarEOS(electrons_are_degenerate=True, include_positrons=True)[source]#

Bases: object

A full stellar equation of state with contributions from ions, electrons, and radiation.

Parameters:
  • electrons_are_degenerate (bool) – Do we treat electrons as a Fermi gas with arbitrary degeneracy and relativity? or just treat them as an ideal gas?

  • include_positrons (bool) – If electrons are Fermi gas, do we consider both positrons and electrons?

pe_state(rho=None, T=None, comp=None)[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)

Return type:

EOSState