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

Classes

class  CostInfoOutput
 

Public Types

enum class  Option { PercentAvgkWhElectricCostAvoided , StandbyRate }
 

Public Member Functions

 CHP (double annualOperatingHours, double annualElectricityConsumption, double annualThermalDemand, double boilerThermalFuelCosts, double avgElectricityCosts, Option calculationOption, double boilerThermalFuelCostsCHPcase, double CHPfuelCosts, double percentAvgkWhElectricCostAvoidedOrStandbyRate, double displacedThermalEfficiency, double chpAvailability, double thermalUtilization)
 
CostInfoOutput getCostInfo () const
 
double getAnnualOperatingHours () const
 
double getAnnualElectricityConsumption () const
 
double getAnnualThermalDemand () const
 
double getBoilerThermalFuelCosts () const
 
double getChpFuelCosts () const
 
double getAvgElectricityCosts () const
 
Option getCalculationOption () const
 
double getBoilerThermalFuelCostsCHPcase () const
 
double getPercentAvgkWhElectricCostAvoided () const
 
double getStandbyRate () const
 
double getDisplacedThermalEfficiency () const
 
double getChpElectricEfficiency () const
 
double getChpThermalOutput () const
 
double getChpAvailability () const
 
double getThermalUtilization () const
 
double getAvgPowerDemand () const
 
double getAvgThermalDemand () const
 
double getNetCHPpower () const
 
void setAnnualOperatingHours (double annualOperatingHours)
 
void setAnnualElectricityConsumption (double annualElectricityConsumption)
 
void setAnnualThermalDemand (double annualThermalDemand)
 
void setBoilerThermalFuelCosts (double boilerThermalFuelCosts)
 
void setChpFuelCosts (double chpFuelCosts)
 
void setAvgElectricityCosts (double avgElectricityCosts)
 
void setCalculationOption (Option calculationOption, double percentAvgkWhElectricCostAvoidedOrStandbyRate)
 
void setBoilerThermalFuelCostsCHPcase (double boilerThermalFuelCostsCHPcase)
 
void setPercentAvgkWhElectricCostAvoided (double percentAvgkWhElectricCostAvoided)
 
void setStandbyRate (double standbyRate)
 
void setDisplacedThermalEfficiency (double displacedThermalEfficiency)
 
void setChpElectricEfficiency (double chpElectricEfficiency)
 
void setChpThermalOutput (double chpThermalOutput)
 
void setChpAvailability (double chpAvailability)
 
void setThermalUtilization (double thermalUtilization)
 
void setAvgPowerDemand (double avgPowerDemand)
 
void setAvgThermalDemand (double avgThermalDemand)
 
void setNetCHPpower (double netCHPpower)
 

Private Member Functions

void calculate ()
 
std::map< double, std::size_t >::const_iterator findNearest (double val, std::size_t index) const
 

Private Attributes

double annualOperatingHours
 
double annualElectricityConsumption
 
double annualThermalDemand
 
double boilerThermalFuelCosts
 
double chpFuelCosts
 
double avgElectricityCosts
 
Option calculationOption
 
double boilerThermalFuelCostsCHPcase
 
double percentAvgkWhElectricCostAvoided = 0
 
double standbyRate = 0
 
double displacedThermalEfficiency
 
double chpElectricEfficiency
 
double chpThermalOutput
 
double chpAvailability
 
double thermalUtilization
 
double avgPowerDemand
 
double avgThermalDemand
 
double netCHPpower
 
CostInfoOutput costInfo
 
const std::array< std::array< double, 8 >, 3 > chpSystemByIndex
 
const std::array< std::map< double, std::size_t >, 6 > chpSystemByKey
 

Detailed Description

Definition at line 16 of file CHP.h.

Member Enumeration Documentation

◆ Option

enum class CHP::Option
strong

Contructor for the CHP class

Parameters
PercentAvgkWhElectricCostAvoided,percentcost saved from CHP electricity, percent
StandbyRate,costof outage, $/kW
annualOperatingHours,double,Timefor which the CHP operates in a year - hours
annualElectricityConsumptiondouble, kWh
annualThermalDemanddouble, MMBtu
boilerThermalFuelCostsdouble, $/MMBtu
avgElectricityCostsdouble, $/kWh
optioncalculationOption, dropdown enum
boilerThermalFuelCostsCHPcasedouble, $/MMBtu
CHPfuelCostsdouble, $/MMBtu
percentAvgkWhElectricCostAvoidedOrStandbyRatedouble, percent
displacedThermalEfficiencydouble, percent
chpAvailabilitydouble, percent
thermalUtilizationdouble, percent

