CoolProp  6.6.1dev
An open-source fluid property and humid air property database
Classes | Enumerations | Functions
HumidAir Namespace Reference

Classes

class  WetBulbSolver
 
class  WetBulbTminSolver
 
class  HAProps_W_Residual
 
class  HAProps_T_Residual
 

Enumerations

enum  givens {
  GIVEN_INVALID = 0 , GIVEN_TDP , GIVEN_PSIW , GIVEN_HUMRAT ,
  GIVEN_VDA , GIVEN_VHA , GIVEN_TWB , GIVEN_RH ,
  GIVEN_ENTHALPY , GIVEN_ENTHALPY_HA , GIVEN_ENTROPY , GIVEN_ENTROPY_HA ,
  GIVEN_T , GIVEN_P , GIVEN_VISC , GIVEN_COND ,
  GIVEN_CP , GIVEN_CPHA , GIVEN_COMPRESSIBILITY_FACTOR , GIVEN_PARTIAL_PRESSURE_WATER ,
  GIVEN_CV , GIVEN_CVHA , GIVEN_INTERNAL_ENERGY , GIVEN_INTERNAL_ENERGY_HA ,
  GIVEN_SPEED_OF_SOUND , GIVEN_ISENTROPIC_EXPONENT
}
 

Functions

void _HAPropsSI_inputs (double p, const std::vector< givens > &input_keys, const std::vector< double > &input_vals, double &T, double &psi_w)
 Calculate T (dry bulb temp) and psi_w (water mole fraction) given the pair of inputs. More...
 
double _HAPropsSI_outputs (givens OuputType, double p, double T, double psi_w)
 
double MoleFractionWater (double, double, int, double)
 
void check_fluid_instantiation ()
 
double f_factor (double T, double p)
 
void UseVirialCorrelations (int flag)
 
void UseIsothermCompressCorrelation (int flag)
 
void UseIdealGasEnthalpyCorrelations (int flag)
 
double HumidityRatio (double psi_w)
 
double isothermal_compressibility (double T, double p)
 
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 Pressure (double T, double v_bar, double psi_w)
 
double IdealGasMolarEnthalpy_Water (double T, double p)
 
double IdealGasMolarEntropy_Water (double T, double p)
 
double IdealGasMolarEnthalpy_Air (double T, double p)
 
double IdealGasMolarEntropy_Air (double T, double vmolar_a)
 
double MolarEnthalpy (double T, double p, double psi_w, double vmolar)
 
double MolarInternalEnergy (double T, double p, double psi_w, double vmolar)
 
double MassEnthalpy_per_kgha (double T, double p, double psi_w)
 
double MassEnthalpy_per_kgda (double T, double p, double psi_w)
 
double MassInternalEnergy_per_kgha (double T, double p, double psi_w)
 
double MassInternalEnergy_per_kgda (double T, double p, double psi_w)
 
double MolarEntropy (double T, double p, double psi_w, double v_bar)
 
double MassEntropy_per_kgha (double T, double p, double psi_w)
 
double MassEntropy_per_kgda (double T, double p, double psi_w)
 
double DewpointTemperature (double T, double p, double psi_w)
 
double WetbulbTemperature (double T, double p, double psi_w)
 
int TypeMatch (int TypeCode, const std::string &Input1Name, const std::string &Input2Name, const std::string &Input3Name)
 
double RelativeHumidity (double T, double p, double psi_w)
 
void convert_to_SI (const std::string &Name, double &val)
 
void convert_from_SI (const std::string &Name, double &val)
 
double HAProps (const std::string &OutputName, const std::string &Input1Name, double Input1, const std::string &Input2Name, double Input2, const std::string &Input3Name, double Input3)
 
long get_input_key (const std::vector< givens > &input_keys, givens key)
 
bool match_input_key (const std::vector< givens > &input_keys, givens key)
 
double HAPropsSI (const std::string &OutputName, const std::string &Input1Name, double Input1, const std::string &Input2Name, double Input2, const std::string &Input3Name, double Input3)
 
double 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)
 

Enumeration Type Documentation

◆ givens

