CoolProp
4.2.5
An open-source fluid property and humid air property database
|
Class to use Melinder and SecCool parameters. More...
#include <IncompSolution.h>
Public Member Functions | |
BaseSolution () | |
double | getTbase () const |
double | getxbase () const |
double | getTInput (double curTValue) |
double | getxInput (double curxValue) |
double | rho (double T_K, double p, double x) |
Density as a function of temperature, pressure and composition. More... | |
double | c (double T_K, double p, double x) |
Heat capacities as a function of temperature, pressure and composition. More... | |
double | h (double T_K, double p, double x) |
Enthalpy as a function of temperature, pressure and composition. More... | |
double | s (double T_K, double p, double x) |
Entropy as a function of temperature, pressure and composition. More... | |
double | visc (double T_K, double p, double x) |
Viscosity as a function of temperature, pressure and composition. More... | |
double | cond (double T_K, double p, double x) |
Thermal conductivity as a function of temperature, pressure and composition. More... | |
double | u (double T_K, double p, double x) |
Internal energy as a function of temperature, pressure and composition. More... | |
Public Member Functions inherited from IncompressibleSolution | |
IncompressibleSolution () | |
std::vector< std::vector < double > > | getcRho () const |
std::vector< std::vector < double > > | getcHeat () const |
std::vector< std::vector < double > > | getcVisc () const |
std::vector< std::vector < double > > | getcCond () const |
std::vector< std::vector < double > > | getcPsat () const |
std::vector< double > | getcTfreeze () const |
virtual double | cp (double T_K, double p, double x) |
virtual double | cv (double T_K, double p, double x) |
virtual double | psat (double T_K, double x) |
Saturation pressure as a function of temperature and composition. More... | |
virtual double | Tfreeze (double p, double x) |
Freezing temperature as a function of pressure and composition. More... | |
void | testInputs (double T_K, double p, double x) |
Base class for simplified brine/solution models. More... | |
Public Member Functions inherited from IncompressibleClass | |
std::string | getDescription () const |
std::string | getName () const |
std::string | get_name () const |
std::string | getReference () const |
double | getTmax () const |
double | getTmin () const |
double | getTminPsat () const |
double | getTref () const |
void | setDebug (bool debug) |
IncompressibleClass () | |
virtual | ~IncompressibleClass () |
double | polyval (std::vector< double > const &coefficients, double x) |
double | polyval (std::vector< std::vector< double > > const &coefficients, double x, double y) |
double | polyint (std::vector< double > const &coefficients, double T) |
double | polyint (std::vector< double > const &coefficients, double T1, double T0) |
double | polyint (std::vector< std::vector< double > > const &coefficients, double x, double T) |
double | polyint (std::vector< std::vector< double > > const &coefficients, double x, double T1, double T0) |
double | polyfracint (std::vector< double > const &coefficients, double T) |
double | polyfracint (std::vector< double > const &coefficients, double T1, double T0) |
double | polyfracint (std::vector< std::vector< double > > const &coefficients, double x, double T) |
double | polyfracint (std::vector< std::vector< double > > const &coefficients, double x, double T1, double T0) |
double | polyfracintcentral (std::vector< double > const &coefficients, double T, double Tbase) |
double | polyfracintcentral (std::vector< double > const &coefficients, double T1, double T0, double Tbase) |
double | polyfracintcentral (std::vector< std::vector< double > > const &coefficients, double x, double T, double Tbase) |
double | polyfracintcentral (std::vector< std::vector< double > > const &coefficients, double x, double T1, double T0, double Tbase) |
double | expval (std::vector< double > const &coefficients, double T, int n) |
double | expval (std::vector< std::vector< double > > const &coefficients, double x, double T, int n) |
Protected Member Functions | |
double | baseFunction (std::vector< double > const &coefficients, double T_K, double p, double x) |
Some more general purpose functions. More... | |
std::vector< std::vector < double > > | makeMatrix (std::vector< double > const &coefficients) |
Protected Member Functions inherited from IncompressibleSolution | |
double | h_u (double T_K, double p, double x) |
Enthalpy from x, u, p and rho. More... | |
double | u_h (double T_K, double p, double x) |
Internal energy from x, h, p and rho. More... | |
bool | checkT (double T_K, double p, double x) |
Check validity of temperature input. More... | |
bool | checkP (double T_K, double p, double x) |
Check validity of pressure input. More... | |
bool | checkX (double x) |
Check validity of composition input. More... | |
bool | checkTPX (double T, double p, double x) |
Check validity of temperature, pressure and composition input. More... | |
Protected Member Functions inherited from IncompressibleClass | |
bool | checkCoefficients (std::vector< double > const &coefficients, unsigned int n) |
Basic checks for coefficient vectors. More... | |
bool | checkCoefficients (std::vector< std::vector< double > > const &coefficients, unsigned int rows, unsigned int columns) |
Protected Attributes | |
double | Tbase |
double | xbase |
Protected Attributes inherited from IncompressibleSolution | |
double | xmin |
double | xmax |
std::vector< std::vector < double > > | cRho |
std::vector< std::vector < double > > | cHeat |
std::vector< std::vector < double > > | cVisc |
std::vector< std::vector < double > > | cCond |
std::vector< std::vector < double > > | cPsat |
std::vector< double > | cTfreeze |
Protected Attributes inherited from IncompressibleClass | |
std::string | name |
std::string | description |
std::string | reference |
double | Tmin |
double | TminPsat |
double | Tmax |
double | Tref |
bool | DEBUG |
Class to use Melinder and SecCool parameters.
Employs some basic wrapper-like functionality to bridge the gap between the solution functions used in CoolProp and the definition used in Melinder's book and Ian's original implementation and the definition used in SecCool. Please visit: http://en.ipu.dk/Indhold/refrigeration-and-energy-technology/seccool.aspx Many thanks to Morten Juel Skovrup for providing this nice piece of software as well as the parameters needed to calculate the composition based properties.
Definition at line 492 of file IncompSolution.h.
|
inline |
Definition at line 502 of file IncompSolution.h.
|
protected |
Some more general purpose functions.
Class to use Melinder and SecCool parameters.
Employs some basic wrapper-like functionality to bridge the gap between the solution functions used in CoolProp and the definition used in Melinder's book and Ian's original implementation and the definition used in SecCool. Please visit: http://en.ipu.dk/Indhold/refrigeration-and-energy-technology/seccool.aspx Many thanks to Morten Juel Skovrup for providing this nice piece of software as well as the parameters needed to calculate the composition based properties.
Definition at line 300 of file IncompSolution.cpp.
|
inlinevirtual |
Heat capacities as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 523 of file IncompSolution.h.
|
inlinevirtual |
Thermal conductivity as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 541 of file IncompSolution.h.
|
inline |
Definition at line 507 of file IncompSolution.h.
|
inline |
Definition at line 510 of file IncompSolution.h.
|
inline |
Definition at line 508 of file IncompSolution.h.
|
inline |
Definition at line 514 of file IncompSolution.h.
|
inlinevirtual |
Enthalpy as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 528 of file IncompSolution.h.
|
protected |
Definition at line 323 of file IncompSolution.cpp.
|
inlinevirtual |
Density as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 518 of file IncompSolution.h.
|
inlinevirtual |
Entropy as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 531 of file IncompSolution.h.
|
inlinevirtual |
Internal energy as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 546 of file IncompSolution.h.
|
inlinevirtual |
Viscosity as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 536 of file IncompSolution.h.
|
protected |
Definition at line 495 of file IncompSolution.h.
|
protected |
Definition at line 495 of file IncompSolution.h.