CoolProp
4.2.5
An open-source fluid property and humid air property database
|
#include <Helmholtz.h>
Public Member Functions | |
phir_power () | |
phir_power (std::vector< double >, std::vector< double >, std::vector< double >, int, int) | |
phir_power (std::vector< double >, std::vector< double >, std::vector< double >, std::vector< double >, int, int) | |
phir_power (const double[], const double[], const double[], int, int, int) | |
phir_power (double[], double[], double[], int, int, int) | |
phir_power (const double[], const double[], const double[], const double[], int, int, int) | |
phir_power (double[], double[], double[], double[], int, int, int) | |
void | cache () |
Cache some terms for internal use. More... | |
~phir_power () | |
void | to_json (rapidjson::Value &el, rapidjson::Document &doc) |
double | base (double tau, double delta) throw () |
double | dDelta (double tau, double delta) throw () |
double | dTau (double tau, double delta) throw () |
double | dDelta2 (double tau, double delta) throw () |
double | dDelta_dTau (double tau, double delta) throw () |
double | dTau2 (double tau, double delta) throw () |
double | dDelta3 (double tau, double delta) throw () |
double | dDelta2_dTau (double tau, double delta) throw () |
double | dDelta_dTau2 (double tau, double delta) throw () |
double | dTau3 (double tau, double delta) throw () |
std::vector< double > | dDeltaV (std::vector< double > tau, std::vector< double > delta) throw () |
Vectorized form so iteration happens at c++ level. More... | |
std::vector< double > | dDelta2V (std::vector< double > tau, std::vector< double > delta) throw () |
std::vector< double > | dTau2V (std::vector< double > tau, std::vector< double > delta) throw () |
std::vector< double > | dDelta_dTauV (std::vector< double > tau, std::vector< double > delta) throw () |
double | A (double log_tau, double log_delta, double delta, int i) throw () |
Derivatives for a single term for use in fitter. More... | |
double | dA_dDelta (double log_tau, double log_delta, double delta, int i) throw () |
double | dA_dTau (double log_tau, double log_delta, double delta, int i) throw () |
double | d2A_dTau2 (double log_tau, double log_delta, double delta, int i) throw () |
double | d2A_dDelta2 (double log_tau, double log_delta, double delta, int i) throw () |
double | d2A_dDelta_dTau (double log_tau, double log_delta, double delta, int i) throw () |
Public Member Functions inherited from phi_BC | |
phi_BC () | |
virtual | ~phi_BC () |
Public Attributes | |
unsigned int | iStart |
unsigned int | iEnd |
std::vector< double > | n |
The coefficients multiplying each term. More... | |
std::vector< double > | d |
The power for the delta terms. More... | |
std::vector< double > | t |
The powers for the tau terms. More... | |
std::vector< double > | l |
Terms are of the form
\[ \phi_r = n delta ^d tau^t \exp(-delta^l) \]
if l>0 or if l==0, then
\[ \phi_r = n delta ^d tau^t \]
Definition at line 91 of file Helmholtz.h.
|
inline |
Definition at line 103 of file Helmholtz.h.
phir_power::phir_power | ( | std::vector< double > | n_in, |
std::vector< double > | d_in, | ||
std::vector< double > | t_in, | ||
int | iStart_in, | ||
int | iEnd_in | ||
) |
Definition at line 67 of file Helmholtz.cpp.
phir_power::phir_power | ( | std::vector< double > | n_in, |
std::vector< double > | d_in, | ||
std::vector< double > | t_in, | ||
std::vector< double > | l_in, | ||
int | iStart_in, | ||
int | iEnd_in | ||
) |
Definition at line 57 of file Helmholtz.cpp.
phir_power::phir_power | ( | const double | n_in[], |
const double | d_in[], | ||
const double | t_in[], | ||
int | iStart_in, | ||
int | iEnd_in, | ||
int | N | ||
) |
Definition at line 77 of file Helmholtz.cpp.
phir_power::phir_power | ( | double | [], |
double | [], | ||
double | [], | ||
int | , | ||
int | , | ||
int | |||
) |
phir_power::phir_power | ( | const double | n_in[], |
const double | d_in[], | ||
const double | t_in[], | ||
const double | l_in[], | ||
int | iStart_in, | ||
int | iEnd_in, | ||
int | N | ||
) |
Definition at line 97 of file Helmholtz.cpp.
phir_power::phir_power | ( | double | [], |
double | [], | ||
double | [], | ||
double | [], | ||
int | , | ||
int | , | ||
int | |||
) |
|
inline |
Definition at line 118 of file Helmholtz.h.
double phir_power::A | ( | double | log_tau, |
double | log_delta, | ||
double | delta, | ||
int | i | ||
) | |||
throw | ( | ||
) |
Derivatives for a single term for use in fitter.
Definition at line 257 of file Helmholtz.cpp.
|
virtual |
Returns the base, non-dimensional, Helmholtz energy term (no derivatives) [-]
tau | Reciprocal reduced temperature where tau=Tc/T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 130 of file Helmholtz.cpp.
void phir_power::cache | ( | ) |
Cache some terms for internal use.
Destructor for the phir_power class. No implementation
Definition at line 117 of file Helmholtz.cpp.
double phir_power::d2A_dDelta2 | ( | double | log_tau, |
double | log_delta, | ||
double | delta, | ||
int | i | ||
) | |||
throw | ( | ||
) |
Definition at line 277 of file Helmholtz.cpp.
double phir_power::d2A_dDelta_dTau | ( | double | log_tau, |
double | log_delta, | ||
double | delta, | ||
int | i | ||
) | |||
throw | ( | ||
) |
Definition at line 286 of file Helmholtz.cpp.
double phir_power::d2A_dTau2 | ( | double | log_tau, |
double | log_delta, | ||
double | delta, | ||
int | i | ||
) | |||
throw | ( | ||
) |
Definition at line 303 of file Helmholtz.cpp.
double phir_power::dA_dDelta | ( | double | log_tau, |
double | log_delta, | ||
double | delta, | ||
int | i | ||
) | |||
throw | ( | ||
) |
Definition at line 264 of file Helmholtz.cpp.
double phir_power::dA_dTau | ( | double | log_tau, |
double | log_delta, | ||
double | delta, | ||
int | i | ||
) | |||
throw | ( | ||
) |
Definition at line 296 of file Helmholtz.cpp.
|
virtual |
Returns the first partial derivative of Helmholtz energy term with respect to delta [-]
tau | Reciprocal reduced temperature where tau=Tc / T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 199 of file Helmholtz.cpp.
|
virtual |
Returns the second partial derivative of Helmholtz energy term with respect to delta [-]
tau | Reciprocal reduced temperature where tau=Tc / T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 208 of file Helmholtz.cpp.
|
virtual |
Returns the third mixed partial derivative (delta2,dtau1) of Helmholtz energy term with respect to delta and tau [-]
tau | Reciprocal reduced temperature where tau=Tc / T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 233 of file Helmholtz.cpp.
std::vector< double > phir_power::dDelta2V | ( | std::vector< double > | tau, |
std::vector< double > | delta | ||
) | |||
throw | ( | ||
) |
Definition at line 321 of file Helmholtz.cpp.
|
virtual |
Returns the third partial derivative of Helmholtz energy term with respect to delta [-]
tau | Reciprocal reduced temperature where tau=Tc / T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 217 of file Helmholtz.cpp.
|
virtual |
Returns the second mixed partial derivative (delta1,dtau1) of Helmholtz energy term with respect to delta and tau [-]
tau | Reciprocal reduced temperature where tau=Tc / T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 247 of file Helmholtz.cpp.
|
virtual |
Returns the third mixed partial derivative (delta1,dtau2) of Helmholtz energy term with respect to delta and tau [-]
tau | Reciprocal reduced temperature where tau=Tc / T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 185 of file Helmholtz.cpp.
std::vector< double > phir_power::dDelta_dTauV | ( | std::vector< double > | tau, |
std::vector< double > | delta | ||
) | |||
throw | ( | ||
) |
Definition at line 339 of file Helmholtz.cpp.
std::vector< double > phir_power::dDeltaV | ( | std::vector< double > | tau, |
std::vector< double > | delta | ||
) | |||
throw | ( | ||
) |
Vectorized form so iteration happens at c++ level.
Definition at line 312 of file Helmholtz.cpp.
|
virtual |
Returns the first partial derivative of Helmholtz energy term with respect to tau [-]
tau | Reciprocal reduced temperature where tau=Tc/T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 139 of file Helmholtz.cpp.
|
virtual |
Returns the second partial derivative of Helmholtz energy term with respect to tau [-]
tau | Reciprocal reduced temperature where tau=Tc/T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 148 of file Helmholtz.cpp.
std::vector< double > phir_power::dTau2V | ( | std::vector< double > | tau, |
std::vector< double > | delta | ||
) | |||
throw | ( | ||
) |
Definition at line 330 of file Helmholtz.cpp.
|
virtual |
Returns the third partial derivative of Helmholtz energy term with respect to tau [-]
tau | Reciprocal reduced temperature where tau=Tc / T |
delta | Reduced pressure where delta = rho / rhoc |
Implements phi_BC.
Definition at line 157 of file Helmholtz.cpp.
|
virtual |
Implements phi_BC.
Definition at line 169 of file Helmholtz.cpp.
std::vector<double> phir_power::d |
The power for the delta terms.
Definition at line 97 of file Helmholtz.h.
unsigned int phir_power::iEnd |
Definition at line 96 of file Helmholtz.h.
unsigned int phir_power::iStart |
Definition at line 96 of file Helmholtz.h.
std::vector<double> phir_power::l |
Definition at line 97 of file Helmholtz.h.
std::vector<double> phir_power::n |
The coefficients multiplying each term.
Definition at line 97 of file Helmholtz.h.
std::vector<double> phir_power::t |
The powers for the tau terms.
Definition at line 97 of file Helmholtz.h.