![]() |
Thermal-FIST 1.5
Package for hadron resonance gas model applications
|
Class implementing cosmological equation of state as a mixture of HRG model, ideal gases of leptons and photons. More...
#include <CosmicEoS.h>
Classes | |
| class | BroydenEquationsCosmology |
| Class implementing the Broyden equations for cosmology. More... | |
Public Member Functions | |
| CosmicEoS (ThermalModelBase *THMbase, bool pionsinteract=false) | |
| Constructor. | |
| virtual | ~CosmicEoS (void) |
| Destructor. | |
| ThermalModelBase * | HRGModel () const |
| Gets the pointer to the HRG model object. | |
| const std::vector< double > & | ChemicalPotentials () const |
| Gets the chemical potentials (baryon number, electric charge, three lepton charges). | |
| virtual void | SetTemperature (double T) |
| Set the temperature. | |
| double | Temperature () const |
| Gets the current temperature. | |
| virtual void | SetBaryonChemicalPotential (double muB) |
| Set the baryon chemical potential. | |
| double | BaryonChemicalPotential () const |
| Gets the baryon chemical potential. | |
| virtual void | SetElectricChemicalPotential (double muQ) |
| Set the electric chemical potential. | |
| double | ElectricChemicalPotential () const |
| Gets the current electric chemical potential. | |
| virtual void | SetLeptonChemicalPotential (LeptonFlavor::Name flavor, double muL) |
| Set the lepton chemical potential. | |
| double | LeptonChemicalPotential (LeptonFlavor::Name flavor) const |
| Gets the current lepton chemical potential for a specific flavor. | |
| virtual void | SetBaryonAsymmetry (double b) |
| Sets the baryon number asymmetry (baryon over entropy density). | |
| double | BaryonAsymmetry () const |
| Gets the current baryon asymmetry. | |
| virtual void | SetChargeAsymmetry (double q) |
| Sets the electric charge asymmetry (charge over entropy density). | |
| double | ChargeAsymmetry () const |
| Gets the current electric charge asymmetry. | |
| virtual void | SetLeptonAsymmetry (LeptonFlavor::Name flavor, double l) |
| Sets the lepton flavor asymmetry (lepton flavor over entropy density). | |
| double | LeptonAsymmetry (LeptonFlavor::Name flavor) const |
| Gets the current lepton flavor asymmetry. | |
| void | SetAsymmetries (const std::vector< double > &asymmetries) |
| Sets all asymmetries at once. | |
| void | CalculatePrimordialDensities () |
| Calculates number densities of all particle species. | |
| double | EntropyDensity () |
| Calculates the total entropy density. | |
| double | EntropyDensityHRG () |
| Calculates the entropy density of the HRG part. | |
| double | Pressure () |
| Calculates the total pressure. | |
| double | PressureHRG () |
| Calculates the partial pressure of the HRG part. | |
| double | EnergyDensity () |
| Calculates the total energy density. | |
| double | EnergyDensityHRG () |
| Calculates the energy density of the HRG part. | |
| double | NetDensityChargedLepton (int iL) |
| Calculates the net density of charged lepton flavor. | |
| double | PressureChargedLepton (int iL) |
| Calculates the partial pressure of charged lepton flavor. | |
| double | EnergyDensityChargedLepton (int iL) |
| Calculates the energy density of charged lepton flavor. | |
| double | BaryonDensity (bool absolute=false) |
| Calculates the total baryon density. | |
| double | ElectricChargeDensity (bool absolute=false) |
| Calculates the electric charge density. | |
| double | ElectricChargeDensityHRG (bool absolute=false) |
| Calculates the electric charge density of the HRG part. | |
| double | IsospinChargeDensity (bool absolute=false) |
| Calculates the isospin charge density. | |
| double | LeptonFlavorDensity (LeptonFlavor::Name flavor, bool absolute=false) |
| Calculates the lepton flavor density. | |
| std::vector< double > | SolveChemicalPotentials (double T, const std::vector< double > &muInit=std::vector< double >()) |
| Calculates the values of the chemical potential (B,Q,{L}) that satisfy the given asymmetry constraints at given temperature. | |
| double | GetPionMass () const |
| Gets the mass of pi+. | |
| void | SetPionsInteracting (bool pionsinteract=true, double fpiChPT=fpi) |
| Sets whether to include pion interactions via effective mass model. | |
| bool | InteractingPions () const |
| Checks if pions are interacting in the model. | |
| bool | InPionCondensedPhase () const |
| Checks if the system has non-zero BEC of pions. | |
| const ThermalParticle & | PhotonParticle () const |
| Gets the ThermalParticle object instance corresponding to photons. | |
| int | NumberOfElectroWeakSpecies () const |
| Gets the number of electroweak species (charged leptons and neutrinos) in the model. | |
| std::string | GetSpeciesName (int id) const |
| Gets the name of particle species of given id. | |
| double | GetDensity (int id) const |
| Gets the number density for given species. | |
Static Public Attributes | |
| static double | fpi = 0.133 |
| Pion decay constant for pion interactions a la ChPT. | |
Protected Member Functions | |
| void | ClearEMMs () |
| Clears the effective mass models. | |
Protected Attributes | |
| ThermalModelBase * | m_modelHRG |
| Pointer to an HRG model object. | |
| ThermalParticle | m_Photon |
| Photons. | |
| std::vector< ThermalParticle > | m_ChargedLeptons |
| Charged leptons. | |
| std::vector< ThermalParticle > | m_Neutrinos |
| Neutrinos. | |
| bool | m_InteractingPions |
| Whether to include pion interactions. | |
| bool | m_IsCalculated |
| Whether the system has been calculated. | |
| double | m_T |
| Temperature in GeV. | |
| std::vector< double > | m_ChemCurrent |
| Vector of chemical potentials (baryon, charge, lepton flavors) | |
| std::vector< double > | m_Asymmetries |
| Vector of asymmetries (baryon, charge, lepton flavors) | |
Class implementing cosmological equation of state as a mixture of HRG model, ideal gases of leptons and photons.
Definition at line 56 of file CosmicEoS.h.
| thermalfist::CosmicEoS::CosmicEoS | ( | ThermalModelBase * | THMbase, |
| bool | pionsinteract = false ) |
Constructor.
| THMbase | Pointer to the HRG model object. |
| pionsinteract | Specifies whether to incorporate pions interactions through effective mass model. |
Definition at line 25 of file CosmicEoS.cpp.
|
inlinevirtual |
Destructor.
Definition at line 71 of file CosmicEoS.h.
|
inline |
Gets the current baryon asymmetry.
Definition at line 157 of file CosmicEoS.h.
|
inline |
Gets the baryon chemical potential.
Definition at line 113 of file CosmicEoS.h.
| double thermalfist::CosmicEoS::BaryonDensity | ( | bool | absolute = false | ) |
Calculates the total baryon density.
| absolute | If true, calculates absolute baryon density. |
Definition at line 221 of file CosmicEoS.cpp.
| void thermalfist::CosmicEoS::CalculatePrimordialDensities | ( | ) |
Calculates number densities of all particle species.
Definition at line 111 of file CosmicEoS.cpp.
|
inline |
Gets the current electric charge asymmetry.
Definition at line 171 of file CosmicEoS.h.
|
inline |
Gets the chemical potentials (baryon number, electric charge, three lepton charges).
Definition at line 85 of file CosmicEoS.h.
|
protected |
Clears the effective mass models.
Definition at line 401 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::ElectricChargeDensity | ( | bool | absolute = false | ) |
Calculates the electric charge density.
| absolute | If true, calculates absolute charge density. |
Definition at line 227 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::ElectricChargeDensityHRG | ( | bool | absolute = false | ) |
Calculates the electric charge density of the HRG part.
| absolute | If true, calculates absolute charge density. |
Definition at line 245 of file CosmicEoS.cpp.
|
inline |
Gets the current electric chemical potential.
Definition at line 127 of file CosmicEoS.h.
| double thermalfist::CosmicEoS::EnergyDensity | ( | ) |
Calculates the total energy density.
Definition at line 167 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::EnergyDensityChargedLepton | ( | int | iL | ) |
Calculates the energy density of charged lepton flavor.
| iL | The lepton flavor index. |
Definition at line 212 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::EnergyDensityHRG | ( | ) |
Calculates the energy density of the HRG part.
Definition at line 185 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::EntropyDensity | ( | ) |
Calculates the total entropy density.
Definition at line 116 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::EntropyDensityHRG | ( | ) |
Calculates the entropy density of the HRG part.
Definition at line 134 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::GetDensity | ( | int | id | ) | const |
Gets the number density for given species.
| id | 0 - photon, 1 - e+, 2 - e-, 3 - mu+, ..., 7 - nu_e, 8 - anti-nu_e, ... |
Definition at line 375 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::GetPionMass | ( | ) | const |
Gets the mass of pi+.
Used to determine if Bose condensation reached in ideal gas.
Definition at line 307 of file CosmicEoS.cpp.
| std::string thermalfist::CosmicEoS::GetSpeciesName | ( | int | id | ) | const |
Gets the name of particle species of given id.
| id | The particle species id. |
Definition at line 350 of file CosmicEoS.cpp.
|
inline |
Gets the pointer to the HRG model object.
Definition at line 78 of file CosmicEoS.h.
| bool thermalfist::CosmicEoS::InPionCondensedPhase | ( | ) | const |
Checks if the system has non-zero BEC of pions.
Definition at line 338 of file CosmicEoS.cpp.
|
inline |
Checks if pions are interacting in the model.
Definition at line 345 of file CosmicEoS.h.
| double thermalfist::CosmicEoS::IsospinChargeDensity | ( | bool | absolute = false | ) |
Calculates the isospin charge density.
| absolute | If true, calculates absolute isospin density. |
Definition at line 254 of file CosmicEoS.cpp.
|
inline |
Gets the current lepton flavor asymmetry.
| flavor | The lepton flavor. |
Definition at line 187 of file CosmicEoS.h.
|
inline |
Gets the current lepton chemical potential for a specific flavor.
| flavor | The lepton flavor. |
Definition at line 143 of file CosmicEoS.h.
| double thermalfist::CosmicEoS::LeptonFlavorDensity | ( | LeptonFlavor::Name | flavor, |
| bool | absolute = false ) |
Calculates the lepton flavor density.
| flavor | The lepton flavor. |
| absolute | If true, calculates absolute lepton flavor density. |
Definition at line 267 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::NetDensityChargedLepton | ( | int | iL | ) |
Calculates the net density of charged lepton flavor.
| iL | The lepton flavor index. |
Definition at line 192 of file CosmicEoS.cpp.
|
inline |
Gets the number of electroweak species (charged leptons and neutrinos) in the model.
Definition at line 369 of file CosmicEoS.h.
|
inline |
Gets the ThermalParticle object instance corresponding to photons.
Definition at line 362 of file CosmicEoS.h.
| double thermalfist::CosmicEoS::Pressure | ( | ) |
Calculates the total pressure.
Definition at line 141 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::PressureChargedLepton | ( | int | iL | ) |
Calculates the partial pressure of charged lepton flavor.
| iL | The lepton flavor index. |
Definition at line 203 of file CosmicEoS.cpp.
| double thermalfist::CosmicEoS::PressureHRG | ( | ) |
Calculates the partial pressure of the HRG part.
Definition at line 160 of file CosmicEoS.cpp.
|
inline |
Sets all asymmetries at once.
| asymmetries | Vector of asymmetries (baryon, charge, lepton flavors). |
Definition at line 194 of file CosmicEoS.h.
|
inlinevirtual |
Sets the baryon number asymmetry (baryon over entropy density).
| b | The baryon asymmetry value. |
Definition at line 150 of file CosmicEoS.h.
|
inlinevirtual |
Set the baryon chemical potential.
| muB | Baryon chemical potential (GeV) |
Definition at line 106 of file CosmicEoS.h.
|
inlinevirtual |
Sets the electric charge asymmetry (charge over entropy density).
| q | The charge asymmetry value. |
Definition at line 164 of file CosmicEoS.h.
|
virtual |
Set the electric chemical potential.
| muQ | Electric chemical potential (GeV) |
Definition at line 105 of file CosmicEoS.cpp.
|
inlinevirtual |
Sets the lepton flavor asymmetry (lepton flavor over entropy density).
| flavor | The lepton flavor. |
| l | The lepton asymmetry value. |
Definition at line 179 of file CosmicEoS.h.
|
inlinevirtual |
Set the lepton chemical potential.
| muL | Lepton chemical potential (GeV) |
| flavor | Lepton flavor |
Definition at line 135 of file CosmicEoS.h.
| void thermalfist::CosmicEoS::SetPionsInteracting | ( | bool | pionsinteract = true, |
| double | fpiChPT = fpi ) |
Sets whether to include pion interactions via effective mass model.
| pionsinteract | If true, pion interactions are included. |
| fpiChPT | The pion decay constant (default: fpi). |
Definition at line 315 of file CosmicEoS.cpp.
|
virtual |
| std::vector< double > thermalfist::CosmicEoS::SolveChemicalPotentials | ( | double | T, |
| const std::vector< double > & | muInit = std::vector<double>() ) |
Calculates the values of the chemical potential (B,Q,{L}) that satisfy the given asymmetry constraints at given temperature.
| T | Temperature in GeV. |
| muInit | Initial guesses of the chemical potentials. |
Definition at line 287 of file CosmicEoS.cpp.
|
inline |
Gets the current temperature.
Definition at line 99 of file CosmicEoS.h.
|
static |
Pion decay constant for pion interactions a la ChPT.
Pion decay constant.
Definition at line 321 of file CosmicEoS.h.
|
protected |
Vector of asymmetries (baryon, charge, lepton flavors)
Definition at line 416 of file CosmicEoS.h.
|
protected |
Charged leptons.
Definition at line 395 of file CosmicEoS.h.
|
protected |
Vector of chemical potentials (baryon, charge, lepton flavors)
Definition at line 413 of file CosmicEoS.h.
|
protected |
Whether to include pion interactions.
Definition at line 404 of file CosmicEoS.h.
|
protected |
Whether the system has been calculated.
Definition at line 407 of file CosmicEoS.h.
|
protected |
Pointer to an HRG model object.
Definition at line 389 of file CosmicEoS.h.
|
protected |
Neutrinos.
Definition at line 398 of file CosmicEoS.h.
|
protected |
Photons.
Definition at line 392 of file CosmicEoS.h.
|
protected |
Temperature in GeV.
Definition at line 410 of file CosmicEoS.h.