A (very) simple implementation of the van der Waals EOS.
More...
#include <vdW.hpp>
|
| vdWEOS1 (double a, double b) |
| Intializer, taking the a and b constants directly.
|
|
double | get_a () const |
| Accessor functions.
|
|
double | get_b () const |
|
template<class VecType > |
auto | R (const VecType &) const |
| Get the universal gas constant.
|
|
template<typename TType , typename RhoType , typename VecType > |
auto | alphar (const TType &T, const RhoType &rhotot, const VecType &molefrac) const |
|
double | p (double T, double v) |
| For testing, provide the pressure explicit form of the EOS.
|
|
|
const double | Ru = 1.380649e-23 * 6.02214076e23 |
| Exact value, given by k_B*N_A.
|
|
A (very) simple implementation of the van der Waals EOS.
Definition at line 10 of file vdW.hpp.
◆ vdWEOS1()
teqp::vdWEOS1::vdWEOS1 |
( |
double | a, |
|
|
double | b ) |
|
inline |
Intializer, taking the a and b constants directly.
Definition at line 15 of file vdW.hpp.
◆ alphar()
template<typename TType , typename RhoType , typename VecType >
auto teqp::vdWEOS1::alphar |
( |
const TType & | T, |
|
|
const RhoType & | rhotot, |
|
|
const VecType & | molefrac ) const |
|
inline |
The evaluation of \( \alpha^{\rm r}=a/(RT) \)
- Parameters
-
T | The temperature |
rhotot | The molar density |
molefrac | The mole fractions of each component |
Definition at line 33 of file vdW.hpp.
◆ get_a()
double teqp::vdWEOS1::get_a |
( |
| ) |
const |
|
inline |
Accessor functions.
Definition at line 18 of file vdW.hpp.
◆ get_b()
double teqp::vdWEOS1::get_b |
( |
| ) |
const |
|
inline |
◆ p()
double teqp::vdWEOS1::p |
( |
double | T, |
|
|
double | v ) |
|
inline |
For testing, provide the pressure explicit form of the EOS.
Definition at line 38 of file vdW.hpp.
◆ R()
template<class VecType >
auto teqp::vdWEOS1::R |
( |
const VecType & | | ) |
const |
|
inline |
Get the universal gas constant.
- Note
- Here the real universal gas constant, with no composition dependence
Definition at line 26 of file vdW.hpp.
◆ Ru
const double teqp::vdWEOS1::Ru = 1.380649e-23 * 6.02214076e23 |
Exact value, given by k_B*N_A.
Definition at line 21 of file vdW.hpp.
The documentation for this class was generated from the following file: