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

The base class for incompressible fluids only. More...

#include <IncompBase.h>

Inheritance diagram for IncompressibleClass:
IncompressibleFluid IncompressibleLiquid IncompressibleSolution SimpleIncompressible BaseSolution LiBrSolution 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 MelinderSolution SecCoolSolution

Public Member Functions

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

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)
 

Protected Attributes

std::string name
 
std::string description
 
std::string reference
 
double Tmin
 
double TminPsat
 
double Tmax
 
double Tref
 
bool DEBUG
 

Detailed Description

The base class for incompressible fluids only.

Definition at line 16 of file IncompBase.h.

Constructor & Destructor Documentation

IncompressibleClass::IncompressibleClass ( )
inline

Definition at line 44 of file IncompBase.h.

virtual IncompressibleClass::~IncompressibleClass ( )
inlinevirtual

Definition at line 56 of file IncompBase.h.

Member Function Documentation

bool IncompressibleClass::checkCoefficients ( std::vector< double > const &  coefficients,
unsigned int  n 
)
protected

Basic checks for coefficient vectors.

Starts with only the first coefficient dimension and checks the vector length against parameter n.

Definition at line 16 of file IncompBase.cpp.

bool IncompressibleClass::checkCoefficients ( std::vector< std::vector< double > > const &  coefficients,
unsigned int  rows,
unsigned int  columns 
)
protected

Definition at line 25 of file IncompBase.cpp.

double IncompressibleClass::expval ( std::vector< double > const &  coefficients,
double  T,
int  n 
)

Evaluates an exponential function for the given coefficients

Parameters
coefficientsvector containing the ordered coefficients
Tdouble value that represents the current input
nint value that determines the kind of exponential function

Here we define the functions that should be used by the respective implementations. Please do no use any other method since this would break the purpose of this interface.Evaluates an exponential function for the given coefficients

Parameters
coefficientsvector containing the ordered coefficients
Tdouble value that represents the current input
nint value that determines the kind of exponential function

Definition at line 812 of file IncompBase.cpp.

double IncompressibleClass::expval ( std::vector< std::vector< double > > const &  coefficients,
double  x,
double  T,
int  n 
)

Evaluates an exponential function for the given coefficients

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input in the 1st dimension
Tdouble value that represents the current input in the 2nd dimension
nint value that determines the kind of exponential function

Definition at line 830 of file IncompBase.cpp.

std::string IncompressibleClass::get_name ( void  ) const
inline

Definition at line 33 of file IncompBase.h.

std::string IncompressibleClass::getDescription ( ) const
inline

Definition at line 30 of file IncompBase.h.

std::string IncompressibleClass::getName ( ) const
inline

Definition at line 31 of file IncompBase.h.

std::string IncompressibleClass::getReference ( ) const
inline

Definition at line 34 of file IncompBase.h.

double IncompressibleClass::getTmax ( ) const
inline

Definition at line 35 of file IncompBase.h.

double IncompressibleClass::getTmin ( ) const
inline

Definition at line 36 of file IncompBase.h.

double IncompressibleClass::getTminPsat ( ) const
inline

Definition at line 37 of file IncompBase.h.

double IncompressibleClass::getTref ( ) const
inline

Definition at line 38 of file IncompBase.h.

double IncompressibleClass::polyfracint ( std::vector< double > const &  coefficients,
double  T 
)
inline

Evaluates the indefinite integral of a one-dimensional polynomial divided by its independent variable

Parameters
coefficientsvector containing the ordered coefficients
Tdouble value that represents the current position

Definition at line 267 of file IncompBase.h.

double IncompressibleClass::polyfracint ( std::vector< double > const &  coefficients,
double  T1,
double  T0 
)
inline

Evaluates the definite integral of a one-dimensional polynomial divided by its independent variable

Parameters
coefficientsvector containing the ordered coefficients
T1double value that represents the current position
T0double value that represents the reference state

Definition at line 277 of file IncompBase.h.

double IncompressibleClass::polyfracint ( std::vector< std::vector< double > > const &  coefficients,
double  x,
double  T 
)
inline

Evaluates the indefinite integral of a two-dimensional polynomial divided by its 2nd independent variable

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input in the 1st dimension
Tdouble value that represents the current input in the 2nd dimension

Definition at line 287 of file IncompBase.h.

double IncompressibleClass::polyfracint ( std::vector< std::vector< double > > const &  coefficients,
double  x,
double  T1,
double  T0 
)
inline

Evaluates the definite integral of a two-dimensional polynomial divided by its 2nd independent variable

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input in the 1st dimension
T1double value that represents the current input in the 2nd dimension
T0double value that represents the reference state in the 2nd dimension

Definition at line 298 of file IncompBase.h.

double IncompressibleClass::polyfracintcentral ( std::vector< double > const &  coefficients,
double  T,
double  Tbase 
)
inline

Evaluates the indefinite integral of a centred one-dimensional polynomial divided by its independent variable

Parameters
coefficientsvector containing the ordered coefficients
Tdouble value that represents the current position
Tbasecentral temperature for fitted function

Definition at line 308 of file IncompBase.h.

double IncompressibleClass::polyfracintcentral ( std::vector< double > const &  coefficients,
double  T1,
double  T0,
double  Tbase 
)
inline

Evaluates the definite integral of a centred one-dimensional polynomial divided by its independent variable

Parameters
coefficientsvector containing the ordered coefficients
T1double value that represents the current position
T0double value that represents the reference state
Tbasecentral temperature for fitted function

Definition at line 317 of file IncompBase.h.

double IncompressibleClass::polyfracintcentral ( std::vector< std::vector< double > > const &  coefficients,
double  x,
double  T,
double  Tbase 
)
inline

Evaluates the indefinite integral of a centred two-dimensional polynomial divided by its 2nd independent variable

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input in the 1st dimension
Tdouble value that represents the current input in the 2nd dimension
Tbasecentral temperature for fitted function

Definition at line 326 of file IncompBase.h.

double IncompressibleClass::polyfracintcentral ( std::vector< std::vector< double > > const &  coefficients,
double  x,
double  T1,
double  T0,
double  Tbase 
)
inline

Evaluates the definite integral of a centred two-dimensional polynomial divided by its 2nd independent variable

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input in the 1st dimension
T1double value that represents the current input in the 2nd dimension
T0double value that represents the reference state in the 2nd dimension
Tbasecentral temperature for fitted function

Definition at line 336 of file IncompBase.h.

double IncompressibleClass::polyint ( std::vector< double > const &  coefficients,
double  T 
)
inline

Evaluates the indefinite integral of a one-dimensional polynomial

Parameters
coefficientsvector containing the ordered coefficients
Tdouble value that represents the current input

Definition at line 227 of file IncompBase.h.

double IncompressibleClass::polyint ( std::vector< double > const &  coefficients,
double  T1,
double  T0 
)
inline

Evaluates the definite integral of a one-dimensional polynomial

Parameters
coefficientsvector containing the ordered coefficients
T1double value that represents the current position
T0double value that represents the reference state

Definition at line 237 of file IncompBase.h.

double IncompressibleClass::polyint ( std::vector< std::vector< double > > const &  coefficients,
double  x,
double  T 
)
inline

Evaluates the indefinite integral of a two-dimensional polynomial along the 2nd axis (T)

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input in the 1st dimension
Tdouble value that represents the current input in the 2nd dimension

Definition at line 247 of file IncompBase.h.

double IncompressibleClass::polyint ( std::vector< std::vector< double > > const &  coefficients,
double  x,
double  T1,
double  T0 
)
inline

Evaluates the definite integral of a two-dimensional polynomial along the 2nd axis (T)

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input in the 1st dimension
T1double value that represents the current input in the 2nd dimension
T0double value that represents the reference state in the 2nd dimension

Definition at line 258 of file IncompBase.h.

double IncompressibleClass::polyval ( std::vector< double > const &  coefficients,
double  x 
)
inline

Here we define the functions that should be used by the respective implementations. Please do no use any other method since this would break the purpose of this interface. Note that the functions below are supposed to be aliases to implementations declared elsewhere in this file.Evaluates a one-dimensional polynomial for the given coefficients

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input

Definition at line 210 of file IncompBase.h.

double IncompressibleClass::polyval ( std::vector< std::vector< double > > const &  coefficients,
double  x,
double  y 
)
inline

Evaluates a two-dimensional polynomial for the given coefficients

Parameters
coefficientsvector containing the ordered coefficients
xdouble value that represents the current input in the 1st dimension
ydouble value that represents the current input in the 2nd dimension

Definition at line 219 of file IncompBase.h.

void IncompressibleClass::setDebug ( bool  debug)
inline

Definition at line 40 of file IncompBase.h.

Member Data Documentation

bool IncompressibleClass::DEBUG
protected

Definition at line 27 of file IncompBase.h.

std::string IncompressibleClass::description
protected

Definition at line 20 of file IncompBase.h.

std::string IncompressibleClass::name
protected

Definition at line 19 of file IncompBase.h.

std::string IncompressibleClass::reference
protected

Definition at line 21 of file IncompBase.h.

double IncompressibleClass::Tmax
protected

Definition at line 24 of file IncompBase.h.

double IncompressibleClass::Tmin
protected

Definition at line 22 of file IncompBase.h.

double IncompressibleClass::TminPsat
protected

Definition at line 23 of file IncompBase.h.

double IncompressibleClass::Tref
protected

Definition at line 25 of file IncompBase.h.


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