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 Types | Public Member Functions | Private Attributes | List of all members
FlowCalculationsEnergyUse Class Reference

#include <FlowCalculationsEnergyUse.h>

Public Types

enum class  Gas {
  AIR , AMMONIA_DISSOCIATED , ARGON , BUTANE ,
  ENDOTHERMIC_AMMONIA , EXOTHERMIC_CRACKED_LEAN , EXOTHERMIC_CRACKED_RICH , HELIUM ,
  HYDROGEN , NATURAL_GAS , NITROGEN , OXYGEN ,
  PROPANE , OTHER
}
 enum class for gas types More...
 
enum class  Section { SQUARE_EDGE , SHARP_EDGE , VENTURI }
 enum class for section type More...
 

Public Member Functions

 FlowCalculationsEnergyUse (Gas gasType, double specificGravity, double orificeDiameter, double insidePipeDiameter, Section sectionType, double dischargeCoefficient, double gasHeatingValue, double gasTemperature, double gasPressure, double orificePressureDrop, double operatingTime)
 
Gas getGasType () const
 
void setGasType (Gas gasType)
 
double getSpecificGravity () const
 
void setSpecificGravity (double specificGravity)
 
double getOrificeDiameter () const
 
void setOrificeDiameter (double orificeDiameter)
 
double getInsidePipeDiameter () const
 
void setInsidePipeDiameter (double insidePipeDiameter)
 
Section getSectionType () const
 
void setSectionType (Section sectionType)
 
double getDischargeCoefficient () const
 
void setDischargeCoefficient (double dischargeCoefficient)
 
double getGasHeatingValue () const
 
void setGasHeatingValue (double gasHeatingValue)
 
double getGasTemperature () const
 
void setGasTemperature (double gasTemperature)
 
double getGasPressure () const
 
void setGasPressure (double gasPressure)
 
double getOrificePressureDrop () const
 
void setOrificePressureDrop (double orificePressureDrop)
 
double getOperatingTime () const
 
void setOperatingTime (double operatingTime)
 
double getArea ()
 
double getAdjustedDischargeCoefficient ()
 
double getPressureDrop ()
 
double getAdjustedGasTemperature ()
 
double getAdjustedGasPressure ()
 
double getFlow ()
 
double getHeatInput ()
 
double getTotalFlow ()
 

Private Attributes

FlowCalculationsEnergyUse::Gas gasType_
 
double specificGravity_ = 0.0
 
double orificeDiameter_ = 0.0
 
double insidePipeDiameter_ = 0.0
 
FlowCalculationsEnergyUse::Section sectionType_
 
double dischargeCoefficient_ = 0.0
 
double gasHeatingValue_ = 0.0
 
double gasTemperature_ = 0.0
 
double gasPressure_ = 0.0
 
double orificePressureDrop_ = 0.0
 
double operatingTime_ = 0.0
 
double area_
 
double adjustedDischargeCoefficient_
 
double pressureDrop_
 
double adjustedGasTemperature_
 
double adjustedGasPressure_
 
double flow_
 
double heatInput_
 
double totalflow_
 

Detailed Description

Flow Calculations Energy Use calculator class Used to find the flow and the heat input of a fuel-fired furnace.

Definition at line 18 of file FlowCalculationsEnergyUse.h.

Member Enumeration Documentation

◆ Gas

enum class FlowCalculationsEnergyUse::Gas
strong

Definition at line 21 of file FlowCalculationsEnergyUse.h.

◆ Section

Definition at line 39 of file FlowCalculationsEnergyUse.h.

Constructor & Destructor Documentation

◆ FlowCalculationsEnergyUse()

FlowCalculationsEnergyUse::FlowCalculationsEnergyUse ( Gas  gasType,
double  specificGravity,
double  orificeDiameter,
double  insidePipeDiameter,
Section  sectionType,
double  dischargeCoefficient,
double  gasHeatingValue,
double  gasTemperature,
double  gasPressure,
double  orificePressureDrop,
double  operatingTime 
)
inline

