13 double bij =
brr(r1, r2);
14 if (bij == 0.0)
return 0.;
15 double bii =
brr(r1, r1);
16 if (bii == 0.0)
return 0.;
17 double bjj =
brr(r2, r2);
18 return 2. * bij * bii / (bii + bjj);
46 std::vector<std::vector<double>> ret(TPS->
Particles().size(), std::vector<double>(TPS->
Particles().size(), 0.));
47 for (
int i1 = 0; i1 < TPS->
Particles().size(); ++i1) {
48 for (
int i2 = 0; i2 < TPS->
Particles().size(); ++i2) {
50 int B1 = TPS->
Particles()[i1].BaryonCharge();
52 int B2 = TPS->
Particles()[i2].BaryonCharge();
53 if ((B1 > 0 && B2 > 0) || (B1 < 0 && B2 < 0)) {
Contains some functions to deal with excluded volumes.
Abstract base class for an HRG model implementation.
double RepulsionCoefficient(int i, int j) const
virtual double AttractionCoefficient(int, int) const
QvdW mean field attraction coefficient .
int ComponentsNumber() const
Number of different particle species in the list.
Class containing the particle list.
const std::vector< ThermalParticle > & Particles() const
Returns the vector of all particle species.
std::vector< std::vector< double > > bijMatrix(const ThermalModelBase *model)
Returns the matrix of excluded volume coefficients of an HRG model.
double btilrr(double r1, double r2)
Computes the asymmetric 2nd virial coefficient of the classical hard spheres equation of state from ...
std::vector< std::vector< double > > aijMatrix(const ThermalModelBase *model)
Returns the matrix of van der Waals attraction coefficients of an HRG model.
double brr(double r1, double r2)
Computes the symmetric 2nd virial coefficient of the classical hard spheres equation of state from t...
std::vector< std::vector< double > > GetBaryonBaryonInteractionMatrix(const ThermalParticleSystem *TPS, double param)
Returns the matrix of attraction and repulsion parameters for baryon-baryon and antibaryon-antibaryon...