class Property, the Base class of GOLP

[intro][interfaces][exceptions][code][home]

1 introduction

Class Property is the base class for GOLP, it defines the interfaces to query properties. It is a template class, the float type is its template parameter. it has only one data member, std::string _name, which saves the name of the matter.

template<typename val_T>
class Property
{
	std::string _name;
public:
	Property(const char* name) : m_name(name) { }
	virtual ~Property() { }

	virtual const char *Name() const { return m_name.c_str(); }
...

2 Interfaces

2.1 basic information

virtual const char *Name() const { return m_name.c_str(); }	// name
virtual const char *Formula() = 0;	// formula
virtual const char *Description() = 0;	// description

member functions Formula() and Description() are pure virtual function, which must be override by the concrete property class.

2.2 constants of properties

query the property constants, all functions are named as 'get_propertyname'. The return value type is val_T, and have none input parameter.

  description property name function name default value
basic parameters molecular weight mwi get_mwi  
degree of freedom dof get_dof  
gas constant Rgas get_Rgas  
critical point critical temperature critic_T get_critic_T  
critical pressure critic_P get_critic_P  
critical specific volume critic_sv get_critic_sv  
critical compress factor critic_Z get_critic_Z  
triple point triple temperature triple_T get_triple_T  
triple pressure triple_P get_triple_P  
Lennard-Jones characteristic parameters Lennard-Jones characteristic length charSigma get_charSigma  
Lennard-Jones characteristic energy charEpsK get_charEpsK  

2.3 properties on normal conditions

properties on normal conditions(normal temperature and normal pressure), all functions are named as 'get_propertyname'. The return value type is val_T, and have none input parameter.

the two functions are used to set and get reference conditions:

val_T get_ref_T( )		// return reference temperature
val_T get_ref_P( )		// return reference pressure
  description property name function name default value
thermodynamic properties specific volume sv get_sv  
specific internal energy su get_su  
specific enthalpy sh get_sh  
specific entropy ss get_ss  
constant-pressure specific heat Cp get_Cp  
cosntant-volume specific heat Cv get_Cv  
compress factor Z get_Z  
standard enthalpy of formation hform get_hform  
absorption coefficient abs_coef get_abs_coef  
scattering coefficient scat_coef get_scat_coef  
volatile fraction volatile_frac get_volatile_frac  
combustible fraction combustible_frac get_combustible_frac  
thermophoretic diffusion coefficient thermophoretic_coef get_thermophoretic_coef  
heat of pyrolysis hpyrolysis get_hpyrolysis  
particle swelling coefficien swell_coef get_swell_coef  
burnout stoichiometry for combusting particle burn_stoich get_burn_stoich  
heat of reaction for burnout heat_react get_heat_react  
fraction of hreact given to solid heat_react_frac get_heat_react_frac  
surface tension coefficient surface_tension_coef get_surface_tension_coef  
thermophysical properties desity rho get_rho  
laminar viscosity mu get_mu  
moving viscosity nu get_nu  
Prantle number Pr get_Pr  
thermal conductivity (isotropic) ktc get_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 get_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 get_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 get_ktc2  
binary mass diffusivity coefficient diff get_diff  
thermal diffusion coefficient thermal_diff get_thermal_diff  
thermal expansion coefficient therm_exp_coef get_therm_exp_coef  
physical properties particle emissivity emissivity get_emissivity  
particle scattering factor scat_factor get_scat_factor  
refractive index refractive_index get_refractive_index  
porosity (Vol_void/Vol_bulk) of porous (solid) mat'ls porosity get_porosity  
sound speed sound_speed get_sound_speed  

2.4 properties on normal pressure

most functions are named as 'tget_propertyname'. The return value type is val_T, and use temperature as its input parameter.

the tget_ref_P function return reference pressure
val_T tget_ref_P( )
  description property name function name default value
thermodynamic properties specific volume sv tget_sv  
specific internal energy su tget_su  
specific enthalpy sh tget_sh  
specific entropy ss tget_ss  
constant-pressure specific heat Cp tget_Cp  
constant-volume specific heat Cv tget_Cv  
compress factor Z tget_Z  
thermophoretic diffusion coefficient thermophoretic_coef tget_thermophoretic_coef  
particle swelling coefficien swell_coef tget_swell_coef  
surface tension coefficient surface_tension_coef tget_surface_tension_coef  
thermophysical properties desity rho tget_rho  
laminar viscosity mu tget_mu  
moving viscosity nu tget_nu  
Prantle number Pr tget_Pr  
thermal conductivity (isotropic) ktc tget_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 tget_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 tget_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 tget_ktc2  
binary mass diffusivity coefficient diff tget_diff  
thermal diffusion coefficient thermal_diff tget_thermal_diff  
thermal expansion coefficient therm_exp_coef tget_therm_exp_coef  
physical properties particle emissivity emissivity tget_emissivity  
particle scattering factor scat_factor tget_scat_factor  
refractive index refractive_index tget_refractive_index  
sound speed sound_speed tget_sound_speed  

2.5 properties on normal temperature

all functions are named as 'pget_propertyname'. The return value type is val_T, and use pressure as its input parameter.

the pget_ref_T function return reference pressure
val_T pget_ref_T( )
  description property name function name default value
thermodynamic properties specific volume sv pget_sv  
specific internal energy su pget_su  
specific enthalpy sh pget_sh  
specific entropy ss pget_ss  
constant-pressure specific heat Cp pget_Cp  
constant-volume specific heat Cv pget_Cv  
compress factor Z pget_Z  
thermophoretic diffusion coefficient thermophoretic_coef pget_thermophoretic_coef  
particle swelling coefficien swell_coef pget_swell_coef  
surface tension coefficient surface_tension_coef pget_surface_tension_coef  
thermophysical properties desity rho pget_rho  
laminar viscosity mu pget_mu  
moving viscosity nu pget_nu  
Prantle number Pr pget_Pr  
thermal conductivity (isotropic) ktc pget_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 pget_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 pget_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 pget_ktc2  
binary mass diffusivity coefficient diff pget_diff  
thermal diffusion coefficient thermal_diff pget_thermal_diff  
thermal expansion coefficient therm_exp_coef pget_therm_exp_coef  
physical properties particle emissivity emissivity pget_emissivity  
particle scattering factor scat_factor pget_scat_factor  
refractive index refractive_index pget_refractive_index  
porosity (Vol_void/Vol_bulk) of porous (solid) mat'ls porosity pget_porosity  
sound speed sound_speed pget_sound_speed  

2.6 properties on saturation

2.6.1 properties on vaporization curve

when tmperature is given, use tget_vapor_propertyname to get properties. The two functions are used to get saturation pressure and latent heat.

val_T tget_vapor_P(val_T T)
val_T tget_vapor_latent_heat(val_T T)

the other functions have two input parameters, ie

val_T tget_vapor_sh(val_T T, bool x)

x detemines property of which phase is returned. if x is true, returns property of gas phase, otherwise, liquid phase.

  description property name function name default value
thermodynamic properties specific volume sv tget_vapor_sv  
specific internal energy su tget_vapor_su  
specific enthalpy sh tget_vapor_sh  
specific entropy ss tget_vapor_ss  
constant-pressure specific heat Cp tget_vapor_Cp  
constant-volume specific heat Cv tget_vapor_Cv  
compress factor Z tget_vapor_Z  
thermophoretic diffusion coefficient thermophoretic_coef tget_vapor_thermophoretic_coef  
particle swelling coefficien swell_coef tget_vapor_swell_coef  
surface tension coefficient surface_tension_coef tget_vapor_surface_tension_coef  
thermophysical properties desity rho tget_vapor_rho  
laminar viscosity mu tget_vapor_mu  
moving viscosity nu tget_vapor_nu  
Prantle number Pr tget_vapor_Pr  
thermal conductivity (isotropic) ktc tget_vapor_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 tget_vapor_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 tget_vapor_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 tget_vapor_ktc2  
binary mass diffusivity coefficient diff tget_vapor_diff  
thermal diffusion coefficient thermal_diff tget_vapor_thermal_diff  
thermal expansion coefficient therm_exp_coef tget_vapor_therm_exp_coef  
physical properties particle emissivity emissivity tget_vapor_emissivity  
particle scattering factor scat_factor tget_vapor_scat_factor  
refractive index refractive_index tget_vapor_refractive_index  
sound speed sound_speed tget_vapor_sound_speed  

when pressure is given, use pget_vapor_propertyname to get properties. The two functions are used to get saturation temperature and latent heat.

val_T pget_vapor_P(val_T P)
val_T pget_vapor_latent_heat(val_T P)

the other functions have two input parameters, ie

val_T pget_vapor_sh(val_T P, bool x)

x detemines property of which phase is returned. if x is true, returns property of gas phase, otherwise, liquid phase.

  description property name function name default value
thermodynamic properties specific volume sv pget_vapor_sv  
specific internal energy su pget_vapor_su  
specific enthalpy sh pget_vapor_sh  
specific entropy ss pget_vapor_ss  
constant-pressure specific heat Cp pget_vapor_Cp  
constant-volume specific heat Cv pget_vapor_Cv  
compress factor Z pget_vapor_Z  
thermophoretic diffusion coefficient thermophoretic_coef pget_vapor_thermophoretic_coef  
particle swelling coefficien swell_coef pget_vapor_swell_coef  
surface tension coefficient surface_tension_coef pget_vapor_surface_tension_coef  
thermophysical properties desity rho pget_vapor_rho  
laminar viscosity mu pget_vapor_mu  
moving viscosity nu pget_vapor_nu  
Prantle number Pr pget_vapor_Pr  
thermal conductivity (isotropic) ktc pget_vapor_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 pget_vapor_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 pget_vapor_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 pget_vapor_ktc2  
binary mass diffusivity coefficient diff pget_vapor_diff  
thermal diffusion coefficient thermal_diff pget_vapor_thermal_diff  
thermal expansion coefficient therm_exp_coef pget_vapor_therm_exp_coef  
physical properties particle emissivity emissivity pget_vapor_emissivity  
particle scattering factor scat_factor pget_vapor_scat_factor  
refractive index refractive_index pget_vapor_refractive_index  
sound speed sound_speed pget_vapor_sound_speed  

when specific volume is given, use vget_vapor_propertyname to get properties. The three functions are used to get saturation temperature, pressure and latent heat.

val_T vget_vapor_T(val_T v)
val_T vget_vapor_P(val_T v)
val_T vget_vapor_latent_heat(val_T v)

the other functions have two input parameters, ie

val_T vget_vapor_sh(val_T v, bool x)

x detemines property of which phase is returned. if x is true, returns property of gas phase, otherwise, liquid phase.

  description property name function name default value
thermodynamic properties specific volume sv vget_vapor_sv  
specific internal energy su vget_vapor_su  
specific enthalpy sh vget_vapor_sh  
specific entropy ss vget_vapor_ss  
2.6.2 properties on fusion curve

when tmperature is given, use tget_fusion_propertyname to get properties. The two functions are used to get saturation pressure and latent heat.

val_T tget_fusion_P(val_T T)
val_T tget_fusion_latent_heat(val_T T)

the other functions have two input parameters, ie

val_T tget_fusion_sh(val_T T, bool x)

x detemines property of which phase is returned. if x is true, returns property of liquid phase, otherwise, solid phase.

  description property name function name default value
thermodynamic properties specific volume sv tget_fusion_sv  
specific internal energy su tget_fusion_su  
specific enthalpy sh tget_fusion_sh  
specific entropy ss tget_fusion_ss  
constant-pressure specific heat Cp tget_fusion_Cp  
constant-volume specific heat Cv tget_fusion_Cv  
compress factor Z tget_fusion_Z  
thermophoretic diffusion coefficient thermophoretic_coef tget_fusion_thermophoretic_coef  
particle swelling coefficien swell_coef tget_fusion_swell_coef  
surface tension coefficient surface_tension_coef tget_fusion_surface_tension_coef  
thermophysical properties desity rho tget_fusion_rho  
laminar viscosity mu tget_fusion_mu  
moving viscosity nu tget_fusion_nu  
Prantle number Pr tget_fusion_Pr  
thermal conductivity (isotropic) ktc tget_fusion_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 tget_fusion_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 tget_fusion_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 tget_fusion_ktc2  
binary mass diffusivity coefficient diff tget_fusion_diff  
thermal diffusion coefficient thermal_diff tget_fusion_thermal_diff  
thermal expansion coefficient therm_exp_coef tget_fusion_therm_exp_coef  
physical properties particle emissivity emissivity tget_fusion_emissivity  
particle scattering factor scat_factor tget_fusion_scat_factor  
refractive index refractive_index tget_fusion_refractive_index  
sound speed sound_speed tget_fusion_sound_speed  

when pressure is given, use pget_fusion_propertyname to get properties. The two functions are used to get saturation temperature and latent heat.

val_T pget_fusion_P(val_T P)
val_T pget_fusion_latent_heat(val_T P)

the other functions have two input parameters, ie

val_T pget_fusion_sh(val_T P, bool x)

x detemines property of which phase is returned. if x is true, returns property of liquid phase, otherwise, solid phase.

  description property name function name default value
thermodynamic properties specific volume sv pget_fusion_sv  
specific internal energy su pget_fusion_su  
specific enthalpy sh pget_fusion_sh  
specific entropy ss pget_fusion_ss  
constant-pressure specific heat Cp pget_fusion_Cp  
constant-volume specific heat Cv pget_fusion_Cv  
compress factor Z pget_fusion_Z  
thermophoretic diffusion coefficient thermophoretic_coef pget_fusion_thermophoretic_coef  
particle swelling coefficien swell_coef pget_fusion_swell_coef  
surface tension coefficient surface_tension_coef pget_fusion_surface_tension_coef  
thermophysical properties desity rho pget_fusion_rho  
laminar viscosity mu pget_fusion_mu  
moving viscosity nu pget_fusion_nu  
Prantle number Pr pget_fusion_Pr  
thermal conductivity (isotropic) ktc pget_fusion_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 pget_fusion_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 pget_fusion_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 pget_fusion_ktc2  
binary mass diffusivity coefficient diff pget_fusion_diff  
thermal diffusion coefficient thermal_diff pget_fusion_thermal_diff  
thermal expansion coefficient therm_exp_coef pget_fusion_therm_exp_coef  
physical properties particle emissivity emissivity pget_fusion_emissivity  
particle scattering factor scat_factor pget_fusion_scat_factor  
refractive index refractive_index pget_fusion_refractive_index  
sound speed sound_speed pget_fusion_sound_speed  

when specific volume is given, use vget_fusion_propertyname to get properties. The three functions are used to get saturation temperature, pressure and latent heat.

val_T vget_fusion_T(val_T v)
val_T vget_fusion_P(val_T v)
val_T vget_fusion_latent_heat(val_T v)

the other functions have two input parameters, ie

val_T vget_fusion_sh(val_T v, bool x)

x detemines property of which phase is returned. if x is true, returns property of liquid phase, otherwise, solid phase.

  description property name function name default value
thermodynamic properties specific volume sv vget_fusion_sv  
specific internal energy su vget_fusion_su  
specific enthalpy sh vget_fusion_sh  
specific entropy ss vget_fusion_ss  
2.6.3 properties on sublimation curve

when tmperature is given, use tget_sublim_propertyname to get properties. The two functions are used to get saturation pressure and latent heat.

val_T tget_sublim_P(val_T T)
val_T tget_sublim_latent_heat(val_T T)

the other functions have two input parameters, ie

val_T tget_sublim_sh(val_T T, bool x)

x detemines property of which phase is returned. if x is true, returns property of gas phase, otherwise, solid phase.

  description property name function name default value
thermodynamic properties specific volume sv tget_sublim_sv  
specific internal energy su tget_sublim_su  
specific enthalpy sh tget_sublim_sh  
specific entropy ss tget_sublim_ss  
constant-pressure specific heat Cp tget_sublim_Cp  
constant-volume specific heat Cv tget_sublim_Cv  
compress factor Z tget_sublim_Z  
thermophoretic diffusion coefficient thermophoretic_coef tget_sublim_thermophoretic_coef  
particle swelling coefficien swell_coef tget_sublim_swell_coef  
surface tension coefficient surface_tension_coef tget_sublim_surface_tension_coef  
thermophysical properties desity rho tget_sublim_rho  
laminar viscosity mu tget_sublim_mu  
moving viscosity nu tget_sublim_nu  
Prantle number Pr tget_sublim_Pr  
thermal conductivity (isotropic) ktc tget_sublim_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 tget_sublim_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 tget_sublim_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 tget_sublim_ktc2  
binary mass diffusivity coefficient diff tget_sublim_diff  
thermal diffusion coefficient thermal_diff tget_sublim_thermal_diff  
thermal expansion coefficient therm_exp_coef tget_sublim_therm_exp_coef  
physical properties particle emissivity emissivity tget_sublim_emissivity  
particle scattering factor scat_factor tget_sublim_scat_factor  
refractive index refractive_index tget_sublim_refractive_index  
sound speed sound_speed tget_sublim_sound_speed  

when pressure is given, use pget_sublim_propertyname to get properties. The two functions are used to get saturation temperature and latent heat.

val_T pget_sublim_P(val_T P)
val_T pget_sublim_latent_heat(val_T P)

the other functions have two input parameters, ie

val_T pget_sublim_sh(val_T P, bool x)

x detemines property of which phase is returned. if x is true, returns property of gas phase, otherwise, solid phase.

  description property name function name default value
thermodynamic properties specific volume sv pget_sublim_sv  
specific internal energy su pget_sublim_su  
specific enthalpy sh pget_sublim_sh  
specific entropy ss pget_sublim_ss  
constant-pressure specific heat Cp pget_sublim_Cp  
constant-volume specific heat Cv pget_sublim_Cv  
compress factor Z pget_sublim_Z  
thermophoretic diffusion coefficient thermophoretic_coef pget_sublim_thermophoretic_coef  
particle swelling coefficien swell_coef pget_sublim_swell_coef  
surface tension coefficient surface_tension_coef pget_sublim_surface_tension_coef  
thermophysical properties desity rho pget_sublim_rho  
laminar viscosity mu pget_sublim_mu  
moving viscosity nu pget_sublim_nu  
Prantle number Pr pget_sublim_Pr  
thermal conductivity (isotropic) ktc pget_sublim_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 pget_sublim_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 pget_sublim_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 pget_sublim_ktc2  
binary mass diffusivity coefficient diff pget_sublim_diff  
thermal diffusion coefficient thermal_diff pget_sublim_thermal_diff  
thermal expansion coefficient therm_exp_coef pget_sublim_therm_exp_coef  
physical properties particle emissivity emissivity pget_sublim_emissivity  
particle scattering factor scat_factor pget_sublim_scat_factor  
refractive index refractive_index pget_sublim_refractive_index  
sound speed sound_speed pget_sublim_sound_speed  

when specific volume is given, use vget_sublim_propertyname to get properties. The three functions are used to get saturation temperature, pressure and latent heat.

val_T vget_sublim_T(val_T v)
val_T vget_sublim_P(val_T v)
val_T vget_sublim_latent_heat(val_T v)

the other functions have two input parameters, ie

val_T vget_sublim_sh(val_T v, bool x)

x detemines property of which phase is returned. if x is true, returns property of gas phase, otherwise, solid phase.

  description property name function name default value
thermodynamic properties specific volume sv vget_sublim_sv  
specific internal energy su vget_sublim_su  
specific enthalpy sh vget_sublim_sh  
specific entropy ss vget_sublim_ss  

2.7 get properties by two input parameters

2.7.1 get properties by temperature and pressure

all functions are named as 'tpget_propertyname'. The return value is val_T, and use temperature and pressure as its input parameters.

val_T tpget_rho(val_T T, val_T P);
  description property name function name default value
thermodynamic properties specific volume sv tpget_sv  
specific internal energy su tpget_su  
specific enthalpy sh tpget_sh  
specific entropy ss tpget_ss  
constant-pressure specific heat Cp tpget_Cp  
constant-volume specific heat Cv tpget_Cv  
compress factor Z tpget_Z  
thermophoretic diffusion coefficient thermophoretic_coef tpget_thermophoretic_coef  
particle swelling coefficien swell_coef tpget_swell_coef  
surface tension coefficient surface_tension_coef tpget_surface_tension_coef  
thermophysical properties desity rho tpget_rho  
laminar viscosity mu tpget_mu  
moving viscosity nu tpget_nu  
Prantle number Pr tpget_Pr  
thermal conductivity (isotropic) ktc tpget_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 tpget_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 tpget_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 tpget_ktc2  
binary mass diffusivity coefficient diff tpget_diff  
thermal diffusion coefficient thermal_diff tpget_thermal_diff  
thermal expansion coefficient therm_exp_coef tpget_therm_exp_coef  
physical properties particle emissivity emissivity tpget_emissivity  
particle scattering factor scat_factor tpget_scat_factor  
refractive index refractive_index tpget_refractive_index  
sound speed sound_speed tpget_sound_speed  
  phase state phase tpget_phase 0-solid, 1-liquid, 2-gas
2.7.2 get properties by temperature and specific volume

all functions are named as 'tvget_propertyname'. The return value is val_T, and use temperature and specific volume as its input parameters.

val_T tvget_rho(val_T T, val_T v);
  description property name function name default value
thermodynamic properties pressure P tvget_P  
specific internal energy su tvget_su  
specific enthalpy sh tvget_sh  
specific entropy ss tvget_ss  
constant-pressure specific heat Cp tvget_Cp  
constant-volume specific heat Cv tvget_Cv  
compress factor Z tvget_Z  
thermophoretic diffusion coefficient thermophoretic_coef tvget_thermophoretic_coef  
particle swelling coefficien swell_coef tvget_swell_coef  
surface tension coefficient surface_tension_coef tvget_surface_tension_coef  
thermophysical properties desity rho tvget_  
laminar viscosity mu tvget_mu  
moving viscosity nu tvget_nu  
Prantle number Pr tvget_Pr  
thermal conductivity (isotropic) ktc tvget_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 tvget_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 tvget_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 tvget_ktc2  
binary mass diffusivity coefficient diff tvget_diff  
thermal diffusion coefficient thermal_diff tvget_thermal_diff  
thermal expansion coefficient therm_exp_coef tvget_therm_exp_coef  
physical properties particle emissivity emissivity tvget_emissivity  
particle scattering factor scat_factor tvget_scat_factor  
refractive index refractive_index tvget_refractive_index  
sound speed sound_speed tvget_sound_speed  
  phase state phase tvget_phase 0-solid, 1-liquid, 2-gas
2.7.3 get properties by pressure and specific volume

all functions are named as 'pvget_propertyname'. The return value is val_T, and use pressure and specific volume as its input parameters.

val_T pvget_rho(val_T P, val_T v);
  description property name function name default value
thermodynamic properties temperature T pvget_T  
specific internal energy su pvget_su  
specific enthalpy sh pvget_sh  
specific entropy ss pvget_ss  
constant-pressure specific heat Cp pvget_Cp  
constant-volume specific heat Cv pvget_Cv  
compress factor Z pvget_Z  
thermophoretic diffusion coefficient thermophoretic_coef pvget_thermophoretic_coef  
particle swelling coefficien swell_coef pvget_swell_coef  
surface tension coefficient surface_tension_coef pvget_surface_tension_coef  
thermophysical properties desity rho pvget_rho  
laminar viscosity mu pvget_mu  
moving viscosity nu pvget_nu  
Prantle number Pr pvget_Pr  
thermal conductivity (isotropic) ktc pvget_ktc  
thermal conductivity (anisotropic/ortho direction 0) ktc0 pvget_ktc0  
thermal conductivity (orthotropic direction 1) ktc1 pvget_ktc1  
thermal conductivity (orthotropic direction 2) ktc2 pvget_ktc2  
binary mass diffusivity coefficient diff pvget_diff  
thermal diffusion coefficient thermal_diff pvget_thermal_diff  
thermal expansion coefficient therm_exp_coef pvget_therm_exp_coef  
physical properties particle emissivity emissivity pvget_emissivity  
particle scattering factor scat_factor pvget_scat_factor  
refractive index refractive_index pvget_refractive_index  
sound speed sound_speed pvget_sound_speed  
  phase state phase pvget_phase 0-solid, 1-liquid, 2-gas
2.7.4 get properties by temperature and specific entropy

all functions are named as 'tsget_propertyname'. The return value is val_T, and use temperature and specific entropy as its input parameters.

  description property name function name default value
parameters of system state pressure P tsget_P  
specific volume sv tsget_sv  
specific internal energy su tsget_su  
specific enthalpy sh tsget_sh  
2.7.5 get properties by pressure and specific enthalpy

all functions are named as 'phget_propertyname'. The return value is val_T, and use pressure and specific enthalpy as its input parameters.

  description property name function name default value
parameters of system state temperature T phget_T  
specific volume sv phget_sv  
specific internal energy su phget_su  
specific entropy ss phget_ss  
2.7.6 get properties by pressure and specific entropy

all functions are named as 'psget_propertyname'. The return value is val_T, and use pressure and specific entropy as its input parameters.

  description property name function name default value
parameters of system state temperature T psget_T  
specific volume sv psget_sv  
specific internal energy su psget_su  
specific enthalpy sh psget_sh  
2.7.7 get properties by specific volume and specific enthalpy

all functions are named as 'vhget_propertyname'. The return value is val_T, and use specific volume and specific enthalpy as its input parameters.

  description property name function name default value
parameters of system state temperature T vhget_T  
pressure P vhget_P  
specific internal energy su vhget_su  
specific entropy ss vhget_ss  
2.7.8 get properties by specific volume and specific entropy

all functions are named as 'vsget_propertyname'. The return value is val_T, and use specific volume and specific entropy as its input parameters.

  description property name function name default value
parameters of system state temperature T vsget_T  
pressure P vsget_P  
specific internal energy su vsget_su  
specific enthalpy sh vsget_sh  

3 Exceptions

class PropertyException, the base class for all exception classes of GOLP. It is derived from std exception class.

class PropertyNotImplenment, if a property query function is not implemented, it must throw a PropertyNotImplenment exception.

functions in class Property are most throw PropertyNotImplenment exception.
	virtual val_T get_rho() const { // density
		throw PropertyNotImplement(m_name.c_str(), "get_rho"); 
	}

TemperatureExceed, PressureExceed, SpecificVolumeExceed, SpecificVolumeExceed, SpecificEntropyExceed or SpecificEnthalpyExceed exception will be throw if the input parameters are out of range.

The hierarchy chart of these exception classes:

       std::exception
         |
         |- PropertyException
              |
              |- PropertyError
              |
              |- PropertyNotImplement
              |
              |- PropertyParameterExceed
                   |
                   |- TemperatureExceed
                   |
                   |- PressureExceed 
                   |
                   |- SpecificVolumeExceed
                   |
                   |- SpecificEntropyExceed
                   |
                   |- SpecificEnthalpyExceed


[intro][interfaces][exceptions][code][home]

allan xu, 2002-10-18