Class BlackbodyPhotonField

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class BlackbodyPhotonField : public PhotonField

Photon field decorator for black body photon fields.

Subclassed by CMB

Public Functions

BlackbodyPhotonField(const std::string fieldName, const double blackbodyTemperature)
double getPhotonDensity(double ePhoton, double z = 0.) const

returns comoving photon density [1/m^3]. multiply with (1+z^3) for physical number density.

Parameters
  • ePhoton: photon energy [J]
  • z: redshift (if redshift dependent, default = 0.)

virtual double getRedshiftScaling(double z) const

returns overall comoving scaling factor (cf. CRPropa3-data/calc_scaling.py)

Parameters
  • z: redshift

bool hasRedshiftDependence() const
std::string getFieldName() const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Attributes

double blackbodyTemperature
std::string fieldName
bool isRedshiftDependent
size_t _referenceCount