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
Public Member Functions | Public Attributes | Private Member Functions | List of all members
gas_composition::GasComposition Class Reference

Represents a fuel gas mixture and its properties for process heat calculations. More...

#include <gas_composition.h>

Public Member Functions

 GasComposition (const std::string substance, double ch4_percent, double c2h6_percent, double n2_percent, double h2_percent, double c3h8_percent, double c4h10_cnh2n_percent, double h2o_percent, double co_percent, double co2_percent, double so2_percent, double o2_percent)
 
double excessAirFromO2 (double flue_gas_o2_percentage)
 Calculates excess air percentage from flue gas oxygen percentage.
 
double o2PercentageFromExcessAir (double excess_air)
 Calculates flue gas oxygen percentage from excess air percentage.
 
double estimateExcessAirFromO2 (double flue_gas_o2_percentage)
 Estimates excess air percentage from flue gas oxygen percentage.
 
double calculateEnthalpyAtSaturation (double partial_pressure_water_vapor)
 Calculates enthalpy at saturation for a given partial pressure of water vapor.
 
double calculateSaturationTemperature (double partial_pressure_water_vapor)
 Calculates saturation temperature for a given partial pressure of water vapor.
 
std::array< GasProperties *, 11 > getConstituents ()
 
double adjustedFlueGasO2ForCalcError (double excess_air, double flue_gas_o2)
 Iteratively adjusts calculated flue gas O2 to minimize error with target excess air.
 

Public Attributes

std::string substance
 
GasProperties ch4
 
GasProperties c2h6
 
GasProperties n2
 
GasProperties h2
 
GasProperties c3h8
 
GasProperties c4h10_cnh2n
 
GasProperties h2o
 
GasProperties co
 
GasProperties co2
 
GasProperties so2
 
GasProperties o2
 
double total_composition_weight
 
double heating_value
 
double heating_value_volume
 
double specific_gravity
 
double stoichometric_air
 

Private Member Functions

void setCH4 (double composition_percent, double composition_by_volume)
 
void setC2H6 (double composition_percent, double composition_by_volume)
 
void setN2 (double composition_percent, double composition_by_volume)
 
void setH2 (double composition_percent, double composition_by_volume)
 
void setC3H8 (double composition_percent, double composition_by_volume)
 
void setC4H10CnH2n (double composition_percent, double composition_by_volume)
 
void setH2O (double composition_percent, double composition_by_volume)
 
void setCO (double composition_percent, double composition_by_volume)
 
void setCO2 (double composition_percent, double composition_by_volume)
 
void setSO2 (double composition_percent, double composition_by_volume)
 
void setO2 (double composition_percent, double composition_by_volume)
 
void setTotalCompositionWeight ()
 
void setHeatingValue ()
 
void setHeatingValueVolume ()
 
void setSpecificGravity ()
 
void setStoichometricAir ()
 
GasFlueGasComponents getMassFlueGasComponents (double excess_air)
 

Detailed Description

Stores the composition and calculated properties for a fuel gas mixture, including constituent gases and derived values.

Parameters
[in]substanceName of the fuel gas mixture
[in]ch4_percentMethane (CH4) percent by volume \([\unit{\percent}]\)
[in]c2h6_percentEthane (C2H6) percent by volume \([\unit{\percent}]\)
[in]n2_percentNitrogen (N2) percent by volume \([\unit{\percent}]\)
[in]h2_percentHydrogen (H2) percent by volume \([\unit{\percent}]\)
[in]c3h8_percentPropane (C3H8) percent by volume \([\unit{\percent}]\)
[in]c4h10_cnh2n_percentButane/Paraffins (C4H10/CnH2n) percent by volume \([\unit{\percent}]\)
[in]h2o_percentWater vapor (H2O) percent by volume \([\unit{\percent}]\)
[in]co_percentCarbon monoxide (CO) percent by volume \([\unit{\percent}]\)
[in]co2_percentCarbon dioxide (CO2) percent by volume \([\unit{\percent}]\)
[in]so2_percentSulphur dioxide (SO2) percent by volume \([\unit{\percent}]\)
[in]o2_percentOxygen (O2) percent by volume \([\unit{\percent}]\)