Enumerator
GIVEN_INVALID 
GIVEN_TDP 
GIVEN_PSIW 
GIVEN_HUMRAT 
GIVEN_VDA 
GIVEN_VHA 
GIVEN_TWB 
GIVEN_RH 
GIVEN_ENTHALPY 
GIVEN_ENTHALPY_HA 
GIVEN_ENTROPY 
GIVEN_ENTROPY_HA 
GIVEN_T 
GIVEN_P 
GIVEN_VISC 
GIVEN_COND 
GIVEN_CP 
GIVEN_CPHA 
GIVEN_COMPRESSIBILITY_FACTOR 
GIVEN_PARTIAL_PRESSURE_WATER 
GIVEN_CV 
GIVEN_CVHA 
GIVEN_INTERNAL_ENERGY 
GIVEN_INTERNAL_ENERGY_HA 
GIVEN_SPEED_OF_SOUND 
GIVEN_ISENTROPIC_EXPONENT 

Definition at line 49 of file HumidAirProp.cpp.

Function Documentation

◆ _HAPropsSI_inputs()

void HumidAir::_HAPropsSI_inputs ( double  p,
const std::vector< givens > &  input_keys,
const std::vector< double > &  input_vals,
double &  T,
double &  psi_w 
)

Calculate T (dry bulb temp) and psi_w (water mole fraction) given the pair of inputs.

Definition at line 1603 of file HumidAirProp.cpp.

◆ _HAPropsSI_outputs()

double HumidAir::_HAPropsSI_outputs ( givens  OuputType,
double  p,
double  T,
double  psi_w 
)

Definition at line 1769 of file HumidAirProp.cpp.

◆ cair_sat()

double HumidAir::cair_sat ( double  T)

Definition at line 2174 of file HumidAirProp.cpp.

◆ check_fluid_instantiation()

void HumidAir::check_fluid_instantiation ( )

Definition at line 89 of file HumidAirProp.cpp.

◆ Conductivity()

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

Definition at line 800 of file HumidAirProp.cpp.

◆ convert_from_SI()

void HumidAir::convert_from_SI ( const std::string &  Name,
double &  val 
)

Definition at line 1486 of file HumidAirProp.cpp.

◆ convert_to_SI()

void HumidAir::convert_to_SI ( const std::string &  Name,
double &  val 
)

Definition at line 1452 of file HumidAirProp.cpp.

◆ DewpointTemperature()

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

Definition at line 1128 of file HumidAirProp.cpp.

◆ f_factor()

double HumidAir::f_factor ( double  T,
double  p 
)

Definition at line 657 of file HumidAirProp.cpp.

◆ get_input_key()

long HumidAir::get_input_key ( const std::vector< givens > &  input_keys,
givens  key 
)

Definition at line 1532 of file HumidAirProp.cpp.

◆ HAHelp()

void HumidAir::HAHelp ( void  )

Definition at line 760 of file HumidAirProp.cpp.

◆ HAProps()

double HumidAir::HAProps ( const std::string &  OutputName,
const std::string &  Input1Name,
double  Input1,
const std::string &  Input2Name,
double  Input2,
const std::string &  Input3Name,
double  Input3 
)

Definition at line 1520 of file HumidAirProp.cpp.

◆ HAProps_Aux()

double HumidAir::HAProps_Aux ( const char *  Name,
double  T,
double  p,
double  W,
char *  units 
)

Definition at line 2024 of file HumidAirProp.cpp.

◆ HAPropsSI()

double HumidAir::HAPropsSI ( const std::string &  OutputName,
const std::string &  Input1Name,
double  Input1,
const std::string &  Input2Name,
double  Input2,
const std::string &  Input3Name,
double  Input3 
)

Definition at line 1891 of file HumidAirProp.cpp.

◆ HumidityRatio()

double HumidAir::HumidityRatio ( double  psi_w)

Definition at line 623 of file HumidAirProp.cpp.

◆ IceProps()

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

Definition at line 2183 of file HumidAirProp.cpp.

◆ IdealGasMolarEnthalpy_Air()

double HumidAir::IdealGasMolarEnthalpy_Air ( double  T,
double  p 
)

Definition at line 928 of file HumidAirProp.cpp.

◆ IdealGasMolarEnthalpy_Water()

double HumidAir::IdealGasMolarEnthalpy_Water ( double  T,
double  p 
)

Definition at line 885 of file HumidAirProp.cpp.

◆ IdealGasMolarEntropy_Air()

double HumidAir::IdealGasMolarEntropy_Air ( double  T,
double  vmolar_a 
)

Definition at line 950 of file HumidAirProp.cpp.

◆ IdealGasMolarEntropy_Water()

double HumidAir::IdealGasMolarEntropy_Water ( double  T,
double  p 
)

Definition at line 904 of file HumidAirProp.cpp.

◆ isothermal_compressibility()

double HumidAir::isothermal_compressibility ( double  T,
double  p 
)

