Thermal-FIST  1.3
Package for hadron resonance gas model applications
ExcludedVolumeHelper.h
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  */
8 #ifndef EXCLUDEDVOLUMEHELPER_H
9 #define EXCLUDEDVOLUMEHELPER_H
10 
11 #include "HRGBase/xMath.h"
13 #include <cmath>
14 
22 namespace thermalfist {
23 
24  namespace CuteHRGHelper {
32  inline double vr(double r) { return (16. * xMath::Pi() / 3. * pow(r, 3)); }
33 
41  inline double rv(double v) { return pow(v * 3. / (16. * xMath::Pi()), 1. / 3.); }
42 
52  inline double brr(double r1, double r2) { return (2. * xMath::Pi() / 3.) * pow(r1 + r2, 3); }
53 
59  std::vector< std::vector<double> > bijMatrix(const ThermalModelBase* model);
60 
66  std::vector< std::vector<double> > aijMatrix(const ThermalModelBase* model);
67 
68  }
69 
70 } // namespace thermalfist
71 
72 #endif
Abstract base class for an HRG model implementation.
double Pi()
Pi constant.
Definition: xMath.h:24
Contains some extra mathematical functions used in the code.
double rv(double v)
Computes the radius parameter from a given excluded volume parameter value.
std::vector< std::vector< double > > bijMatrix(const ThermalModelBase *model)
Returns the matrix of excluded volume 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 > > aijMatrix(const ThermalModelBase *model)
Returns the matrix of van der Waals attraction coefficients of an HRG model.
double vr(double r)
Computes the excluded volume parameter from a given radius parameter value.
The main namespace where all classes and functions of the Thermal-FIST library reside.