Definition at line 69 of file gas_composition.h.

Constructor & Destructor Documentation

◆ GasComposition()

gas_composition::GasComposition::GasComposition ( const std::string  substance,
double  ch4_percent,
double  c2h6_percent,
double  n2_percent,
double  h2_percent,
double  c3h8_percent,
double  c4h10_cnh2n_percent,
double  h2o_percent,
double  co_percent,
double  co2_percent,
double  so2_percent,
double  o2_percent 
)
inline

Definition at line 88 of file gas_composition.h.

Member Function Documentation

◆ getConstituents()

std::array< GasProperties *, 11 > gas_composition::GasComposition::getConstituents ( )
inline

Definition at line 163 of file gas_composition.h.

◆ setC2H6()

void gas_composition::GasComposition::setC2H6 ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 184 of file gas_composition.h.

◆ setC3H8()

void gas_composition::GasComposition::setC3H8 ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 201 of file gas_composition.h.

◆ setC4H10CnH2n()

void gas_composition::GasComposition::setC4H10CnH2n ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 207 of file gas_composition.h.

◆ setCH4()

void gas_composition::GasComposition::setCH4 ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 178 of file gas_composition.h.

◆ setCO()

void gas_composition::GasComposition::setCO ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 219 of file gas_composition.h.

◆ setCO2()

void gas_composition::GasComposition::setCO2 ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 225 of file gas_composition.h.

◆ setH2()

void gas_composition::GasComposition::setH2 ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 195 of file gas_composition.h.

◆ setH2O()

void gas_composition::GasComposition::setH2O ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 214 of file gas_composition.h.

◆ setN2()

void gas_composition::GasComposition::setN2 ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 190 of file gas_composition.h.

◆ setO2()

void gas_composition::GasComposition::setO2 ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 235 of file gas_composition.h.

◆ setSO2()

void gas_composition::GasComposition::setSO2 ( double  composition_percent,
double  composition_by_volume 
)
inlineprivate

Definition at line 230 of file gas_composition.h.

Member Data Documentation

◆ c2h6

GasProperties gas_composition::GasComposition::c2h6

Definition at line 73 of file gas_composition.h.

◆ c3h8

GasProperties gas_composition::GasComposition::c3h8

Definition at line 76 of file gas_composition.h.

◆ c4h10_cnh2n

GasProperties gas_composition::GasComposition::c4h10_cnh2n

Definition at line 77 of file gas_composition.h.

◆ ch4

GasProperties gas_composition::GasComposition::ch4

Definition at line 72 of file gas_composition.h.

◆ co

GasProperties gas_composition::GasComposition::co

Definition at line 79 of file gas_composition.h.

◆ co2

GasProperties gas_composition::GasComposition::co2

Definition at line 80 of file gas_composition.h.

◆ h2

GasProperties gas_composition::GasComposition::h2

Definition at line 75 of file gas_composition.h.

◆ h2o

GasProperties gas_composition::GasComposition::h2o

Definition at line 78 of file gas_composition.h.

◆ heating_value

double gas_composition::GasComposition::heating_value

Definition at line 84 of file gas_composition.h.

◆ heating_value_volume

double gas_composition::GasComposition::heating_value_volume

Definition at line 85 of file gas_composition.h.

◆ n2

GasProperties gas_composition::GasComposition::n2

Definition at line 74 of file gas_composition.h.

◆ o2

GasProperties gas_composition::GasComposition::o2

Definition at line 82 of file gas_composition.h.

◆ so2

GasProperties gas_composition::GasComposition::so2

Definition at line 81 of file gas_composition.h.

◆ specific_gravity

double gas_composition::GasComposition::specific_gravity

Definition at line 86 of file gas_composition.h.

◆ stoichometric_air

double gas_composition::GasComposition::stoichometric_air

Definition at line 87 of file gas_composition.h.

◆ substance

std::string gas_composition::GasComposition::substance

Definition at line 71 of file gas_composition.h.

◆ total_composition_weight

double gas_composition::GasComposition::total_composition_weight

Definition at line 83 of file gas_composition.h.


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