Definition at line 639 of file HumidAirProp.cpp.

◆ MassEnthalpy_per_kgda()

double HumidAir::MassEnthalpy_per_kgda ( double  T,
double  p,
double  psi_w 
)

Definition at line 1024 of file HumidAirProp.cpp.

◆ MassEnthalpy_per_kgha()

double HumidAir::MassEnthalpy_per_kgha ( double  T,
double  p,
double  psi_w 
)

Definition at line 1018 of file HumidAirProp.cpp.

◆ MassEntropy_per_kgda()

double HumidAir::MassEntropy_per_kgda ( double  T,
double  p,
double  psi_w 
)

Definition at line 1120 of file HumidAirProp.cpp.

◆ MassEntropy_per_kgha()

double HumidAir::MassEntropy_per_kgha ( double  T,
double  p,
double  psi_w 
)

Definition at line 1114 of file HumidAirProp.cpp.

◆ MassInternalEnergy_per_kgda()

double HumidAir::MassInternalEnergy_per_kgda ( double  T,
double  p,
double  psi_w 
)

Definition at line 1037 of file HumidAirProp.cpp.

◆ MassInternalEnergy_per_kgha()

double HumidAir::MassInternalEnergy_per_kgha ( double  T,
double  p,
double  psi_w 
)

Definition at line 1031 of file HumidAirProp.cpp.

◆ match_input_key()

bool HumidAir::match_input_key ( const std::vector< givens > &  input_keys,
givens  key 
)

Definition at line 1545 of file HumidAirProp.cpp.

◆ MolarEnthalpy()

double HumidAir::MolarEnthalpy ( double  T,
double  p,
double  psi_w,
double  vmolar 
)
Parameters
TTemperature, in K
pPressure (not used)
psi_wWater mole fraction (mol_w/mol_ha)
vmolarMixture molar volume in m^3/mol_ha
Returns
h_ha Mixture molar enthalpy on a humid air basis in J/mol_ha

Definition at line 986 of file HumidAirProp.cpp.

◆ MolarEntropy()

double HumidAir::MolarEntropy ( double  T,
double  p,
double  psi_w,
double  v_bar 
)
Parameters
TTemperature, in K
pPressure (not used)
psi_wWater mole fraction (mol_w/mol_ha)
v_barMixture molar volume in m^3/mol_ha
Returns
s_ha Mixture molar entropy on a humid air basis in J/mol_ha/K

Definition at line 1052 of file HumidAirProp.cpp.

◆ MolarInternalEnergy()

double HumidAir::MolarInternalEnergy ( double  T,
double  p,
double  psi_w,
double  vmolar 
)

Definition at line 1015 of file HumidAirProp.cpp.

◆ MolarVolume()

double HumidAir::MolarVolume ( double  T,
double  p,
double  psi_w 
)
Parameters
TTemperature in K
pPressure in Pa
psi_wWater mole fraction in mol_w/mol_ha
Returns
v Molar volume on a humid-air basis in m^3/mol_ha

Definition at line 830 of file HumidAirProp.cpp.

◆ MoleFractionWater()

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

Definition at line 1388 of file HumidAirProp.cpp.

◆ Pressure()

double HumidAir::Pressure ( double  T,
double  v_bar,
double  psi_w 
)

Definition at line 879 of file HumidAirProp.cpp.

◆ RelativeHumidity()

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

Definition at line 1433 of file HumidAirProp.cpp.

◆ returnHumAirCode()

int HumidAir::returnHumAirCode ( const char *  Code)

Definition at line 763 of file HumidAirProp.cpp.

◆ TypeMatch()

int HumidAir::TypeMatch ( int  TypeCode,
const std::string &  Input1Name,
const std::string &  Input2Name,
const std::string &  Input3Name 
)

Definition at line 1379 of file HumidAirProp.cpp.

◆ UseIdealGasEnthalpyCorrelations()

void HumidAir::UseIdealGasEnthalpyCorrelations ( int  flag)

Definition at line 224 of file HumidAirProp.cpp.

◆ UseIsothermCompressCorrelation()

void HumidAir::UseIsothermCompressCorrelation ( int  flag)

Definition at line 217 of file HumidAirProp.cpp.

◆ UseVirialCorrelations()

void HumidAir::UseVirialCorrelations ( int  flag)

Definition at line 210 of file HumidAirProp.cpp.

◆ Viscosity()

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

Definition at line 779 of file HumidAirProp.cpp.

◆ WetbulbTemperature()

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

Definition at line 1278 of file HumidAirProp.cpp.