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 | List of all members
IncompressibleLiquid Class Reference

Base class for simplified brine/solution models. More...

#include <IncompLiquid.h>

Inheritance diagram for IncompressibleLiquid:
IncompressibleClass SimpleIncompressible AS10Class AS20Class AS30Class AS40Class AS55Class DEBLiquidClass DowthermJClass DowthermQClass HC10Class HC20Class HC30Class HC40Class HC50Class HCBLiquidClass HCMLiquidClass HFELiquidClass NitrateSaltClass PMS1LiquidClass PMS2LiquidClass SABLiquidClass SylthermXLTClass TCOLiquidClass Texatherm22Class Therminol66Class Therminol72Class TherminolD12Class TherminolVP1Class ZS10Class ZS25Class ZS40Class ZS45Class ZS55Class

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
 

Detailed Description

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.

Member Function Documentation

virtual double IncompressibleLiquid::c ( double  T_K,
double  p 
)
inlinevirtual

Heat capacities as a function of temperature and pressure.

Reimplemented in SimpleIncompressible.

Definition at line 34 of file IncompLiquid.h.

bool IncompressibleLiquid::checkP ( double  T_K,
double  p 
)
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.

bool IncompressibleLiquid::checkT ( double  T_K)
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.

bool IncompressibleLiquid::checkTP ( double  T,
double  p 
)
protected

Check validity of temperature and pressure input.

Definition at line 93 of file IncompLiquid.cpp.

virtual double IncompressibleLiquid::cond ( double  T_K,
double  p 
)
inlinevirtual

Thermal conductivity as a function of temperature and pressure.

Reimplemented in SimpleIncompressible.

Definition at line 46 of file IncompLiquid.h.

virtual double IncompressibleLiquid::cp ( double  T_K,
double  p 
)
inlinevirtual

Definition at line 35 of file IncompLiquid.h.

virtual double IncompressibleLiquid::cv ( double  T_K,
double  p 
)
inlinevirtual

Definition at line 36 of file IncompLiquid.h.

virtual double IncompressibleLiquid::h ( double  T_K,
double  p 
)
inlinevirtual

Enthalpy as a function of temperature and pressure.

Reimplemented in SimpleIncompressible.

Definition at line 42 of file IncompLiquid.h.

double IncompressibleLiquid::h_u ( double  T_K,
double  p 
)
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.

virtual double IncompressibleLiquid::psat ( double  T_K)
inlinevirtual

Saturation pressure as a function of temperature.

Reimplemented in SimpleIncompressible.

Definition at line 48 of file IncompLiquid.h.

virtual double IncompressibleLiquid::rho ( double  T_K,
double  p 
)
inlinevirtual

Density as a function of temperature and pressure.

Reimplemented in SimpleIncompressible.

Definition at line 32 of file IncompLiquid.h.

virtual double IncompressibleLiquid::s ( double  T_K,
double  p 
)
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.

virtual double IncompressibleLiquid::u ( double  T_K,
double  p 
)
inlinevirtual

Internal energy as a function of temperature and pressure.

Reimplemented in SimpleIncompressible.

Definition at line 40 of file IncompLiquid.h.

double IncompressibleLiquid::u_h ( double  T_K,
double  p 
)
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.

virtual double IncompressibleLiquid::visc ( double  T_K,
double  p 
)
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.


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