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

Base class for simplified models. More...

#include <IncompLiquid.h>

Inheritance diagram for SimpleIncompressible:
IncompressibleLiquid IncompressibleClass 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

double rho (double T_K, double p)
 Density as a function of temperature and pressure. More...
 
double c (double T_K, double p)
 Heat capacities as a function of temperature and pressure. More...
 
double h (double T_K, double p)
 Enthalpy as a function of temperature and pressure. More...
 
double s (double T_K, double p)
 Entropy as a function of temperature and pressure. More...
 
double visc (double T_K, double p)
 Viscosity as a function of temperature and pressure. More...
 
double cond (double T_K, double p)
 Thermal conductivity as a function of temperature and pressure. More...
 
double u (double T_K, double p)
 Internal energy as a function of temperature and pressure. More...
 
double psat (double T_K)
 Saturation pressure as a function of temperature. More...
 
- Public Member Functions inherited from IncompressibleLiquid
virtual double cp (double T_K, double p)
 
virtual double cv (double T_K, double p)
 
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 Attributes

std::vector< double > cRho
 
std::vector< double > cHeat
 
std::vector< double > cVisc
 
std::vector< double > cCond
 
std::vector< double > cPsat
 
- Protected Attributes inherited from IncompressibleClass
std::string name
 
std::string description
 
std::string reference
 
double Tmin
 
double TminPsat
 
double Tmax
 
double Tref
 
bool DEBUG
 

Additional Inherited Members

- Protected Member Functions inherited from IncompressibleLiquid
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)
 

Detailed Description

Base class for simplified models.

Employs the base functions implemented above, only needs a reduced set of coefficients for density and heat capacity. The other quantities are calculated from combinations of the coefficients. Additionally, extra parameters are used for viscosity and thermal conductivity.

Definition at line 137 of file IncompLiquid.h.

Member Function Documentation

double SimpleIncompressible::c ( double  T_K,
double  p 
)
inlinevirtual

Heat capacities as a function of temperature and pressure.

Reimplemented from IncompressibleLiquid.

Definition at line 150 of file IncompLiquid.h.

double SimpleIncompressible::cond ( double  T_K,
double  p 
)
inlinevirtual

Thermal conductivity as a function of temperature and pressure.

Reimplemented from IncompressibleLiquid.

Definition at line 166 of file IncompLiquid.h.

double SimpleIncompressible::h ( double  T_K,
double  p 
)
inlinevirtual

Enthalpy as a function of temperature and pressure.

Reimplemented from IncompressibleLiquid.

Definition at line 154 of file IncompLiquid.h.

double SimpleIncompressible::psat ( double  T_K)
inlinevirtual

Saturation pressure as a function of temperature.

Reimplemented from IncompressibleLiquid.

Definition at line 173 of file IncompLiquid.h.

double SimpleIncompressible::rho ( double  T_K,
double  p 
)
inlinevirtual

Density as a function of temperature and pressure.

Reimplemented from IncompressibleLiquid.

Definition at line 146 of file IncompLiquid.h.

double SimpleIncompressible::s ( double  T_K,
double  p 
)
inlinevirtual

Entropy as a function of temperature and pressure.

Reimplemented from IncompressibleLiquid.

Definition at line 158 of file IncompLiquid.h.

double SimpleIncompressible::u ( double  T_K,
double  p 
)
inlinevirtual

Internal energy as a function of temperature and pressure.

Reimplemented from IncompressibleLiquid.

Definition at line 170 of file IncompLiquid.h.

double SimpleIncompressible::visc ( double  T_K,
double  p 
)
inlinevirtual

Viscosity as a function of temperature and pressure.

Reimplemented from IncompressibleLiquid.

Reimplemented in TCOLiquidClass, HCBLiquidClass, SABLiquidClass, PMS2LiquidClass, PMS1LiquidClass, HFELiquidClass, HCMLiquidClass, and DEBLiquidClass.

Definition at line 162 of file IncompLiquid.h.

Member Data Documentation

std::vector<double> SimpleIncompressible::cCond
protected

Definition at line 142 of file IncompLiquid.h.

std::vector<double> SimpleIncompressible::cHeat
protected

Definition at line 140 of file IncompLiquid.h.

std::vector<double> SimpleIncompressible::cPsat
protected

Definition at line 143 of file IncompLiquid.h.

std::vector<double> SimpleIncompressible::cRho
protected

Definition at line 139 of file IncompLiquid.h.

std::vector<double> SimpleIncompressible::cVisc
protected

Definition at line 141 of file IncompLiquid.h.


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