teqp 0.22.0
Loading...
Searching...
No Matches
teqp::TwuAlphaFunction< NumType > Class Template Reference

The Twu alpha function used by Peng-Robinson and SRK. More...

#include <cubics.hpp>

Public Member Functions

 TwuAlphaFunction (NumType Tci, const Eigen::Array3d &c)
 
template<typename TType >
auto operator() (const TType &T) const
 

Detailed Description

template<typename NumType>
class teqp::TwuAlphaFunction< NumType >

The Twu alpha function used by Peng-Robinson and SRK.

\[ \alpha_i = \left(\frac{T}{T_{ci}\right)^{c_2(c_1-1)}\exp\left[c_0(1-\left(\frac{T}{T_{ci}\right)^{c_1c_2})\right] \]

Definition at line 51 of file cubics.hpp.

Constructor & Destructor Documentation

◆ TwuAlphaFunction()

template<typename NumType >
teqp::TwuAlphaFunction< NumType >::TwuAlphaFunction ( NumType Tci,
const Eigen::Array3d & c )
inline

Definition at line 56 of file cubics.hpp.

Member Function Documentation

◆ operator()()

template<typename NumType >
template<typename TType >
auto teqp::TwuAlphaFunction< NumType >::operator() ( const TType & T) const
inline

Definition at line 62 of file cubics.hpp.


The documentation for this class was generated from the following file: