CoolProp
Public Member Functions | Public Attributes | Protected Attributes | List of all members
CoolProp::ResidualHelmholtzGaoB Class Reference
Inheritance diagram for CoolProp::ResidualHelmholtzGaoB:
CoolProp::BaseHelmholtzTerm

Public Member Functions

 ResidualHelmholtzGaoB ()
 Default Constructor.
 
 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.
 
void to_json (rapidjson::Value &el, rapidjson::Document &doc)
 
void all (const CoolPropDbl &tau, const CoolPropDbl &delta, HelmholtzDerivatives &derivs) throw ()
 Sympy code: More...
 
- Public Member Functions inherited from CoolProp::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
 

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.


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