CoolProp
6.6.1dev
An open-source fluid property and humid air property database
|
Definition at line 573 of file Helmholtz.h.
#include <Helmholtz.h>
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 |
|
inline |
Default Constructor.
Definition at line 582 of file Helmholtz.h.
|
inline |
Constructor given coefficients.
Definition at line 587 of file Helmholtz.h.
|
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.
void CoolProp::ResidualHelmholtzGaoB::to_json | ( | rapidjson::Value & | el, |
rapidjson::Document & | doc | ||
) |
|
protected |
Definition at line 576 of file Helmholtz.h.
|
protected |
Definition at line 576 of file Helmholtz.h.
|
protected |
Definition at line 576 of file Helmholtz.h.
bool CoolProp::ResidualHelmholtzGaoB::enabled |
Definition at line 579 of file Helmholtz.h.
|
protected |
Definition at line 576 of file Helmholtz.h.
|
protected |
Definition at line 576 of file Helmholtz.h.
|
protected |
Definition at line 576 of file Helmholtz.h.
|
protected |
Definition at line 576 of file Helmholtz.h.
|
protected |
Definition at line 576 of file Helmholtz.h.