common.h File Reference

#include "units.h"

Include dependency graph for common.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NUM_DEFINED
#define METHOD_H_OBJ(funcname)   Num funcname(SteamCalculator *c)
#define REG4_TOL   0.001
#define MPA_TO_BAR(PRES)   (((Num)(PRES)) * 10.0 )
#define BAR_TO_MPA(PRES)   (((Num)(PRES)) * 0.1 )
#define PA_TO_MPA(PRES)   (((Num)(PRES)) * 0.000001 )
#define MPA_TO_PA(PRES)   (((Num)(PRES)) * 1.0E6 )
#define KJKG_TO_JKG(JKG)   (((Num)(KJKG)) * 1000.0 )
#define BAR_TO_PA(PRES)   (((Num)(PRES)) * 100.0E3 )
#define KPA_TO_MPA(PRES)   (((Num)(PRES)) * 0.001 )
#define W_TO_KW(W)   (((Num)(W))*0.001)
#define KJ_TO_J(KJ)   (((Num)(KJ))*0.001)
#define J_TO_KJ(J)   (((Num)(J))*0.001)
#define PI   3.14159265358

Typedefs

typedef double Num

Functions

template<class T>
sq (const T &t)

Variables

const SpecificGasConstant R = 0.461526 * kJ_kgK
const Temperature TB_HIGH = 863.15 * Kelvin
const Temperature T_MIN = ZeroCelsius
const Temperature T_MAX = 1073.15 * Kelvin
const Temperature T_CRIT = 647.096 * Kelvin
const Temperature T_TRIPLE = 273.16 * Kelvin
const Temperature REG2_TEMP_REF = 540.0 * Kelvin
const Temperature REG1_TEMP_REF = 1386.0 * Kelvin
const Temperature REG1_T_LOW = ZeroCelsius
const Temperature REG2_T_LOW = ZeroCelsius
const Temperature REG2_T_HIGH = T_MAX
const Temperature T_REG1_REG3 = 623.15 * Kelvin
const Temperature TB_LOW = T_REG1_REG3
const Temperature T_MIN_VOL = fromcelsius(3.984)
const Pressure P_MAX = 100.0 * MPa
const Pressure PB_LOW = 16.5292 * MPa
const Pressure P_MIN = 0.0 * Pascal
const Pressure P_CRIT = 22.064 * MPa
const Pressure P_TRIPLE = 611.657 * Pascal
const Pressure REG4_P_MIN = 611.213 * Pascal
const Pressure REG2_P_HIGH = P_MAX
const Pressure REG1_P_HIGH = P_MAX
const Pressure REG1_PRES_REF = 16.53 * MPa
const Pressure REG2_PRES_REF = 1.0 * MPa
const Density RHO_CRIT = 322.0 * kg / metre3
const DynamicViscosity IAPS85_VISC_REF = 55.071 * micro * Pascal * second
const Density IAPS85_DENS_REF = 317.763 * kg_m3
const Temperature IAPS85_TEMP_REF = 647.226 * Kelvin
const Pressure IAPS85_PRES_REF = 22.115 * MPa
const Temperature IAPS85_TEMP_REG2_REF = 540.0 * Kelvin
const Pressure STEAM_P_EPS = 1.0e-5 * MPa
const Temperature STEAM_T_EPS = 5.0e-4 * Kelvin
const Temperature EPS_T_CRIT = 0.00007 * Kelvin
const Temperature T_CRIT_PLUS = (T_CRIT + STEAM_T_EPS)
const Density REG3_ZEROIN_DENS_MAX = 765.0 * kg_m3
const Density REG3_ZEROIN_TOL = 1e-18 * kg_m3
const Acceleration GRAV = 9.81 * Newton / kg
const int SOLVE_IENERGY = 0
const int SOLVE_ENTHALPY = 1
const int SOLVE_ENTROPY = 0
const int SOLVE_CV = 1
const int SOLVE_CP = 2


Define Documentation

#define BAR_TO_MPA ( PRES   )     (((Num)(PRES)) * 0.1 )

#define BAR_TO_PA ( PRES   )     (((Num)(PRES)) * 100.0E3 )

#define J_TO_KJ (  )     (((Num)(J))*0.001)

#define KJ_TO_J ( KJ   )     (((Num)(KJ))*0.001)

#define KJKG_TO_JKG ( JKG   )     (((Num)(KJKG)) * 1000.0 )

#define KPA_TO_MPA ( PRES   )     (((Num)(PRES)) * 0.001 )

#define METHOD_H_OBJ ( funcname   )     Num funcname(SteamCalculator *c)

#define MPA_TO_BAR ( PRES   )     (((Num)(PRES)) * 10.0 )

#define MPA_TO_PA ( PRES   )     (((Num)(PRES)) * 1.0E6 )

#define NUM_DEFINED

#define PA_TO_MPA ( PRES   )     (((Num)(PRES)) * 0.000001 )

#define PI   3.14159265358

#define REG4_TOL   0.001

#define W_TO_KW (  )     (((Num)(W))*0.001)


Typedef Documentation

typedef double Num


Function Documentation

template<class T>
T sq ( const T &  t  )  [inline]


Variable Documentation

const Temperature EPS_T_CRIT = 0.00007 * Kelvin

const Acceleration GRAV = 9.81 * Newton / kg

const Density IAPS85_DENS_REF = 317.763 * kg_m3

const Pressure IAPS85_PRES_REF = 22.115 * MPa

const Temperature IAPS85_TEMP_REF = 647.226 * Kelvin

const Pressure P_CRIT = 22.064 * MPa

const Pressure P_MAX = 100.0 * MPa

const Pressure P_MIN = 0.0 * Pascal

const Pressure P_TRIPLE = 611.657 * Pascal

const Pressure PB_LOW = 16.5292 * MPa

const SpecificGasConstant R = 0.461526 * kJ_kgK

const Pressure REG1_PRES_REF = 16.53 * MPa

Referenced by Region1::set_pT().

const Temperature REG1_TEMP_REF = 1386.0 * Kelvin

Referenced by Region1::set_pT().

Referenced by Boundaries::getTbound_p().

const Pressure REG2_PRES_REF = 1.0 * MPa

const Temperature REG2_TEMP_REF = 540.0 * Kelvin

Referenced by Region2::set_pT().

const Density REG3_ZEROIN_TOL = 1e-18 * kg_m3

Referenced by Region3::set_pT().

const Pressure REG4_P_MIN = 611.213 * Pascal

const Density RHO_CRIT = 322.0 * kg / metre3

const int SOLVE_CP = 2

const int SOLVE_CV = 1

const int SOLVE_ENTHALPY = 1

const int SOLVE_ENTROPY = 0

const int SOLVE_IENERGY = 0

const Pressure STEAM_P_EPS = 1.0e-5 * MPa

Referenced by Boundaries::isValid_pT().

const Temperature STEAM_T_EPS = 5.0e-4 * Kelvin

Referenced by Boundaries::isValid_pT().

const Temperature T_CRIT = 647.096 * Kelvin

const Temperature T_MAX = 1073.15 * Kelvin

const Temperature T_MIN_VOL = fromcelsius(3.984)

const Temperature T_REG1_REG3 = 623.15 * Kelvin

const Temperature T_TRIPLE = 273.16 * Kelvin

const Temperature TB_HIGH = 863.15 * Kelvin


Generated on Tue Feb 10 18:37:37 2009 for freesteam by  doxygen 1.5.6