pynucastro.eos.eos_components module#

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

class pynucastro.eos.eos_components.EOSComponentState(eta=0.0, n=0.0, p=0.0, e=0.0, dn_drho=0.0, dn_dT=0.0, dp_drho=0.0, dp_dT=0.0, de_drho=0.0, de_dT=0.0)[source]#

Bases: object

A container to hold a thermodynamic state for a single component of a full stellar plasma (i.e., ions, electrons, or radiation) that depends on density, temperature, and composition

class pynucastro.eos.eos_components.IdealGasEOS(include_electrons=False)[source]#

Bases: object

An ideal gas equation of state for ions (and optionally electrons).

Parameters:

include_electrons (bool) – do we include electrons together with the ions, assuming full ionization?

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:

EOSComponentState

class pynucastro.eos.eos_components.RadiationEOS[source]#

Bases: object

A blackbody radiation equation of state

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:

EOSComponentState