00001 ///////////////////////////////////////////////////////////////////////////////////////// 00002 /// \file consts.h 00003 /// \brief Declaration of constants used in the HVAC toolkit 00004 /// 00005 ///////////////////////////////////////////////////////////////////////////////////////// 00006 /// 00007 /// \attention 00008 /// PORTIONS COPYRIGHT (C) 2003 AYRES SOWELL ASSOCIATES, INC. \n 00009 /// PORTIONS COPYRIGHT (C) 2003 THE REGENTS OF THE UNIVERSITY OF CALIFORNIA . 00010 /// PENDING APPROVAL BY THE US DEPARTMENT OF ENERGY. ALL RIGHTS RESERVED. 00011 /// 00012 ///////////////////////////////////////////////////////////////////////////////////////// 00013 00014 00015 #if !defined(__CONSTS_H__) 00016 #define __CONSTS_H__ 00017 00018 ///////////////////////////////////////////////////////////////////////////////////////// 00019 /// \name Mathematical constants 00020 //@{ 00021 const double SMALL = 1.0e-23; ///< considered a very small number 00022 const double LARGE = 1.0e+23; ///< considered a very large number 00023 #if !defined(__SC__) && !defined(PI) 00024 const double PI = 3.14159265358979323846; ///< ratio of circle perimeter over its diameter: \f$\pi\f$ 00025 #endif 00026 //@} 00027 ///////////////////////////////////////////////////////////////////////////////////////// 00028 00029 00030 ///////////////////////////////////////////////////////////////////////////////////////// 00031 /// \name Constants used to identify flow arrangement in heat exchangers 00032 //@{ 00033 const unsigned COUNTER_FLOW = 1; ///< counter flow 00034 const unsigned PARALLEL_FLOW = 2; ///< parallel flow 00035 const unsigned CROSS_FLOW_BOTH_UNMIXED = 3; ///< cross flow, both unmixed 00036 const unsigned CROSS_FLOW_BOTH_MIXED = 4; ///< cross flow, both mixed 00037 const unsigned CROSS_FLOW_1_UNMIXED = 5; ///< cross flow, first stream unmixed 00038 const unsigned CROSS_FLOW_2_UNMIXED = 6; ///< cross flow, second stream unmixed 00039 //@} 00040 ///////////////////////////////////////////////////////////////////////////////////////// 00041 00042 00043 ///////////////////////////////////////////////////////////////////////////////////////// 00044 /// \name Physical constants 00045 //@{ 00046 const double ABS_ZERO = -273.16; ///< absolute zero temperature in [deg_C] 00047 const double KELV_ZERO = 273.16; ///< 0 [deg_C] in [K] 00048 const double BOLTZ = 5.67E-8; ///< Stefan-Boltzmann constant [W/(m^2*K^4)] 00049 const double CP_AIR = 1006.0; ///< specific heat capacity of dry air [J/(kg*K)] 00050 const double MW_AIR = 28.9645; ///< molar weight of dry air [g/mol] 00051 const double CP_VAP = 1805.0; ///< specific heat capacity of water vapor [J/(kg*K)] 00052 const double CP_WAT = 4186.0; ///< specific heat capacity of liquid water [J/(kg*K)] 00053 const double MW_WATER = 18.01528; ///< molar weight of liquid water [g/mol] 00054 const double MW_RATIO = 0.62197; ///< ratio of molar weights of liquid water over dry air [-] 00055 00056 const double HF_VAP = 2.501E6; ///< latent heat of vaporization of water [J/kg] 00057 const double LAMBDA_AIR = 0.0243; ///< thermal conductivity of dry air [W/(m*K)] 00058 const double LAMBDA_WAT = 0.554; ///< thermal conductivity of liquid water [W/(m*K)] 00059 00060 const double PRANDTL_AIR = 0.71; ///< Prandtl number for dry air [-] 00061 const double RHO_AIR = 1.2; ///< density of air [kg/m^3] 00062 const double RHO_WAT = 998.0; ///< density of water [kg/m^3] 00063 const double VISC_WAT = 1.0E-3; ///< dynamic viscosity for liquid water [kg/(m*s)] 00064 00065 const double R_AIR = 287.053; ///< specific gas constant for ideal air [J/(kg*K)] 00066 const double R_0 = 8314.34; ///< universal gas constant [kJ/(mol*K)] 00067 const double P_ATM = 101325.0; ///< atmospheric pressure in [kg/(m*s^2)] or [Pa] 00068 //@} 00069 ///////////////////////////////////////////////////////////////////////////////////////// 00070 00071 #endif //__CONSTS_H__ 00072 00073 00074