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
Functions | Variables
CPState.cpp File Reference
#include "CPExceptions.h"
#include "Solvers.h"
#include "CPState.h"
#include "float.h"
#include "math.h"
#include "Spline.h"
#include <stdio.h>
#include "Catch/catch.hpp"

Go to the source code of this file.

Functions

bool match_pair (long iI1, long iI2, long I1, long I2)
 
void sort_pair (long *iInput1, double *Value1, long *iInput2, double *Value2, long I1, long I2)
 
 TEST_CASE ("Check of density smoothing derivatives","[normal]")
 
CPWater update (iT, T, iD, rho)
 
 REQUIRE (fabs(CPWater.p()-RPWater.p())< 1e-4)
 
CPWater update (iT, T, iP, p)
 
 CAPTURE (RPrho)
 
 CAPTURE (CPrho)
 
 CAPTURE (RPcp)
 
 CAPTURE (CPcp)
 
 CAPTURE (RPcv)
 
 CAPTURE (CPcv)
 
 CAPTURE (RPvisc)
 
 CAPTURE (CPvisc)
 
 CAPTURE (RPcond)
 
 CAPTURE (CPcond)
 
 CAPTURE (RPsigma)
 
 CAPTURE (CPsigma)
 

Variables

SolutionsContainer SolutionsList = SolutionsContainer()
 
LiquidsContainer LiquidsList = LiquidsContainer()
 
CoolPropStateClassSI RPWater ("REFPROP-Water")
 
double RPrho = RPWater.rho()
 
double CPrho = CPWater.rho()
 
double RPcp = RPWater.cp()
 
double CPcp = CPWater.cp()
 
double RPcv = RPWater.cv()
 
double CPcv = CPWater.cv()
 
double RPvisc = RPWater.viscosity()
 
double CPvisc = CPWater.viscosity()
 
double RPcond = RPWater.conductivity()
 
double CPcond = CPWater.conductivity()
 
double RPsigma = RPWater.surface_tension()
 
double CPsigma = CPWater.surface_tension()
 

Function Documentation

CAPTURE ( RPrho  )
CAPTURE ( CPrho  )
CAPTURE ( RPcp  )
CAPTURE ( CPcp  )
CAPTURE ( RPcv  )
CAPTURE ( CPcv  )
CAPTURE ( RPvisc  )
CAPTURE ( CPvisc  )
CAPTURE ( RPcond  )
CAPTURE ( CPcond  )
CAPTURE ( RPsigma  )
CAPTURE ( CPsigma  )
bool match_pair ( long  iI1,
long  iI2,
long  I1,
long  I2 
)

Definition at line 132 of file CPState.cpp.

REQUIRE ( )
void sort_pair ( long iInput1,
double *  Value1,
long iInput2,
double *  Value2,
long  I1,
long  I2 
)

Definition at line 136 of file CPState.cpp.

TEST_CASE ( "Check of density smoothing derivatives"  ,
""  [normal] 
)

Definition at line 1947 of file CPState.cpp.

RPWater update ( iT  ,
,
iD  ,
rho   
)
RPWater update ( iT  ,
,
iP  ,
 
)
Initial value:
{
double T = 313, p = 101325

Variable Documentation

double CPcond = CPWater.conductivity()

Definition at line 2899 of file CPState.cpp.

double CPcp = CPWater.cp()

Definition at line 2866 of file CPState.cpp.

double CPcv = CPWater.cv()

Definition at line 2877 of file CPState.cpp.

double CPrho = CPWater.rho()

Definition at line 2855 of file CPState.cpp.

double CPsigma = CPWater.surface_tension()

Definition at line 2910 of file CPState.cpp.

double CPvisc = CPWater.viscosity()

Definition at line 2888 of file CPState.cpp.

Definition at line 25 of file CPState.cpp.

double RPcond = RPWater.conductivity()

Definition at line 2898 of file CPState.cpp.

double RPcp = RPWater.cp()

Definition at line 2865 of file CPState.cpp.

double RPcv = RPWater.cv()

Definition at line 2876 of file CPState.cpp.

double RPrho = RPWater.rho()

Definition at line 2854 of file CPState.cpp.

double RPsigma = RPWater.surface_tension()

Definition at line 2909 of file CPState.cpp.

double RPvisc = RPWater.viscosity()

Definition at line 2887 of file CPState.cpp.

CoolPropStateClassSI RPWater("REFPROP-Water")
Initial value:

Definition at line 24 of file CPState.cpp.