teqp 0.22.0
Loading...
Searching...
No Matches
teqp::vdWEOS1 Class Reference

A (very) simple implementation of the van der Waals EOS. More...

#include <vdW.hpp>

Public Member Functions

 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.
 

Public Attributes

const double Ru = 1.380649e-23 * 6.02214076e23
 Exact value, given by k_B*N_A.
 

Detailed Description

A (very) simple implementation of the van der Waals EOS.

Definition at line 10 of file vdW.hpp.

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ 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
TThe temperature
rhototThe molar density
molefracThe 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

Definition at line 19 of file vdW.hpp.

◆ 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.

Member Data Documentation

◆ 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: