CoolProp
4.2.5
An open-source fluid property and humid air property database
|
Class to access Lithium-Bromide solutions. More...
#include <IncompSolution.h>
Public Member Functions | |
LiBrSolution () | |
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... | |
double | psat (double T_K, double x) |
Saturation pressure as a function of temperature and composition. More... | |
double | Tfreeze (double p, double x) |
Freezing temperature as a function of 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) |
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 | ps_mix (double T, double x) |
double | rho_mix (double T, double x) |
double | cp_mix (double T, double x) |
double | h_mix (double T, double x) |
double | s_mix (double T, double x) |
double | ps_H2O (double T) |
double | rho_H2O (double T) |
double | cp_H2O (double T) |
double | h_H2O (double T) |
double | s_H2O (double T) |
double | massToMole (double w) |
double | molarToSpecific (double w, double value) |
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) |
Static Protected Attributes | |
static double const | M_H2O = 0.018015268 |
static double const | M_LiBr = 0.08685 |
static double const | T0 = 221 |
static double const | Tc_H2O = 647.096 |
static double const | pc_H2O = 22.064 |
static double const | rhoc_H2O = 17873 |
static double const | hc_H2O = 37548.5 |
static double const | sc_H2O = 79.3933 |
static double const | Tt_H2O = 273.16 |
static double const | cpt_H2O = 76.0226 |
static const bool | debug = false |
Additional Inherited Members | |
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 access Lithium-Bromide solutions.
Employs some basic wrapper-like functionality to bridge the gap between the solution functions used in the paper by Pátek and Klomfar: http://dx.doi.org/10.1016/j.ijrefrig.2005.10.007
We owe gratitude to the authors for providing both access to the paper as well as the equations in the form of C source code.
Definition at line 174 of file IncompSolution.h.
|
inline |
Definition at line 431 of file IncompSolution.h.
|
inlinevirtual |
Heat capacities as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 449 of file IncompSolution.h.
|
inlinevirtual |
Thermal conductivity as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 463 of file IncompSolution.h.
|
inlineprotected |
Definition at line 358 of file IncompSolution.h.
|
inlineprotected |
Definition at line 228 of file IncompSolution.h.
|
inlinevirtual |
Enthalpy as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 453 of file IncompSolution.h.
|
inlineprotected |
Definition at line 377 of file IncompSolution.h.
|
inlineprotected |
Definition at line 248 of file IncompSolution.h.
|
inlineprotected |
Finished with the code from the paper. Now we need to convert the molar values to mass-based units.
Definition at line 412 of file IncompSolution.h.
|
inlineprotected |
Definition at line 419 of file IncompSolution.h.
|
inlineprotected |
Definition at line 315 of file IncompSolution.h.
|
inlineprotected |
Definition at line 192 of file IncompSolution.h.
|
inlinevirtual |
Saturation pressure as a function of temperature and composition.
Reimplemented from IncompressibleSolution.
Definition at line 470 of file IncompSolution.h.
|
inlinevirtual |
Density as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 445 of file IncompSolution.h.
|
inlineprotected |
Definition at line 338 of file IncompSolution.h.
|
inlineprotected |
Definition at line 210 of file IncompSolution.h.
|
inlinevirtual |
Entropy as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 456 of file IncompSolution.h.
|
inlineprotected |
Definition at line 393 of file IncompSolution.h.
|
inlineprotected |
Definition at line 282 of file IncompSolution.h.
|
inlinevirtual |
Freezing temperature as a function of pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 475 of file IncompSolution.h.
|
inlinevirtual |
Internal energy as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 466 of file IncompSolution.h.
|
inlinevirtual |
Viscosity as a function of temperature, pressure and composition.
Reimplemented from IncompressibleSolution.
Definition at line 460 of file IncompSolution.h.
|
staticprotected |
Definition at line 190 of file IncompSolution.h.
|
staticprotected |
Definition at line 427 of file IncompSolution.h.
|
staticprotected |
Definition at line 185 of file IncompSolution.h.
|
staticprotected |
Definition at line 177 of file IncompSolution.h.
|
staticprotected |
Definition at line 178 of file IncompSolution.h.
|
staticprotected |
Definition at line 183 of file IncompSolution.h.
|
staticprotected |
Definition at line 184 of file IncompSolution.h.
|
staticprotected |
Definition at line 186 of file IncompSolution.h.
|
staticprotected |
Definition at line 179 of file IncompSolution.h.
|
staticprotected |
Definition at line 182 of file IncompSolution.h.
|
staticprotected |
Definition at line 189 of file IncompSolution.h.