Thermal-FIST 1.5
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
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
21
22namespace 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
63 double btilrr(double r1, double r2);// { return 2. * brr(r1, r2) * brr(r1, r1) / (brr(r1, r1) + brr(r2, r2)); }
64
70 std::vector< std::vector<double> > bijMatrix(const ThermalModelBase* model);
71
77 std::vector< std::vector<double> > aijMatrix(const ThermalModelBase* model);
78
79 }
80
84 std::vector<std::vector<double>> GetBaryonBaryonInteractionMatrix(const ThermalParticleSystem *TPS, double param);
85
86} // namespace thermalfist
87
88#endif
Abstract base class for an HRG model implementation.
Contains several helper routines.
std::vector< std::vector< double > > bijMatrix(const ThermalModelBase *model)
Returns the matrix of excluded volume coefficients of an HRG model.
double rv(double v)
Computes the radius parameter from a given excluded volume parameter value.
double vr(double r)
Computes the excluded volume parameter from a given radius parameter value.
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...
constexpr double Pi()
Pi constant.
Definition xMath.h:23
The main namespace where all classes and functions of the Thermal-FIST library reside.
Definition CosmicEoS.h:9
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...
Contains some extra mathematical functions used in the code.