13 #include "ThermalFISTConfig.h" 17 #ifdef ThermalFIST_USENAMESPACE 28 int main(
int argc,
char *argv[])
32 string listname = string(ThermalFIST_INPUT_FOLDER) +
"/list/thermus23/list.dat";
45 config = atoi(argv[1]);
60 printf(
"#Calculating thermodynamics at \\mu = 0 in Id-HRG model\n");
72 printf(
"#Calculating thermodynamics at \\mu = 0 in EV-HRG model with r = %lf fm\n", rad);
90 if ((B1 > 0 && B2 > 0) || (B1 < 0 && B2 < 0))
103 printf(
"#Calculating thermodynamics at \\mu = 0 in QvdW-HRG model\n");
105 modeltype =
"QvdW-HRG";
111 modeltype =
"Id-HRG";
132 sprintf(tmpc,
"cpc1.%s.TDep.out", modeltype.c_str());
133 FILE *fout = fopen(tmpc,
"w");
136 printf(
"%15s%15s%15s%15s%15s%15s%15s\n",
147 fprintf(fout,
"%15s%15s%15s%15s%15s%15s%15s\n",
164 double Tmax = 0.2001;
167 for (
double T = Tmin; T <= Tmax; T += dT) {
174 printf(
"%15lf", T * 1000.);
175 fprintf(fout,
"%15lf", T * 1000.);
181 printf(
"%15lf", pT4);
182 fprintf(fout,
"%15lf", pT4);
187 printf(
"%15lf", eT4);
188 fprintf(fout,
"%15lf", eT4);
193 printf(
"%15lf", sT3);
194 fprintf(fout,
"%15lf", sT3);
200 vector<double> baryon_charges;
208 if (chiB.size() >= 4) {
210 printf(
"%15E", chiB[1]);
211 fprintf(fout,
"%15E", chiB[1]);
214 printf(
"%15E", chiB[3]);
215 fprintf(fout,
"%15E", chiB[3]);
218 printf(
"%15E", chiB[1] - chiB[3]);
219 fprintf(fout,
"%15E", chiB[1] - chiB[3]);
236 printf(
"%30s %lf s\n",
"Running time:", (wt2 - wt1));
237 printf(
"%30s %lf s\n",
"Time per single calculation:", (wt2 - wt1) / iters);
Abstract base class for an HRG model implementation.
virtual void SetStrangenessChemicalPotential(double muS)
Set the strangeness chemical potential.
double GeVtoifm()
A constant to transform GeV into fm .
virtual void SetElectricChemicalPotential(double muQ)
Set the electric chemical potential.
virtual void SetBaryonChemicalPotential(double muB)
Set the baryon chemical potential.
const ThermalParticle & Particle(int id) const
ThermalParticle object corresponding to particle species with a provided 0-based index.
virtual void SetStatistics(bool stats)
void SetUseWidth(bool useWidth)
Sets whether finite resonance widths are used. Deprecated.
Class implementing the diagonal excluded-volume model.
Class containing the particle list.
virtual void SetRadius(double)
Set the same excluded volume radius parameter for all species.
int ComponentsNumber() const
Number of different particle species in the list.
virtual void SetTemperature(double T)
Set the temperature.
virtual void SetVirial(int, int, double)
Set the excluded volume coefficient .
virtual void FillChemicalPotentials()
Sets the chemical potentials of all particles.
int BaryonCharge() const
Particle's baryon number.
virtual double CalculateEnergyDensity()=0
virtual void SetCharmChemicalPotential(double muC)
Set the charm chemical potential.
int main(int argc, char *argv[])
virtual double CalculateEntropyDensity()=0
virtual void CalculateDensities()
Calculates the primordial and total (after decays) densities of all species.
virtual double CalculatePressure()=0
Implementation of the equation of state functions.
virtual std::vector< double > CalculateChargeFluctuations(const std::vector< double > &chgs, int order=4)
Calculates fluctuations (diagonal susceptibilities) of an arbitrary "conserved" charge.
virtual void SetAttraction(int, int, double)
Set the vdW mean field attraction coefficient .
Class implementing the Ideal HRG model.
ThermalModelVDW ThermalModelVDWFull
For backward compatibility.
The main namespace where all classes and functions of the Thermal-FIST library reside.
ThermalParticleSystem * TPS()