CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
LiBrSolution Class Reference

Class to access Lithium-Bromide solutions. More...

#include <IncompSolution.h>

Inheritance diagram for LiBrSolution:
IncompressibleSolution IncompressibleClass

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
 

Detailed Description

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.

Constructor & Destructor Documentation

LiBrSolution::LiBrSolution ( )
inline

Definition at line 431 of file IncompSolution.h.

Member Function Documentation

double LiBrSolution::c ( double  T_K,
double  p,
double  x 
)
inlinevirtual

Heat capacities as a function of temperature, pressure and composition.

Reimplemented from IncompressibleSolution.

Definition at line 449 of file IncompSolution.h.

double LiBrSolution::cond ( double  T_K,
double  p,
double  x 
)
inlinevirtual

Thermal conductivity as a function of temperature, pressure and composition.

Reimplemented from IncompressibleSolution.

Definition at line 463 of file IncompSolution.h.

double LiBrSolution::cp_H2O ( double  T)
inlineprotected

Definition at line 358 of file IncompSolution.h.

double LiBrSolution::cp_mix ( double  T,
double  x 
)
inlineprotected

Definition at line 228 of file IncompSolution.h.

double LiBrSolution::h ( double  T_K,
double  p,
double  x 
)
inlinevirtual

Enthalpy as a function of temperature, pressure and composition.

Reimplemented from IncompressibleSolution.

Definition at line 453 of file IncompSolution.h.

double LiBrSolution::h_H2O ( double  T)
inlineprotected

Definition at line 377 of file IncompSolution.h.

double LiBrSolution::h_mix ( double  T,
double  x 
)
inlineprotected

Definition at line 248 of file IncompSolution.h.

double LiBrSolution::massToMole ( double  w)
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.

double LiBrSolution::molarToSpecific ( double  w,
double  value 
)
inlineprotected

Definition at line 419 of file IncompSolution.h.

double LiBrSolution::ps_H2O ( double  T)
inlineprotected

Definition at line 315 of file IncompSolution.h.

double LiBrSolution::ps_mix ( double  T,
double  x 
)
inlineprotected

Definition at line 192 of file IncompSolution.h.

double LiBrSolution::psat ( double  T_K,
double  x 
)
inlinevirtual

Saturation pressure as a function of temperature and composition.

Reimplemented from IncompressibleSolution.

Definition at line 470 of file IncompSolution.h.

double LiBrSolution::rho ( double  T_K,
double  p,
double  x 
)
inlinevirtual

Density as a function of temperature, pressure and composition.

Reimplemented from IncompressibleSolution.

Definition at line 445 of file IncompSolution.h.

double LiBrSolution::rho_H2O ( double  T)
inlineprotected

Definition at line 338 of file IncompSolution.h.

double LiBrSolution::rho_mix ( double  T,
double  x 
)
inlineprotected

Definition at line 210 of file IncompSolution.h.

double LiBrSolution::s ( double  T_K,
double  p,
double  x 
)
inlinevirtual

Entropy as a function of temperature, pressure and composition.

Reimplemented from IncompressibleSolution.

Definition at line 456 of file IncompSolution.h.

double LiBrSolution::s_H2O ( double  T)
inlineprotected

Definition at line 393 of file IncompSolution.h.

double LiBrSolution::s_mix ( double  T,
double  x 
)
inlineprotected

Definition at line 282 of file IncompSolution.h.

double LiBrSolution::Tfreeze ( double  p,
double  x 
)
inlinevirtual

Freezing temperature as a function of pressure and composition.

Reimplemented from IncompressibleSolution.

Definition at line 475 of file IncompSolution.h.

double LiBrSolution::u ( double  T_K,
double  p,
double  x 
)
inlinevirtual

Internal energy as a function of temperature, pressure and composition.

Reimplemented from IncompressibleSolution.

Definition at line 466 of file IncompSolution.h.

double LiBrSolution::visc ( double  T_K,
double  p,
double  x 
)
inlinevirtual

Viscosity as a function of temperature, pressure and composition.

Reimplemented from IncompressibleSolution.

Definition at line 460 of file IncompSolution.h.

Member Data Documentation

double const LiBrSolution::cpt_H2O = 76.0226
staticprotected

Definition at line 190 of file IncompSolution.h.

const bool LiBrSolution::debug = false
staticprotected

Definition at line 427 of file IncompSolution.h.

double const LiBrSolution::hc_H2O = 37548.5
staticprotected

Definition at line 185 of file IncompSolution.h.

double const LiBrSolution::M_H2O = 0.018015268
staticprotected

Definition at line 177 of file IncompSolution.h.

double const LiBrSolution::M_LiBr = 0.08685
staticprotected

Definition at line 178 of file IncompSolution.h.

double const LiBrSolution::pc_H2O = 22.064
staticprotected

Definition at line 183 of file IncompSolution.h.

double const LiBrSolution::rhoc_H2O = 17873
staticprotected

Definition at line 184 of file IncompSolution.h.

double const LiBrSolution::sc_H2O = 79.3933
staticprotected

Definition at line 186 of file IncompSolution.h.

double const LiBrSolution::T0 = 221
staticprotected

Definition at line 179 of file IncompSolution.h.

double const LiBrSolution::Tc_H2O = 647.096
staticprotected

Definition at line 182 of file IncompSolution.h.

double const LiBrSolution::Tt_H2O = 273.16
staticprotected

Definition at line 189 of file IncompSolution.h.


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