Constructor for the flow calculations energy use

Parameters
gasTypeGas, type of gas
specificGravitydouble, specific gravity specified by the user- unitless
orificeDiameterdouble, diameter of orifice in inches
insidePipeDiameterdouble, diameter of inside pipe in inches
sectionTypeSection, type of section
dischargeCoefficientdouble, coefficient of discharge - unitless
gasHeatingValuedouble, heating value of gas in Btu/scf
gasTemperaturedouble, temperature of gas in °F
gasPressuredouble, pressure of gas in Psig
orificePressureDropdouble, orifice pressure drop in inch W.C.
operatingTimedouble, operating time in hrs

Definition at line 59 of file FlowCalculationsEnergyUse.h.

Member Function Documentation

◆ getAdjustedDischargeCoefficient()

double FlowCalculationsEnergyUse::getAdjustedDischargeCoefficient ( )

Gets the adjusted (if necessary) discharge coefficient

Returns
double, adjusted discharge coefficient - unitless

◆ getAdjustedGasPressure()

double FlowCalculationsEnergyUse::getAdjustedGasPressure ( )

Gets the adjusted pressure of gas used in calculating flow

Returns
double, adjusted pressure of gas in Psig

◆ getAdjustedGasTemperature()

double FlowCalculationsEnergyUse::getAdjustedGasTemperature ( )

Gets the adjusted temperature of gas used in calculating flow

Returns
double, adjusted temperature of gas in °F

◆ getArea()

double FlowCalculationsEnergyUse::getArea ( )

Gets the area

Returns
double, area in in in^2

◆ getDischargeCoefficient()

double FlowCalculationsEnergyUse::getDischargeCoefficient ( ) const
inline

Gets the coefficient of discharge

Returns
double, coefficient of discharge - unitless

Definition at line 205 of file FlowCalculationsEnergyUse.h.

◆ getFlow()

double FlowCalculationsEnergyUse::getFlow ( )

Gets the flow in scfh

Returns
double, flow in scfh

◆ getGasHeatingValue()

double FlowCalculationsEnergyUse::getGasHeatingValue ( ) const
inline

Gets the gas heating value

Returns
double, gas heating value in Btu/scf

Definition at line 220 of file FlowCalculationsEnergyUse.h.

◆ getGasPressure()

double FlowCalculationsEnergyUse::getGasPressure ( ) const
inline

Gets the pressure of gas

Returns
double, pressure of gas in Psig

Definition at line 250 of file FlowCalculationsEnergyUse.h.

◆ getGasTemperature()

double FlowCalculationsEnergyUse::getGasTemperature ( ) const
inline

Gets the temperature of gas in °F

Returns
double, gas temperature in °F

Definition at line 235 of file FlowCalculationsEnergyUse.h.

◆ getGasType()

Gas FlowCalculationsEnergyUse::getGasType ( ) const
inline

Gets the type of gas

Returns
Gas, type of gas

Definition at line 86 of file FlowCalculationsEnergyUse.h.

◆ getHeatInput()

double FlowCalculationsEnergyUse::getHeatInput ( )

Gets the heat input

Returns
double, heat input in Million Btu

◆ getInsidePipeDiameter()

double FlowCalculationsEnergyUse::getInsidePipeDiameter ( ) const
inline

Gets the diameter of inside of pipe

Returns
double, diameter of inside of pipe in inches

Definition at line 164 of file FlowCalculationsEnergyUse.h.

◆ getOperatingTime()

double FlowCalculationsEnergyUse::getOperatingTime ( ) const
inline

Gets the operating time

Returns
double, operating time in hrs

Definition at line 280 of file FlowCalculationsEnergyUse.h.

◆ getOrificeDiameter()

double FlowCalculationsEnergyUse::getOrificeDiameter ( ) const
inline

Gets the diameter of orifice

