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
Classes | Enumerations | Functions
HumidAirProp.cpp File Reference
#include <stdlib.h>
#include "math.h"
#include "time.h"
#include "stdio.h"
#include <string.h>
#include <iostream>
#include "CoolProp.h"
#include "Ice.h"
#include "HumidAirProp.h"
#include "Solvers.h"
#include "CoolPropTools.h"
#include "purefluids/Water.h"
#include "pseudopurefluids/Air.h"
#include "Catch/catch.hpp"

Go to the source code of this file.

Classes

class  WetBulbSolver
 
class  WetBulbTminSolver
 

Enumerations

enum  givens {
  GIVEN_TDP, GIVEN_HUMRAT, GIVEN_V, GIVEN_TWB,
  GIVEN_RH, GIVEN_ENTHALPY, GIVEN_T, GIVEN_P,
  GIVEN_VISC, GIVEN_COND
}
 

Functions

double f_factor (double T, double p)
 
void UseVirialCorrelations (int flag)
 
void UseIsothermCompressCorrelation (int flag)
 
void UseIdealGasEnthalpyCorrelations (int flag)
 
double HumidityRatio (double psi_w)
 
void HAHelp (void)
 
int returnHumAirCode (const char *Code)
 
double Viscosity (double T, double p, double psi_w)
 
double Conductivity (double T, double p, double psi_w)
 
double MolarVolume (double T, double p, double psi_w)
 
double IdealGasMolarEnthalpy_Water (double T, double v_bar)
 
double IdealGasMolarEntropy_Water (double T, double p)
 
double IdealGasMolarEnthalpy_Air (double T, double v_bar)
 
double IdealGasMolarEntropy_Air (double T, double v_bar_a)
 
double MolarEnthalpy (double T, double p, double psi_w, double v_bar)
 
double MassEnthalpy (double T, double p, double psi_w)
 
double MolarEntropy (double T, double p, double psi_w, double v_bar)
 
double DewpointTemperature (double T, double p, double psi_w)
 
double WetbulbTemperature (double T, double p, double psi_w)
 
int TypeMatch (int TypeCode, const char *Input1Name, const char *Input2Name, const char *Input3Name)
 
double MoleFractionWater (double T, double p, int HumInput, double InVal)
 
double RelativeHumidity (double T, double p, double psi_w)
 
EXPORT_CODE double CONVENTION HAProps (const char *OutputName, const char *Input1Name, double Input1, const char *Input2Name, double Input2, const char *Input3Name, double Input3)
 
EXPORT_CODE double CONVENTION HAProps_Aux (const char *Name, double T, double p, double W, char *units)
 
double cair_sat (double T)
 
double IceProps (const char *Name, double T, double p)
 
 TEST_CASE ((char *)"Tests from ASHRAE RP-1485",(char *)"[RP1485]")
 

Enumeration Type Documentation

enum givens
Enumerator
GIVEN_TDP 
GIVEN_HUMRAT 
GIVEN_V 
GIVEN_TWB 
GIVEN_RH 
GIVEN_ENTHALPY 
GIVEN_T 
GIVEN_P 
GIVEN_VISC 
GIVEN_COND 

Definition at line 26 of file HumidAirProp.cpp.

Function Documentation

double cair_sat ( double  T)

Definition at line 1545 of file HumidAirProp.cpp.

double Conductivity ( double  T,
double  p,
double  psi_w 
)

Definition at line 539 of file HumidAirProp.cpp.

double DewpointTemperature ( double  T,
double  p,
double  psi_w 
)

Definition at line 752 of file HumidAirProp.cpp.

double f_factor ( double  T,
double  p 
)

Definition at line 382 of file HumidAirProp.cpp.

void HAHelp ( void  )

Definition at line 497 of file HumidAirProp.cpp.

EXPORT_CODE double CONVENTION HAProps ( const char *  OutputName,
const char *  Input1Name,
double  Input1,
const char *  Input2Name,
double  Input2,
const char *  Input3Name,
double  Input3 
)

Definition at line 1065 of file HumidAirProp.cpp.

EXPORT_CODE double CONVENTION HAProps_Aux ( const char *  Name,
double  T,
double  p,
double  W,
char *  units 
)

Definition at line 1353 of file HumidAirProp.cpp.

double HumidityRatio ( double  psi_w)

Definition at line 363 of file HumidAirProp.cpp.

double IceProps ( const char *  Name,
double  T,
double  p 
)

Definition at line 1555 of file HumidAirProp.cpp.

double IdealGasMolarEnthalpy_Air ( double  T,
double  v_bar 
)

Definition at line 620 of file HumidAirProp.cpp.

double IdealGasMolarEnthalpy_Water ( double  T,
double  v_bar 
)

Definition at line 600 of file HumidAirProp.cpp.

double IdealGasMolarEntropy_Air ( double  T,
double  v_bar_a 
)

Definition at line 633 of file HumidAirProp.cpp.

double IdealGasMolarEntropy_Water ( double  T,
double  p 
)

Definition at line 611 of file HumidAirProp.cpp.

double MassEnthalpy ( double  T,
double  p,
double  psi_w 
)

Definition at line 679 of file HumidAirProp.cpp.

double MolarEnthalpy ( double  T,
double  p,
double  psi_w,
double  v_bar 
)

Definition at line 651 of file HumidAirProp.cpp.

double MolarEntropy ( double  T,
double  p,
double  psi_w,
double  v_bar 
)

Definition at line 688 of file HumidAirProp.cpp.

double MolarVolume ( double  T,
double  p,
double  psi_w 
)

Definition at line 561 of file HumidAirProp.cpp.

double MoleFractionWater ( double  T,
double  p,
int  HumInput,
double  InVal 
)

Definition at line 984 of file HumidAirProp.cpp.

double RelativeHumidity ( double  T,
double  p,
double  psi_w 
)

Definition at line 1041 of file HumidAirProp.cpp.

int returnHumAirCode ( const char *  Code)

Definition at line 501 of file HumidAirProp.cpp.

TEST_CASE ( (char *)"Tests from ASHRAE RP-1485"  ,
(char *)""  [RP1485] 
)

Definition at line 1579 of file HumidAirProp.cpp.

int TypeMatch ( int  TypeCode,
const char *  Input1Name,
const char *  Input2Name,
const char *  Input3Name 
)

Definition at line 972 of file HumidAirProp.cpp.

void UseIdealGasEnthalpyCorrelations ( int  flag)

Definition at line 97 of file HumidAirProp.cpp.

void UseIsothermCompressCorrelation ( int  flag)

Definition at line 86 of file HumidAirProp.cpp.

void UseVirialCorrelations ( int  flag)

Definition at line 74 of file HumidAirProp.cpp.

double Viscosity ( double  T,
double  p,
double  psi_w 
)

Definition at line 519 of file HumidAirProp.cpp.

double WetbulbTemperature ( double  T,
double  p,
double  psi_w 
)

Definition at line 894 of file HumidAirProp.cpp.