|
CoolProp 8.0.0
An open-source fluid property and humid air property database
|
An implementation of AbstractCubicAlphaFunction for the Twu alpha function.
Definition at line 81 of file GeneralizedCubic.h.
#include <GeneralizedCubic.h>
Public Member Functions | |
| TwuAlphaFunction (double a0, double L, double M, double N, double Tr_over_Tci) | |
| double | term (double tau, std::size_t itau) override |
| A "term" is the value of a_ii(tau) = a0_ii * alpha(tau), or one of its tau-derivatives, for this pure component's attractive energy parameter. More... | |
| void | calc_all_terms (double tau, std::array< double, 5 > &terms) override |
| Compute all 5 tau-derivatives at once. Default falls back to 5 separate term() calls. More... | |
Public Member Functions inherited from AbstractCubicAlphaFunction | |
| virtual | ~AbstractCubicAlphaFunction ()=default |
| virtual double | term (double tau, std::size_t itau)=0 |
| A "term" is the value of a_ii(tau) = a0_ii * alpha(tau), or one of its tau-derivatives, for this pure component's attractive energy parameter. More... | |
| virtual void | calc_all_terms (double tau, std::array< double, 5 > &terms) |
| Compute all 5 tau-derivatives at once. Default falls back to 5 separate term() calls. More... | |
| void | set_Tr_over_Tci (double Tr_over_Tci) |
| unsigned long | version () const |
| AbstractCubicAlphaFunction (double a0, double Tr_over_Tci) | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractCubicAlphaFunction | |
| double | a0 |
| The constant term multiplying the alpha function. More... | |
| double | Tr_over_Tci |
| The (constant) reducing temperature divided by the critical temperature of the pure component. More... | |
| double | sqrt_Tr_Tci |
| The sqrt of the (constant) reducing temperature divided by the critical temperature of the pure component. More... | |
| std::vector< double > | c |
| unsigned long | m_version = 0 |
|
inline |
Definition at line 84 of file GeneralizedCubic.h.
|
overridevirtual |
Compute all 5 tau-derivatives at once. Default falls back to 5 separate term() calls.
Reimplemented from AbstractCubicAlphaFunction.
Definition at line 143 of file GeneralizedCubic.cpp.
|
overridevirtual |
A "term" is the value of a_ii(tau) = a0_ii * alpha(tau), or one of its tau-derivatives, for this pure component's attractive energy parameter.
| tau | The reciprocal reduced temperature, Tr/T |
| itau | The order of the derivative with respect to tau to return: itau=0 returns a_ii itself, itau=1 returns da_ii/dtau, itau=2 the second derivative, and so on. Implementations support itau in the range 0-4 and throw for higher orders. |
Implements AbstractCubicAlphaFunction.
Definition at line 82 of file GeneralizedCubic.cpp.