Definition at line 63 of file CHP.h.

Member Function Documentation

◆ getAnnualElectricityConsumption()

double CHP::getAnnualElectricityConsumption ( ) const
inline

Gets the Annual Electricity Consumption

Returns
double const, annual electricity consumption in kWh

Definition at line 82 of file CHP.h.

◆ getAnnualOperatingHours()

double CHP::getAnnualOperatingHours ( ) const
inline

Gets the Annual Operating Hours

Returns
double const, annual operating hours in hrs/yr

Definition at line 76 of file CHP.h.

◆ getAnnualThermalDemand()

double CHP::getAnnualThermalDemand ( ) const
inline

Gets the Annual Thermal Demand

Returns
double const, annual thermal demand in MMBtu

Definition at line 88 of file CHP.h.

◆ getAvgElectricityCosts()

double CHP::getAvgElectricityCosts ( ) const
inline

Gets the Avg Electricity Costs

Returns
double const, Average Electricity costs $/kWh

Definition at line 106 of file CHP.h.

◆ getAvgPowerDemand()

double CHP::getAvgPowerDemand ( ) const
inline

Gets the Avg Power Demand

Returns
double const, Average Power Demand in kWh

Definition at line 166 of file CHP.h.

◆ getAvgThermalDemand()

double CHP::getAvgThermalDemand ( ) const
inline

Gets the Avg Thermal Demand

Returns
double const, Average Thermal Demand in MMBtu

Definition at line 172 of file CHP.h.

◆ getBoilerThermalFuelCosts()

double CHP::getBoilerThermalFuelCosts ( ) const
inline

Gets the Boiler Thermal Fuel Costs

Returns
double const, boiler thermal fuel costs in $/MMBtu

Definition at line 94 of file CHP.h.

◆ getBoilerThermalFuelCostsCHPcase()

double CHP::getBoilerThermalFuelCostsCHPcase ( ) const
inline

Gets the Boiler Thermal Fuel Costs CHP case

Returns
double const, boiler thermal fuel costs CHP case in $/MMBtu

Definition at line 118 of file CHP.h.

◆ getCalculationOption()

Option CHP::getCalculationOption ( ) const
inline

Gets the Calculation Option

Returns
Option const, Calculation Option, dropdown enum

Definition at line 112 of file CHP.h.

◆ getChpAvailability()

double CHP::getChpAvailability ( ) const
inline

Gets the Chp Availability

Returns
double const, CHP availability as a percent

Definition at line 154 of file CHP.h.

◆ getChpElectricEfficiency()

double CHP::getChpElectricEfficiency ( ) const
inline

Gets the Chp Electric Efficiency

Returns
double const, CHP electric efficiency as a percent

Definition at line 142 of file CHP.h.

◆ getChpFuelCosts()

double CHP::getChpFuelCosts ( ) const
inline

Gets the Chp Fuel Costs

Returns
double const, CHP fuel costs $/MMBtu

Definition at line 100 of file CHP.h.

◆ getChpThermalOutput()

double CHP::getChpThermalOutput ( ) const
inline

Get the Chp Thermal Output

Returns
double const, CHP thermal output in MMBtu

Definition at line 148 of file CHP.h.

◆ getCostInfo()

CostInfoOutput CHP::getCostInfo ( ) const
inline

Definition at line 70 of file CHP.h.

◆ getDisplacedThermalEfficiency()

double CHP::getDisplacedThermalEfficiency ( ) const
inline

Gets the Displaced Thermal Efficiency

Returns
double const, Displaced Thermal Efficiency as a percent

Definition at line 136 of file CHP.h.

◆ getNetCHPpower()

double CHP::getNetCHPpower ( ) const
inline

Gets the Net CHP power

Returns
double const, Net CHP power in MMBtu

Definition at line 178 of file CHP.h.

◆ getPercentAvgkWhElectricCostAvoided()

double CHP::getPercentAvgkWhElectricCostAvoided ( ) const
inline

Gets the Percent Avg kWh Electric Cost Avoided

Returns
double const, percent cost saved from CHP electricity, percent

Definition at line 124 of file CHP.h.

◆ getStandbyRate()

double CHP::getStandbyRate ( ) const
inline

Gets the Standby Rate

Returns
double const, cost of outage, $/kW

Definition at line 130 of file CHP.h.

◆ getThermalUtilization()

double CHP::getThermalUtilization ( ) const
inline

Gets the Thermal Utilization

Returns
double const, Thermal Utilization as a percent

Definition at line 160 of file CHP.h.

Member Data Documentation

◆ annualElectricityConsumption

double CHP::annualElectricityConsumption
private

Definition at line 204 of file CHP.h.

◆ annualOperatingHours

double CHP::annualOperatingHours
private

Definition at line 204 of file CHP.h.

◆ annualThermalDemand

double CHP::annualThermalDemand
private

Definition at line 204 of file CHP.h.

◆ avgElectricityCosts

double CHP::avgElectricityCosts
private

Definition at line 205 of file CHP.h.

◆ avgPowerDemand

double CHP::avgPowerDemand
private

Definition at line 210 of file CHP.h.

◆ avgThermalDemand

double CHP::avgThermalDemand
private

Definition at line 210 of file CHP.h.

◆ boilerThermalFuelCosts

double CHP::boilerThermalFuelCosts
private

Definition at line 205 of file CHP.h.

◆ boilerThermalFuelCostsCHPcase

double CHP::boilerThermalFuelCostsCHPcase
private

Definition at line 207 of file CHP.h.

◆ calculationOption

Option CHP::calculationOption
private

Definition at line 206 of file CHP.h.

◆ chpAvailability

double CHP::chpAvailability
private

Definition at line 208 of file CHP.h.

◆ chpElectricEfficiency

double CHP::chpElectricEfficiency
private

Definition at line 208 of file CHP.h.

◆ chpFuelCosts

double CHP::chpFuelCosts
private

Definition at line 205 of file CHP.h.

◆ chpSystemByIndex

const std::array<std::array<double, 8>, 3> CHP::chpSystemByIndex
private
Initial value:
= {{
{{50, 600, 1000, 3300, 5000, 10000, 20000, 45000}},
{{0.024, 0.021, 0.019, 0.0126, 0.0123, 0.012, 0.0093, 0.0092}},
{{2900, 2737, 2335, 1917, 2080, 1976, 1518, 1248}}
}}

Definition at line 214 of file CHP.h.

◆ chpSystemByKey

const std::array<std::map<double, std::size_t>, 6> CHP::chpSystemByKey
private
Initial value:
= {{
{{50, 0}, {600, 1}, {1000, 2}, {3300, 3}, {5000, 4}, {10000, 5}, {20000, 6}, {45000, 7}},
{{27.0, 0}, {34.5, 1}, {36.8, 2}, {40.4, 3}, {28.9, 4}, {27.3, 5}, {33.2, 6}, {36.0, 7}},
{{6700, 0}, {4392, 1}, {3854, 2}, {3233, 3}, {4893, 4}, {5262, 5}, {3821, 6}, {3141, 7}},
{{0.34, 0}, {2.64, 1}, {3.85, 2}, {10.67, 3}, {24.47, 4}, {52.62, 5}, {76.42, 6}, {141.33, 7}},
{{0.024, 0},
{0.021, 1},
{0.019, 2},
{0.0126, 3},
{0.0123, 4},
{0.012, 5},
{0.0093, 6},
{0.0092, 7}},
{{2900, 0}, {2737, 1}, {2335, 2}, {1917, 3}, {2080, 4}, {1976, 5}, {1518, 6}, {1248, 7}}
}}

Definition at line 223 of file CHP.h.

◆ chpThermalOutput

double CHP::chpThermalOutput
private

Definition at line 208 of file CHP.h.

◆ costInfo

CostInfoOutput CHP::costInfo
private

Definition at line 212 of file CHP.h.

◆ displacedThermalEfficiency

double CHP::displacedThermalEfficiency
private

Definition at line 208 of file CHP.h.

◆ netCHPpower

double CHP::netCHPpower
private

Definition at line 210 of file CHP.h.

◆ percentAvgkWhElectricCostAvoided

double CHP::percentAvgkWhElectricCostAvoided = 0
private

Definition at line 207 of file CHP.h.

◆ standbyRate

double CHP::standbyRate = 0
private

Definition at line 207 of file CHP.h.

◆ thermalUtilization

double CHP::thermalUtilization
private

Definition at line 208 of file CHP.h.


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