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

Detailed Description

An implementation of AbstractCubicAlphaFunction for the Mathias-Copeman alpha function.

Definition at line 95 of file GeneralizedCubic.h.

#include <GeneralizedCubic.h>

Inheritance diagram for MathiasCopemanAlphaFunction:
AbstractCubicAlphaFunction

Public Member Functions

 MathiasCopemanAlphaFunction (double a0, double c1, double c2, double c3, 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

◆ MathiasCopemanAlphaFunction()

MathiasCopemanAlphaFunction::MathiasCopemanAlphaFunction ( double  a0,
double  c1,
double  c2,
double  c3,
double  Tr_over_Tci 
)
inline

Definition at line 98 of file GeneralizedCubic.h.

Member Function Documentation

◆ calc_all_terms()

void MathiasCopemanAlphaFunction::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 164 of file GeneralizedCubic.cpp.

◆ term()

double MathiasCopemanAlphaFunction::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 36 of file GeneralizedCubic.cpp.


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