Thermal-FIST  1.3
Package for hadron resonance gas model applications
ExcludedVolumeHelper.cpp
Go to the documentation of this file.
1 /*
2  * Thermal-FIST package
3  *
4  * Copyright (c) 2016-2018 Volodymyr Vovchenko
5  *
6  * GNU General Public License (GPLv3 or later)
7  */
9 
10  std::vector< std::vector<double> > thermalfist::CuteHRGHelper::bijMatrix(const ThermalModelBase * model)
11  {
12  std::vector< std::vector<double> > ret(model->ComponentsNumber());
13  for (int i = 0; i < model->ComponentsNumber(); ++i) {
14  ret[i].resize(model->ComponentsNumber());
15  for (int j = 0; j < model->ComponentsNumber(); ++j) {
16  ret[i][j] = model->RepulsionCoefficient(i, j);
17  }
18  }
19  return ret;
20  }
21 
22  std::vector< std::vector<double> > thermalfist::CuteHRGHelper::aijMatrix(const ThermalModelBase * model)
23  {
24  std::vector< std::vector<double> > ret(model->ComponentsNumber());
25  for (int i = 0; i < model->ComponentsNumber(); ++i) {
26  ret[i].resize(model->ComponentsNumber());
27  for (int j = 0; j < model->ComponentsNumber(); ++j) {
28  ret[i][j] = model->AttractionCoefficient(i, j);
29  }
30  }
31  return ret;
32  }
Abstract base class for an HRG model implementation.
virtual double AttractionCoefficient(int, int) const
QvdW mean field attraction coefficient .
std::vector< std::vector< double > > bijMatrix(const ThermalModelBase *model)
Returns the matrix of excluded volume coefficients of an HRG model.
Contains some functions do deal with excluded volumes.
std::vector< std::vector< double > > aijMatrix(const ThermalModelBase *model)
Returns the matrix of van der Waals attraction coefficients of an HRG model.
double RepulsionCoefficient(int i, int j) const
int ComponentsNumber() const
Number of different particle species in the list.