CoolProp  6.6.0
An open-source fluid property and humid air property database
Classes | Namespaces | Enumerations | Functions | Variables
HumidAirProp.cpp File Reference
#include <memory>
#include "HumidAirProp.h"
#include "Backends/Helmholtz/HelmholtzEOSBackend.h"
#include "Solvers.h"
#include "CoolPropTools.h"
#include "Ice.h"
#include "CoolProp.h"
#include "crossplatform_shared_ptr.h"
#include "Exceptions.h"
#include "Configuration.h"
#include <algorithm>
#include <stdlib.h>
#include "math.h"
#include "time.h"
#include "stdio.h"
#include <string.h>
#include <iostream>
#include <list>
#include "externals/IF97/IF97.h"

Go to the source code of this file.

Classes

class  HumidAir::WetBulbSolver
 
class  HumidAir::WetBulbTminSolver
 
class  HumidAir::HAProps_W_Residual
 
class  HumidAir::HAProps_T_Residual
 

Namespaces

 HumidAir
 

Enumerations

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

Functions

std::size_t strcmp (const std::string &s, const std::string &e)
 This is a stub overload to help with all the strcmp calls below and avoid needing to rewrite all of them. More...
 
std::size_t strcmp (const std::string &s, const char *e)
 
std::size_t strcmp (const char *e, const std::string &s)
 
void strcpy (std::string &s, const std::string &e)
 
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. More...
 
double HumidAir::_HAPropsSI_outputs (givens OuputType, double p, double T, double psi_w)
 
double HumidAir::MoleFractionWater (double, double, int, double)
 
void HumidAir::check_fluid_instantiation ()
 
double HumidAir::f_factor (double T, double p)
 
void HumidAir::UseVirialCorrelations (int flag)
 
void HumidAir::UseIsothermCompressCorrelation (int flag)
 
void HumidAir::UseIdealGasEnthalpyCorrelations (int flag)
 
double HumidAir::HumidityRatio (double psi_w)
 
double HumidAir::isothermal_compressibility (double T, double p)
 
void HumidAir::HAHelp (void)
 
int HumidAir::returnHumAirCode (const char *Code)
 
double HumidAir::Viscosity (double T, double p, double psi_w)
 
double HumidAir::Conductivity (double T, double p, double psi_w)
 
double HumidAir::MolarVolume (double T, double p, double psi_w)
 
double HumidAir::Pressure (double T, double v_bar, double psi_w)
 
double HumidAir::IdealGasMolarEnthalpy_Water (double T, double p)
 
double HumidAir::IdealGasMolarEntropy_Water (double T, double p)
 
double HumidAir::IdealGasMolarEnthalpy_Air (double T, double p)
 
double HumidAir::IdealGasMolarEntropy_Air (double T, double vmolar_a)
 
double HumidAir::MolarEnthalpy (double T, double p, double psi_w, double vmolar)
 
double HumidAir::MolarInternalEnergy (double T, double p, double psi_w, double vmolar)
 
double HumidAir::MassEnthalpy_per_kgha (double T, double p, double psi_w)
 
double HumidAir::MassEnthalpy_per_kgda (double T, double p, double psi_w)
 
double HumidAir::MassInternalEnergy_per_kgha (double T, double p, double psi_w)
 
double HumidAir::MassInternalEnergy_per_kgda (double T, double p, double psi_w)
 
double HumidAir::MolarEntropy (double T, double p, double psi_w, double v_bar)
 
double HumidAir::MassEntropy_per_kgha (double T, double p, double psi_w)
 
double HumidAir::MassEntropy_per_kgda (double T, double p, double psi_w)
 
double HumidAir::DewpointTemperature (double T, double p, double psi_w)
 
double HumidAir::WetbulbTemperature (double T, double p, double psi_w)
 
int HumidAir::TypeMatch (int TypeCode, const std::string &Input1Name, const std::string &Input2Name, const std::string &Input3Name)
 
double HumidAir::RelativeHumidity (double T, double p, double psi_w)
 
void HumidAir::convert_to_SI (const std::string &Name, double &val)
 
void HumidAir::convert_from_SI (const std::string &Name, double &val)
 
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)
 
long HumidAir::get_input_key (const std::vector< givens > &input_keys, givens key)
 
bool HumidAir::match_input_key (const std::vector< givens > &input_keys, givens key)
 
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)
 
double HumidAir::HAProps_Aux (const char *Name, double T, double p, double W, char *units)
 
double HumidAir::cair_sat (double T)
 
double HumidAir::IceProps (const char *Name, double T, double p)
 

Variables

shared_ptr< CoolProp::HelmholtzEOSBackendWater
 
shared_ptr< CoolProp::HelmholtzEOSBackendAir
 
shared_ptr< CoolProp::AbstractStateWaterIF97
 

Function Documentation

◆ strcmp() [1/3]

std::size_t strcmp ( const char *  e,
const std::string &  s 
)

Definition at line 36 of file HumidAirProp.cpp.

◆ strcmp() [2/3]

std::size_t strcmp ( const std::string &  s,
const char *  e 
)

Definition at line 33 of file HumidAirProp.cpp.

◆ strcmp() [3/3]

std::size_t strcmp ( const std::string &  s,
const std::string &  e 
)

This is a stub overload to help with all the strcmp calls below and avoid needing to rewrite all of them.

Definition at line 30 of file HumidAirProp.cpp.

◆ strcpy()

void strcpy ( std::string &  s,
const std::string &  e 
)

Definition at line 41 of file HumidAirProp.cpp.

Variable Documentation

◆ Air

Definition at line 45 of file HumidAirProp.cpp.

◆ Water

shared_ptr<CoolProp::HelmholtzEOSBackend> Water

Definition at line 45 of file HumidAirProp.cpp.

◆ WaterIF97

shared_ptr<CoolProp::AbstractState> WaterIF97

Definition at line 46 of file HumidAirProp.cpp.