CoolProp
4.2.5
An open-source fluid property and humid air property database
|
Base class for simplified brine/solution models. More...
#include <IncompLiquid.h>
Public Member Functions | |
virtual double | rho (double T_K, double p) |
Density as a function of temperature and pressure. More... | |
virtual double | c (double T_K, double p) |
Heat capacities as a function of temperature and pressure. More... | |
virtual double | cp (double T_K, double p) |
virtual double | cv (double T_K, double p) |
virtual double | s (double T_K, double p) |
Entropy as a function of temperature and pressure. More... | |
virtual double | u (double T_K, double p) |
Internal energy as a function of temperature and pressure. More... | |
virtual double | h (double T_K, double p) |
Enthalpy as a function of temperature and pressure. More... | |
virtual double | visc (double T_K, double p) |
Viscosity as a function of temperature and pressure. More... | |
virtual double | cond (double T_K, double p) |
Thermal conductivity as a function of temperature and pressure. More... | |
virtual double | psat (double T_K) |
Saturation pressure as a function of temperature. More... | |
void | testInputs (double T_K, double p) |
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 | h_u (double T_K, double p) |
Enthalpy from u,p and rho. More... | |
double | u_h (double T_K, double p) |
Internal energy from h,p and rho. More... | |
bool | checkT (double T_K) |
Check validity of temperature input. More... | |
bool | checkP (double T_K, double p) |
Check validity of pressure input. More... | |
bool | checkTP (double T, double p) |
Check validity of temperature and pressure 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) |
Additional Inherited Members | |
Protected Attributes inherited from IncompressibleClass | |
std::string | name |
std::string | description |
std::string | reference |
double | Tmin |
double | TminPsat |
double | Tmax |
double | Tref |
bool | DEBUG |
Base class for simplified brine/solution models.
Notes for developers:
If you want to add a fluid, add its definition to the header and then add it to the map in the constructor in LiquidsContainer in IncompLiquid.cppEmploys the base functions implemented in IncompBase.h and provides properties as function of temperature, pressure and composition.
Definition at line 25 of file IncompLiquid.h.
|
inlinevirtual |
Heat capacities as a function of temperature and pressure.
Reimplemented in SimpleIncompressible.
Definition at line 34 of file IncompLiquid.h.
|
protected |
Check validity of pressure input.
Compares the given pressure p to the saturation pressure at temperature T and throws and exception if p is lower than the saturation conditions. The default value for psat is -1 yielding true if psat is not redefined in the subclass.
Definition at line 83 of file IncompLiquid.cpp.
|
protected |
Check validity of temperature input.
Compares the given temperature T to a stored minimum and maximum temperature. Enforces the redefinition of Tmin and Tmax since the default values cause an error.
Definition at line 63 of file IncompLiquid.cpp.
|
protected |
Check validity of temperature and pressure input.
Definition at line 93 of file IncompLiquid.cpp.
|
inlinevirtual |
Thermal conductivity as a function of temperature and pressure.
Reimplemented in SimpleIncompressible.
Definition at line 46 of file IncompLiquid.h.
|
inlinevirtual |
Definition at line 35 of file IncompLiquid.h.
|
inlinevirtual |
Definition at line 36 of file IncompLiquid.h.
|
inlinevirtual |
Enthalpy as a function of temperature and pressure.
Reimplemented in SimpleIncompressible.
Definition at line 42 of file IncompLiquid.h.
|
inlineprotected |
Enthalpy from u,p and rho.
Calculate enthalpy as a function of temperature and pressure employing functions for internal energy and density. Provides consistent formulations.
Definition at line 62 of file IncompLiquid.h.
|
inlinevirtual |
Saturation pressure as a function of temperature.
Reimplemented in SimpleIncompressible.
Definition at line 48 of file IncompLiquid.h.
|
inlinevirtual |
Density as a function of temperature and pressure.
Reimplemented in SimpleIncompressible.
Definition at line 32 of file IncompLiquid.h.
|
inlinevirtual |
Entropy as a function of temperature and pressure.
Reimplemented in SimpleIncompressible.
Definition at line 38 of file IncompLiquid.h.
void IncompressibleLiquid::testInputs | ( | double | T_K, |
double | p | ||
) |
Base class for simplified brine/solution models.
Employs the base functions implemented in IncompBase.h and provides properties as function of temperature, pressure and composition.
Definition at line 26 of file IncompLiquid.cpp.
|
inlinevirtual |
Internal energy as a function of temperature and pressure.
Reimplemented in SimpleIncompressible.
Definition at line 40 of file IncompLiquid.h.
|
inlineprotected |
Internal energy from h,p and rho.
Calculate internal energy as a function of temperature and pressure employing functions for enthalpy and density. Provides consistent formulations.
Definition at line 70 of file IncompLiquid.h.
|
inlinevirtual |
Viscosity as a function of temperature and pressure.
Reimplemented in TCOLiquidClass, HCBLiquidClass, SABLiquidClass, PMS2LiquidClass, PMS1LiquidClass, HFELiquidClass, HCMLiquidClass, DEBLiquidClass, and SimpleIncompressible.
Definition at line 44 of file IncompLiquid.h.