CoolProp 8.0.0
An open-source fluid property and humid air property database
Public Member Functions | List of all members
BasicMathiasCopemanAlphaFunction Class Reference

Detailed Description

An implementation of AbstractCubicAlphaFunction for the baseline alpha function of PR or SRK.

Definition at line 68 of file GeneralizedCubic.h.

#include <GeneralizedCubic.h>

Inheritance diagram for BasicMathiasCopemanAlphaFunction:
AbstractCubicAlphaFunction

Public Member Functions

 BasicMathiasCopemanAlphaFunction (double a0, double m_ii, 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
 

Constructor & Destructor Documentation

◆ BasicMathiasCopemanAlphaFunction()

BasicMathiasCopemanAlphaFunction::BasicMathiasCopemanAlphaFunction ( double  a0,
double  m_ii,
double  Tr_over_Tci 
)
inline

Definition at line 72 of file GeneralizedCubic.h.

Member Function Documentation

◆ calc_all_terms()

void BasicMathiasCopemanAlphaFunction::calc_all_terms ( double  tau,
std::array< double, 5 > &  terms 
)
overridevirtual

Compute all 5 tau-derivatives at once. Default falls back to 5 separate term() calls.

Reimplemented from AbstractCubicAlphaFunction.

Definition at line 125 of file GeneralizedCubic.cpp.

◆ term()

double BasicMathiasCopemanAlphaFunction::term ( double  tau,
std::size_t  itau 
)
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.

Parameters
tauThe reciprocal reduced temperature, Tr/T
itauThe 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 10 of file GeneralizedCubic.cpp.


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