CoolProp  6.6.1dev
An open-source fluid property and humid air property database
Public Member Functions | Public Attributes | Protected Attributes | List of all members
CoolProp::ResidualHelmholtzGaoB Class Reference

Detailed Description

Definition at line 573 of file Helmholtz.h.

#include <Helmholtz.h>

Inheritance diagram for CoolProp::ResidualHelmholtzGaoB:
CoolProp::BaseHelmholtzTerm

Public Member Functions

 ResidualHelmholtzGaoB ()
 Default Constructor. More...
 
 ResidualHelmholtzGaoB (const std::vector< CoolPropDbl > &n, const std::vector< CoolPropDbl > &t, const std::vector< CoolPropDbl > &d, const std::vector< CoolPropDbl > &eta, const std::vector< CoolPropDbl > &beta, const std::vector< CoolPropDbl > &gamma, const std::vector< CoolPropDbl > &epsilon, const std::vector< CoolPropDbl > &b)
 Constructor given coefficients. More...
 
void to_json (rapidjson::Value &el, rapidjson::Document &doc)
 
void all (const CoolPropDbl &tau, const CoolPropDbl &delta, HelmholtzDerivatives &derivs) throw ()
 
- Public Member Functions inherited from CoolProp::BaseHelmholtzTerm
 BaseHelmholtzTerm ()
 
virtual ~BaseHelmholtzTerm ()
 
virtual CoolPropDbl base (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the base, non-dimensional, Helmholtz energy term (no derivatives) [-]. More...
 
virtual CoolPropDbl dTau (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the first partial derivative of Helmholtz energy term with respect to tau [-]. More...
 
virtual CoolPropDbl dTau2 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the second partial derivative of Helmholtz energy term with respect to tau [-]. More...
 
virtual CoolPropDbl dDelta_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the second mixed partial derivative (delta1,dtau1) of Helmholtz energy term with respect to delta and tau [-]. More...
 
virtual CoolPropDbl dDelta (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the first partial derivative of Helmholtz energy term with respect to delta [-]. More...
 
virtual CoolPropDbl dDelta2 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the second partial derivative of Helmholtz energy term with respect to delta [-]. More...
 
virtual CoolPropDbl dDelta2_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the third mixed partial derivative (delta2,dtau1) of Helmholtz energy term with respect to delta and tau [-]. More...
 
virtual CoolPropDbl dDelta_dTau2 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the third mixed partial derivative (delta1,dtau2) of Helmholtz energy term with respect to delta and tau [-]. More...
 
virtual CoolPropDbl dTau3 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the third partial derivative of Helmholtz energy term with respect to tau [-]. More...
 
virtual CoolPropDbl dDelta3 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the third partial derivative of Helmholtz energy term with respect to delta [-]. More...
 
virtual CoolPropDbl dTau4 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 Returns the fourth partial derivative of Helmholtz energy term with respect to tau [-]. More...
 
virtual CoolPropDbl dDelta_dTau3 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 
virtual CoolPropDbl dDelta2_dTau2 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 
virtual CoolPropDbl dDelta3_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 
virtual CoolPropDbl dDelta4 (const CoolPropDbl &tau, const CoolPropDbl &delta) throw ()
 

Public Attributes

bool enabled
 

Protected Attributes

std::vector< double > n
 
std::vector< double > t
 
std::vector< double > d
 
std::vector< double > eta
 
std::vector< double > beta
 
std::vector< double > gamma
 
std::vector< double > epsilon
 
std::vector< double > b
 

Constructor & Destructor Documentation

◆ ResidualHelmholtzGaoB() [1/2]

CoolProp::ResidualHelmholtzGaoB::ResidualHelmholtzGaoB ( )
inline

Default Constructor.

Definition at line 582 of file Helmholtz.h.

◆ ResidualHelmholtzGaoB() [2/2]

CoolProp::ResidualHelmholtzGaoB::ResidualHelmholtzGaoB ( const std::vector< CoolPropDbl > &  n,
const std::vector< CoolPropDbl > &  t,
const std::vector< CoolPropDbl > &  d,
const std::vector< CoolPropDbl > &  eta,
const std::vector< CoolPropDbl > &  beta,
const std::vector< CoolPropDbl > &  gamma,
const std::vector< CoolPropDbl > &  epsilon,
const std::vector< CoolPropDbl > &  b 
)
inline

Constructor given coefficients.

Definition at line 587 of file Helmholtz.h.

Member Function Documentation

◆ all()

void CoolProp::ResidualHelmholtzGaoB::all ( const CoolPropDbl tau,
const CoolPropDbl delta,
HelmholtzDerivatives derivs 
)
throw (
)
virtual

Sympy code:

import sympy as sy n,t,d,eta,beta,gamma,epsilon,b,tau,delta = sy.symbols('n,t,d,eta,beta,gamma,epsilon,b,tau,delta') Fdelta = delta**d*sy.exp(eta*(delta-epsilon)**2) Ftau = tau**t*sy.exp(1/(beta*(tau-gamma)**2+b))

alphar = n*Ftau*Fdelta display(sy.ccode(Ftau)) display(sy.ccode(Fdelta))

display(sy.ccode(sy.simplify(sy.diff(Fdelta, delta, 1)*delta**1))) display(sy.ccode(sy.simplify(sy.diff(Fdelta, delta, 2)*delta**2))) display(sy.ccode(sy.simplify(sy.diff(Fdelta, delta, 3)*delta**3))) display(sy.ccode(sy.simplify(sy.diff(Fdelta, delta, 4)*delta**4)))

display(sy.ccode(sy.simplify(sy.diff(Ftau, tau, 1)*tau**1))) display(sy.ccode(sy.simplify(sy.diff(Ftau, tau, 2)*tau**2))) display(sy.ccode(sy.simplify(sy.diff(Ftau, tau, 3)*tau**3))) display(sy.ccode(sy.simplify(sy.diff(Ftau, tau, 4)*tau**4)))

Implements CoolProp::BaseHelmholtzTerm.

Definition at line 588 of file Helmholtz.cpp.

◆ to_json()

void CoolProp::ResidualHelmholtzGaoB::to_json ( rapidjson::Value &  el,
rapidjson::Document &  doc 
)

Member Data Documentation

◆ b

std::vector<double> CoolProp::ResidualHelmholtzGaoB::b
protected

Definition at line 576 of file Helmholtz.h.

◆ beta

std::vector<double> CoolProp::ResidualHelmholtzGaoB::beta
protected

Definition at line 576 of file Helmholtz.h.

◆ d

std::vector<double> CoolProp::ResidualHelmholtzGaoB::d
protected

Definition at line 576 of file Helmholtz.h.

◆ enabled

bool CoolProp::ResidualHelmholtzGaoB::enabled

Definition at line 579 of file Helmholtz.h.

◆ epsilon

std::vector<double> CoolProp::ResidualHelmholtzGaoB::epsilon
protected

Definition at line 576 of file Helmholtz.h.

◆ eta

std::vector<double> CoolProp::ResidualHelmholtzGaoB::eta
protected

Definition at line 576 of file Helmholtz.h.

◆ gamma

std::vector<double> CoolProp::ResidualHelmholtzGaoB::gamma
protected

Definition at line 576 of file Helmholtz.h.

◆ n

std::vector<double> CoolProp::ResidualHelmholtzGaoB::n
protected

Definition at line 576 of file Helmholtz.h.

◆ t

std::vector<double> CoolProp::ResidualHelmholtzGaoB::t
protected

Definition at line 576 of file Helmholtz.h.


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