35 m_TAG =
"ThermalModelCanonicalStrangeness";
105 vector<double> xi(3, 0.), yi(3, 0.);
107 for (
size_t i = 0; i <
m_StrVals.size(); ++i) {
114 for (
int i = 0; i < 3; ++i) {
122 for (
unsigned int i = 0; i <
m_StrVals.size(); ++i) {
125 for (
int m = -iters; m <= iters; ++m)
126 for (
int n = -iters; n <= iters; ++n) {
130 pow(yi[0],
m_StrVals[i] - 3 * m - 2 * n) *
133 if (tmp != tmp)
continue;
142 printf(
"**ERROR** ThermalModelCanonicalStrangeness::CalculatePrimordialDensities(): PCE not supported!\n");
168 for (
size_t i = 0; i <
m_wprim.size(); ++i) {
virtual void CalculateDensitiesGCE()
Calculates the particle densities in a grand-canonical ensemble.
Abstract base class for an HRG model implementation.
virtual void CalculatePrimordialDensities()
Calculates the primordial densities of all species.
virtual void SetStatistics(bool stats)
std::map< int, int > m_StrMap
std::vector< double > m_Chem
virtual void FixParameters()
Method which actually implements ConstrainChemicalPotentials() (for backward compatibility).
virtual bool IsConservedChargeCanonical(ConservedCharge::Name charge) const
Whether the given conserved charge is treated canonically.
virtual void ChangeTPS(ThermalParticleSystem *TPS)
Change the particle list.
std::vector< double > m_wprim
const ThermalParticle & Particle(int id) const
ThermalParticle object corresponding to particle species with a provided 0-based index.
std::vector< double > m_skewprim
virtual void FixParameters()
Method which actually implements ConstrainChemicalPotentials() (for backward compatibility).
bool m_FluctuationsCalculated
void CalculateFluctuations()
Dummy function. Fluctuations not yet supported.
virtual void CalculatePressuresGCE()
Calculates the grand-canonical pressures.
Class containing the particle list.
virtual void SetParameters(const ThermalModelParameters ¶ms)
The thermal parameters.
ThermalModelParameters m_Parameters
Structure containing all thermal parameters of the model.
int ComponentsNumber() const
Number of different particle species in the list.
Contains some extra mathematical functions used in the code.
ThermalParticleSystem * m_TPS
std::vector< double > m_wtot
std::vector< double > m_pressuresGCE
double BesselI(int n, double x)
integer order modified Bessel function I_n(x)
std::vector< double > m_energydensitiesGCE
std::vector< int > m_StrVals
const std::vector< ThermalParticle > & Particles() const
Returns the vector of all particle species.
std::vector< double > m_partialS
ThermalModelInteraction m_InteractionModel
virtual void ValidateCalculation()
Checks whether issues have occured during the calculation of particle densities in the CalculateDensi...
virtual void CalculateSums(double Vc)
Calculates the strangeness-canonical partition functions.
void UseStatistics(bool enable)
Use quantum statistics.
Name
Set of all conserved charges considered.
std::vector< double > m_Zsum
virtual void CalculateDensities()
Calculates the primordial and total (after decays) densities of all species.
virtual void SetStrangenessChemicalPotential(double muS)
Override the base class method to always set to zero.
std::vector< double > m_densities
virtual ~ThermalModelCanonicalStrangeness(void)
Destroy the ThermalModelCanonicalStrangeness object.
virtual void SetParameters(const ThermalModelParameters ¶ms)
The thermal parameters.
virtual void ChangeTPS(ThermalParticleSystem *TPS)
Change the particle list.
bool UsePartialChemicalEquilibrium()
Whether partial chemical equilibrium with additional chemical potentials is used. ...
Strangeness-canonical ensemble.
ThermalModelEnsemble m_Ensemble
std::vector< double > m_skewtot
virtual void CalculateEnergyDensitiesGCE()
Calculates the grand-canonical energy densities.
virtual double CalculatePressure()
Implementation of the equation of state functions.
virtual double CalculateEnergyDensity()
std::vector< double > m_densitiesGCE
The main namespace where all classes and functions of the Thermal-FIST library reside.
virtual double CalculateEntropyDensity()