Returns
double, diameter of orifice in inches

Definition at line 149 of file FlowCalculationsEnergyUse.h.

◆ getOrificePressureDrop()

double FlowCalculationsEnergyUse::getOrificePressureDrop ( ) const
inline

Gets the pressure drop at orifice

Returns
double, pressure drop at orifice in inch W.C.

Definition at line 265 of file FlowCalculationsEnergyUse.h.

◆ getPressureDrop()

double FlowCalculationsEnergyUse::getPressureDrop ( )

Gets the pressure drop in inch W.C.

Returns
double, pressure drop in inch W.C.

◆ getSectionType()

Section FlowCalculationsEnergyUse::getSectionType ( ) const
inline

Gets the type of section

Returns
Section, type of section

Definition at line 179 of file FlowCalculationsEnergyUse.h.

◆ getSpecificGravity()

double FlowCalculationsEnergyUse::getSpecificGravity ( ) const
inline

Gets the specific gravity

Returns
double, specific gravity - unitless

Definition at line 134 of file FlowCalculationsEnergyUse.h.

◆ getTotalFlow()

double FlowCalculationsEnergyUse::getTotalFlow ( )

Gets the total flow in scf

Returns
double, total flow in scf

◆ setDischargeCoefficient()

void FlowCalculationsEnergyUse::setDischargeCoefficient ( double  dischargeCoefficient)
inline

Sets the coefficient of discharge

Parameters
dischargeCoefficientdouble coefficient of discharge - unitless

Definition at line 213 of file FlowCalculationsEnergyUse.h.

◆ setGasHeatingValue()

void FlowCalculationsEnergyUse::setGasHeatingValue ( double  gasHeatingValue)
inline

Sets the gas heating value

Parameters
gasHeatingValuedouble, gas heating value in Btu/scf

Definition at line 228 of file FlowCalculationsEnergyUse.h.

◆ setGasPressure()

void FlowCalculationsEnergyUse::setGasPressure ( double  gasPressure)
inline

Sets the pressure of gas

Parameters
gasPressuredouble, pressure of gas in Psig

Definition at line 258 of file FlowCalculationsEnergyUse.h.

◆ setGasTemperature()

void FlowCalculationsEnergyUse::setGasTemperature ( double  gasTemperature)
inline

Sets the temperature of gas

Parameters
gasTemperaturedouble, temperature of gas in °F

Definition at line 243 of file FlowCalculationsEnergyUse.h.

◆ setGasType()

void FlowCalculationsEnergyUse::setGasType ( Gas  gasType)
inline

Sets the type of gas

Parameters
gasTypeGas, type of gas

Definition at line 94 of file FlowCalculationsEnergyUse.h.

◆ setInsidePipeDiameter()

void FlowCalculationsEnergyUse::setInsidePipeDiameter ( double  insidePipeDiameter)
inline

Sets the diameter of inside of pipe

Parameters
insidePipeDiameterdouble, diameter of inside of pipe

Definition at line 172 of file FlowCalculationsEnergyUse.h.

◆ setOperatingTime()

void FlowCalculationsEnergyUse::setOperatingTime ( double  operatingTime)
inline

Sets the operating time

Parameters
operatingTimedouble, operating time in hrs

Definition at line 288 of file FlowCalculationsEnergyUse.h.

◆ setOrificeDiameter()

void FlowCalculationsEnergyUse::setOrificeDiameter ( double  orificeDiameter)
inline

Sets the diameter of orifice

Parameters
orificeDiameterdouble, diameter of orifice

Definition at line 157 of file FlowCalculationsEnergyUse.h.

◆ setOrificePressureDrop()

void FlowCalculationsEnergyUse::setOrificePressureDrop ( double  orificePressureDrop)
inline

Sets the pressure drop at orifice

Parameters
orificePressureDropdouble, pressure drop at orifice in inch W.C.

Definition at line 273 of file FlowCalculationsEnergyUse.h.

