Ultra-relativistic simplifications of density, energy density and pressure calculations
import numpy
__path__ = "../.."
name = 'radiation'
def density(particle):
from particles import STATISTICS
density = particle.T**3 * particle.dof / numpy.pi**2 * 1.2
if particle.statistics == STATISTICS.FERMION:
def energy_density(particle):
from particles import STATISTICS
density = particle.dof * numpy.pi**2 / 30. * particle.T**4
if particle.statistics == STATISTICS.FERMION: