MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GasCompositions Class Reference

#include <gas_flue_gas_material.h>

Classes

struct  ProcessHeatPropertiesResults
 

Public Member Functions

 GasCompositions (std::string substance, const double CH4, const double C2H6, const double N2, const double H2, const double C3H8, const double C4H10_CnH2n, const double H2O, const double CO, const double CO2, const double SO2, const double O2)
 
double getGasByVol (const std::string &gasName) const
 
double getHeatingValue () const
 
double getHeatingValueVolume () const
 
double getSpecificGravity () const
 
double getStoichometricAir () const
 
double getSaturationTemperature (const double ppH2O) const
 
double getEnthalpyAtSaturation (const double ppH2O) const
 
ProcessHeatPropertiesResults getProcessHeatProperties (const double flueGasTempF, const double flueGasO2, const double combAirTemperatureF, const double fuelTempF=60, const double ambientAirTempF=60, const double combAirMoisturePerc=0, const double excessAir=0)
 
double calculateExcessAir (double flueGasO2)
 
double calculateO2 (double excessAir)
 
std::string getSubstance () const
 
int getID () const
 
void setID (const int id)
 

Private Member Functions

double calculateSpecificGravity ()
 
double calculateStoichometricAir ()
 
void calculateCompByWeight ()
 
double calculateSensibleHeat (double combustionAirTemp)
 
double calculateHeatCombustionAir (double combustionAirTemp, double excessAir)
 
void calculateMassFlueGasComponents (double excessAir)
 
double calculateHeatingValueFuel ()
 
double calculateHeatingValueFuelVolume ()
 
void calculateEnthalpy ()
 
double calculateTotalHeatContentFlueGas (double flueGasTemperature)
 
 GasCompositions (std::string substance, const double CH4, const double C2H6, const double N2, const double H2, const double C3H8, const double C4H10_CnH2n, const double H2O, const double CO, const double CO2, const double SO2, const double O2, const double heatingValue, const double heatingValueVolume, const double specificGravity, const double stoichometricAir=0)
 
double getExcessAir (const double flueGasO2) const
 
void flueGasO2AdjustForCalcError (const double excessAir, double &flueO2) const
 

Private Attributes

std::unordered_map< std::string, std::shared_ptr< GasProperties > > gasses
 
int id = 0
 
std::string substance
 
double totalPercent
 
double hH2Osat = 0
 
double tH2Osat = 0
 
double mH2O = 0
 
double mCO2 = 0
 
double mO2 = 0
 
double mN2 = 0
 
double mSO2 = 0
 
std::shared_ptr< GasPropertiesCH4
 
std::shared_ptr< GasPropertiesC2H6
 
std::shared_ptr< GasPropertiesN2
 
std::shared_ptr< GasPropertiesH2
 
std::shared_ptr< GasPropertiesC3H8
 
std::shared_ptr< GasPropertiesC4H10_CnH2n
 
std::shared_ptr< GasPropertiesH2O
 
std::shared_ptr< GasPropertiesCO
 
std::shared_ptr< GasPropertiesCO2
 
std::shared_ptr< GasPropertiesSO2
 
std::shared_ptr< GasPropertiesO2
 
double heatingValue = 0
 
double specificGravity = 0
 
double heatingValueVolume = 0
 
double stoichometricAir = 0
 

Friends

class GasFlueGasMaterial
 
class DefaultData
 

Detailed Description

Gas Compositions class Contains the gas compositions of a gas mixture.

Definition at line 66 of file gas_flue_gas_material.h.

Constructor & Destructor Documentation

◆ GasCompositions() [1/2]

GasCompositions::GasCompositions ( std::string  substance,
const double  CH4,
const double  C2H6,
const double  N2,
const double  H2,
const double  C3H8,
const double  C4H10_CnH2n,
const double  H2O,
const double  CO,
const double  CO2,
const double  SO2,
const double  O2 
)
inline

Constructor for GasCompositions with which flue gas losses will be calculated. All molecule parameters are the percentage of that molecule present in the fuel

Parameters
substancename - string
CH4% - double
C2H6% - double
N2% - double
H2% - double
C3H8% - double
C4H10_CnH2n% - double
H2O% - double
CO% - double
CO2% - double
SO2% - double
O2% - double

Definition at line 97 of file gas_flue_gas_material.h.

◆ GasCompositions() [2/2]

GasCompositions::GasCompositions ( std::string  substance,
const double  CH4,
const double  C2H6,
const double  N2,
const double  H2,
const double  C3H8,
const double  C4H10_CnH2n,
const double  H2O,
const double  CO,
const double  CO2,
const double  SO2,
const double  O2,
const double  heatingValue,
const double  heatingValueVolume,
const double  specificGravity,
const double  stoichometricAir = 0 
)
inlineprivate

Definition at line 245 of file gas_flue_gas_material.h.

Member Function Documentation

◆ getEnthalpyAtSaturation()

double GasCompositions::getEnthalpyAtSaturation ( const double  ppH2O) const
Parameters
ppH2Odouble
Returns
double

◆ getExcessAir()

double GasCompositions::getExcessAir ( const double  flueGasO2) const
private
Parameters
flueGasO2double
Returns
double

◆ getGasByVol()

double GasCompositions::getGasByVol ( const std::string &  gasName) const
inline

Gets the gas by its name

Parameters
gasNameconst string, name of gas
Returns
double, composition by volume as %

Definition at line 154 of file gas_flue_gas_material.h.

◆ getHeatingValue()

double GasCompositions::getHeatingValue ( ) const
inline

