8 #ifndef EXCLUDEDVOLUMEHELPER_H 9 #define EXCLUDEDVOLUMEHELPER_H 24 namespace CuteHRGHelper {
32 inline double vr(
double r) {
return (16. *
xMath::Pi() / 3. * pow(r, 3)); }
41 inline double rv(
double v) {
return pow(v * 3. / (16. *
xMath::Pi()), 1. / 3.); }
52 inline double brr(
double r1,
double r2) {
return (2. *
xMath::Pi() / 3.) * pow(r1 + r2, 3); }
Abstract base class for an HRG model implementation.
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.