◆ setSectionType()

void FlowCalculationsEnergyUse::setSectionType ( Section  sectionType)
inline

Sets the type of section

Parameters
sectionTypeSection, type of section

Definition at line 187 of file FlowCalculationsEnergyUse.h.

◆ setSpecificGravity()

void FlowCalculationsEnergyUse::setSpecificGravity ( double  specificGravity)
inline

Sets the specific gravity using a value

Parameters
specificGravitydouble, specific gravity - unitless

Definition at line 142 of file FlowCalculationsEnergyUse.h.

Member Data Documentation

◆ adjustedDischargeCoefficient_

double FlowCalculationsEnergyUse::adjustedDischargeCoefficient_
private

Definition at line 363 of file FlowCalculationsEnergyUse.h.

◆ adjustedGasPressure_

double FlowCalculationsEnergyUse::adjustedGasPressure_
private

Definition at line 366 of file FlowCalculationsEnergyUse.h.

◆ adjustedGasTemperature_

double FlowCalculationsEnergyUse::adjustedGasTemperature_
private

Definition at line 365 of file FlowCalculationsEnergyUse.h.

◆ area_

double FlowCalculationsEnergyUse::area_
private

Definition at line 362 of file FlowCalculationsEnergyUse.h.

◆ dischargeCoefficient_

double FlowCalculationsEnergyUse::dischargeCoefficient_ = 0.0
private

Definition at line 354 of file FlowCalculationsEnergyUse.h.

◆ flow_

double FlowCalculationsEnergyUse::flow_
private

Definition at line 367 of file FlowCalculationsEnergyUse.h.

◆ gasHeatingValue_

double FlowCalculationsEnergyUse::gasHeatingValue_ = 0.0
private

Definition at line 355 of file FlowCalculationsEnergyUse.h.

◆ gasPressure_

double FlowCalculationsEnergyUse::gasPressure_ = 0.0
private

Definition at line 357 of file FlowCalculationsEnergyUse.h.

◆ gasTemperature_

double FlowCalculationsEnergyUse::gasTemperature_ = 0.0
private

Definition at line 356 of file FlowCalculationsEnergyUse.h.

◆ gasType_

FlowCalculationsEnergyUse::Gas FlowCalculationsEnergyUse::gasType_
private

Definition at line 349 of file FlowCalculationsEnergyUse.h.

◆ heatInput_

double FlowCalculationsEnergyUse::heatInput_
private

Definition at line 368 of file FlowCalculationsEnergyUse.h.

◆ insidePipeDiameter_

double FlowCalculationsEnergyUse::insidePipeDiameter_ = 0.0
private

Definition at line 352 of file FlowCalculationsEnergyUse.h.

◆ operatingTime_

double FlowCalculationsEnergyUse::operatingTime_ = 0.0
private

Definition at line 359 of file FlowCalculationsEnergyUse.h.

◆ orificeDiameter_

double FlowCalculationsEnergyUse::orificeDiameter_ = 0.0
private

Definition at line 351 of file FlowCalculationsEnergyUse.h.

◆ orificePressureDrop_

double FlowCalculationsEnergyUse::orificePressureDrop_ = 0.0
private

Definition at line 358 of file FlowCalculationsEnergyUse.h.

◆ pressureDrop_

double FlowCalculationsEnergyUse::pressureDrop_
private

Definition at line 364 of file FlowCalculationsEnergyUse.h.

◆ sectionType_

FlowCalculationsEnergyUse::Section FlowCalculationsEnergyUse::sectionType_
private

Definition at line 353 of file FlowCalculationsEnergyUse.h.

◆ specificGravity_

double FlowCalculationsEnergyUse::specificGravity_ = 0.0
private

Definition at line 350 of file FlowCalculationsEnergyUse.h.

◆ totalflow_

double FlowCalculationsEnergyUse::totalflow_
private

Definition at line 369 of file FlowCalculationsEnergyUse.h.


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