Definition at line 162 of file gas_flue_gas_material.h.

◆ getHeatingValueVolume()

double GasCompositions::getHeatingValueVolume ( ) const
inline

Definition at line 163 of file gas_flue_gas_material.h.

◆ getID()

int GasCompositions::getID ( ) const
inline

Gets the ID of gas

Returns
int, ID of gas

Definition at line 221 of file gas_flue_gas_material.h.

◆ getProcessHeatProperties()

ProcessHeatPropertiesResults GasCompositions::getProcessHeatProperties ( const double  flueGasTempF,
const double  flueGasO2,
const double  combAirTemperatureF,
const double  fuelTempF = 60,
const double  ambientAirTempF = 60,
const double  combAirMoisturePerc = 0,
const double  excessAir = 0 
)
Parameters
flueGasTempFdouble, units F
flueGasO2double, percentage / fraction
combAirTemperatureFdouble, units F
fuelTempFdouble, units F, default value 60
ambientAirTempFdouble, units F, default value 60
combAirMoisturePercdouble, percentage / fraction, default value 0
excessAirdouble, percentage / fraction
Returns
Parameters
stoichAirdouble
excessAirdouble, percentage / fraction
availableHeatdouble, percentage / fraction
specificHeatdouble, units Btu/(# F)
densitydouble, units # / cu.ft
heatValueFueldouble, units Btu / cu.ft
flueGasO2double, percentage / fraction

◆ getSaturationTemperature()

double GasCompositions::getSaturationTemperature ( const double  ppH2O) const
Parameters
ppH2Odouble
Returns
double

◆ getSpecificGravity()

double GasCompositions::getSpecificGravity ( ) const
inline

Definition at line 164 of file gas_flue_gas_material.h.

◆ getStoichometricAir()

double GasCompositions::getStoichometricAir ( ) const
inline

Definition at line 165 of file gas_flue_gas_material.h.

◆ getSubstance()

std::string GasCompositions::getSubstance ( ) const

Gets the name of substance

Returns
string, name of substance

◆ setID()

void GasCompositions::setID ( const int  id)
inline

Sets the ID of gas

Parameters
idconst int, ID number for gas

Definition at line 227 of file gas_flue_gas_material.h.

Friends And Related Symbol Documentation

◆ DefaultData

friend class DefaultData
friend

Definition at line 231 of file gas_flue_gas_material.h.

◆ GasFlueGasMaterial

friend class GasFlueGasMaterial
friend

Definition at line 230 of file gas_flue_gas_material.h.

Member Data Documentation

◆ C2H6

std::shared_ptr<GasProperties> GasCompositions::C2H6
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ C3H8

std::shared_ptr<GasProperties> GasCompositions::C3H8
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ C4H10_CnH2n

std::shared_ptr<GasProperties> GasCompositions::C4H10_CnH2n
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ CH4

std::shared_ptr<GasProperties> GasCompositions::CH4
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ CO

std::shared_ptr<GasProperties> GasCompositions::CO
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ CO2

std::shared_ptr<GasProperties> GasCompositions::CO2
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ gasses

std::unordered_map<std::string, std::shared_ptr<GasProperties> > GasCompositions::gasses
private

Definition at line 295 of file gas_flue_gas_material.h.

◆ H2

std::shared_ptr<GasProperties> GasCompositions::H2
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ H2O

std::shared_ptr<GasProperties> GasCompositions::H2O
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ heatingValue

double GasCompositions::heatingValue = 0
private

Definition at line 302 of file gas_flue_gas_material.h.

◆ heatingValueVolume

double GasCompositions::heatingValueVolume = 0
private

Definition at line 302 of file gas_flue_gas_material.h.

◆ hH2Osat

double GasCompositions::hH2Osat = 0
private

Definition at line 299 of file gas_flue_gas_material.h.

◆ id

int GasCompositions::id = 0
private

Definition at line 296 of file gas_flue_gas_material.h.

◆ mCO2

double GasCompositions::mCO2 = 0
private

Definition at line 300 of file gas_flue_gas_material.h.

◆ mH2O

double GasCompositions::mH2O = 0
private

Definition at line 300 of file gas_flue_gas_material.h.

◆ mN2

double GasCompositions::mN2 = 0
private

Definition at line 300 of file gas_flue_gas_material.h.

◆ mO2

double GasCompositions::mO2 = 0
private

Definition at line 300 of file gas_flue_gas_material.h.

◆ mSO2

double GasCompositions::mSO2 = 0
private

Definition at line 300 of file gas_flue_gas_material.h.

◆ N2

std::shared_ptr<GasProperties> GasCompositions::N2
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ O2

std::shared_ptr<GasProperties> GasCompositions::O2
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ SO2

std::shared_ptr<GasProperties> GasCompositions::SO2
private

Definition at line 301 of file gas_flue_gas_material.h.

◆ specificGravity

double GasCompositions::specificGravity = 0
private

Definition at line 302 of file gas_flue_gas_material.h.

◆ stoichometricAir

double GasCompositions::stoichometricAir = 0
private

Definition at line 302 of file gas_flue_gas_material.h.

◆ substance

std::string GasCompositions::substance
private

Definition at line 297 of file gas_flue_gas_material.h.

◆ tH2Osat

double GasCompositions::tH2Osat = 0
private

Definition at line 299 of file gas_flue_gas_material.h.

◆ totalPercent

double GasCompositions::totalPercent
private

Definition at line 298 of file gas_flue_gas_material.h.


The documentation for this class was generated from the following file: