Line data Source code
1 : // EnergyPlus, Copyright (c) 1996-2023, The Board of Trustees of the University of Illinois,
2 : // The Regents of the University of California, through Lawrence Berkeley National Laboratory
3 : // (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
4 : // National Laboratory, managed by UT-Battelle, Alliance for Sustainable Energy, LLC, and other
5 : // contributors. All rights reserved.
6 : //
7 : // NOTICE: This Software was developed under funding from the U.S. Department of Energy and the
8 : // U.S. Government consequently retains certain rights. As such, the U.S. Government has been
9 : // granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable,
10 : // worldwide license in the Software to reproduce, distribute copies to the public, prepare
11 : // derivative works, and perform publicly and display publicly, and to permit others to do so.
12 : //
13 : // Redistribution and use in source and binary forms, with or without modification, are permitted
14 : // provided that the following conditions are met:
15 : //
16 : // (1) Redistributions of source code must retain the above copyright notice, this list of
17 : // conditions and the following disclaimer.
18 : //
19 : // (2) Redistributions in binary form must reproduce the above copyright notice, this list of
20 : // conditions and the following disclaimer in the documentation and/or other materials
21 : // provided with the distribution.
22 : //
23 : // (3) Neither the name of the University of California, Lawrence Berkeley National Laboratory,
24 : // the University of Illinois, U.S. Dept. of Energy nor the names of its contributors may be
25 : // used to endorse or promote products derived from this software without specific prior
26 : // written permission.
27 : //
28 : // (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in stand-alone form
29 : // without changes from the version obtained under this License, or (ii) Licensee makes a
30 : // reference solely to the software portion of its product, Licensee must refer to the
31 : // software as "EnergyPlus version X" software, where "X" is the version number Licensee
32 : // obtained under this License and may not use a different name for the software. Except as
33 : // specifically required in this Section (4), Licensee shall not use in a company name, a
34 : // product name, in advertising, publicity, or other promotional activities any name, trade
35 : // name, trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or confusingly
36 : // similar designation, without the U.S. Department of Energy's prior written consent.
37 : //
38 : // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
39 : // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
40 : // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
41 : // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
42 : // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43 : // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
44 : // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
45 : // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46 : // POSSIBILITY OF SUCH DAMAGE.
47 :
48 : // ObjexxFCL Headers
49 :
50 : // EnergyPlus Headers
51 : #include <EnergyPlus/Data/EnergyPlusData.hh>
52 : #include <EnergyPlus/DataEnvironment.hh>
53 : #include <EnergyPlus/DataHVACGlobals.hh>
54 : #include <EnergyPlus/DataIPShortCuts.hh>
55 : #include <EnergyPlus/InputProcessing/InputProcessor.hh>
56 : #include <EnergyPlus/OutputProcessor.hh>
57 : #include <EnergyPlus/PollutionModule.hh>
58 : #include <EnergyPlus/ScheduleManager.hh>
59 : #include <EnergyPlus/UtilityRoutines.hh>
60 :
61 : namespace EnergyPlus::PollutionModule {
62 : // Module containing the pollution calculation routines
63 :
64 : // MODULE INFORMATION:
65 : // AUTHOR Richard J. Liesen (RJL)
66 : // DATE WRITTEN August 2002
67 : // MODIFIED January 17, 2004 - J Glazer - Added source energy support including schedules for source energy
68 : // January 2008 - L Lawrie - implementing schedule fields for all emission factors.
69 : // RE-ENGINEERED December 2003 RJL
70 :
71 : // PURPOSE OF THIS MODULE:
72 : // To encapsulate the data and algorithms required to
73 : // calculate the pollution, and carbon eqiuvalent for the Energy consumed
74 :
75 : // METHODOLOGY EMPLOYED:
76 : // The methodology employed is to calculate the
77 : // source pollution from building energy consumption.
78 : // PURPOSE:= Takes the Energy from the various sources and
79 : // calculates the Environmental Impact Factors.
80 : // STEP 1: We begin with the output expressing the energy
81 : // STEP 2: The energy used by types: must be converted back
82 : // to source fuel types (fossil or electricity) via User Input.
83 : // STEP 3: All energy numbers have been converted to units of MJ's or 1x10^6 Joules.
84 : // STEP 4: Environmental Impact Factors are calculated from Coefficients
85 :
86 : // MODULE VARIABLE DECLARATIONS:
87 : // Total for all of the Pollutants
88 : // Total Carbon Equivalent Components
89 : // !Fuel Types
90 : // Total Carbon Equivalent Coeffs
91 : // Purchased Efficiencies
92 :
93 : // Fuel Types used with the Pollution Factors
94 : // Facility Meter Indexes
95 : // Facility Meter Values used in Pollution Calcs
96 :
97 391386 : void CalculatePollution(EnergyPlusData &state)
98 : {
99 :
100 : // SUBROUTINE INFORMATION:
101 : // AUTHOR Richard Liesen
102 : // DATE WRITTEN August 2002
103 : // MODIFIED na
104 : // RE-ENGINEERED December 2003 RJL
105 :
106 : // PURPOSE OF THIS SUBROUTINE:
107 : // This subroutine is the main driver for the pollution calculation
108 :
109 : // METHODOLOGY EMPLOYED:
110 : // Uses the status flags to trigger events.
111 :
112 391386 : if (!state.dataPollutionModule->PollutionReportSetup) return;
113 :
114 : // Call the Routine to Read the Energy Values from the EnergyPlus Meters
115 391386 : ReadEnergyMeters(state);
116 :
117 : // Call the routine that takes the fuel data and calculates the
118 : // Pollution for each fuel type.
119 391386 : CalcPollution(state);
120 : }
121 :
122 : // Get Input Section of the Module
123 : //******************************************************************************
124 :
125 769 : void SetupPollutionCalculations(EnergyPlusData &state)
126 : {
127 :
128 : // SUBROUTINE INFORMATION:
129 : // AUTHOR Richard Liesen
130 : // DATE WRITTEN August 2002
131 : // MODIFIED na
132 : // RE-ENGINEERED December 2003 RJL; August 2008 LKL - more standard getinput
133 :
134 : // PURPOSE OF THIS SUBROUTINE:
135 : // This subroutine is the input routines and Get routines
136 :
137 : // METHODOLOGY EMPLOYED:
138 : // Uses the status flags to trigger events.
139 :
140 : // Using/Aliasing
141 : using ScheduleManager::GetScheduleIndex;
142 :
143 : // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
144 : int NumPolluteRpt;
145 : int NumAlphas;
146 : int NumNums;
147 : int Loop;
148 : int IOStat;
149 769 : auto &cCurrentModuleObject = state.dataIPShortCut->cCurrentModuleObject;
150 :
151 : // First determine if the Pollution reporting has been triggered, and is not exit.
152 769 : cCurrentModuleObject = "Output:EnvironmentalImpactFactors";
153 769 : NumPolluteRpt = state.dataInputProcessing->inputProcessor->getNumObjectsFound(state, cCurrentModuleObject);
154 769 : state.dataPollutionModule->PollutionReportSetup = true;
155 :
156 829 : for (Loop = 1; Loop <= NumPolluteRpt; ++Loop) {
157 :
158 420 : state.dataInputProcessing->inputProcessor->getObjectItem(state,
159 : cCurrentModuleObject,
160 : Loop,
161 60 : state.dataIPShortCut->cAlphaArgs,
162 : NumAlphas,
163 60 : state.dataIPShortCut->rNumericArgs,
164 : NumNums,
165 : IOStat,
166 60 : state.dataIPShortCut->lNumericFieldBlanks,
167 60 : state.dataIPShortCut->lAlphaFieldBlanks,
168 60 : state.dataIPShortCut->cAlphaFieldNames,
169 60 : state.dataIPShortCut->cNumericFieldNames);
170 :
171 : // Call this routine in the Output Processor to setup the correct Facility energy meters that are
172 : // necessary to make sure that the Meter file is opened and written to by the OP so that time stamps
173 : // and the like are happening as expected.
174 60 : if (!state.dataIPShortCut->lAlphaFieldBlanks(1)) {
175 60 : InitPollutionMeterReporting(state, state.dataIPShortCut->cAlphaArgs(1));
176 : } else {
177 0 : InitPollutionMeterReporting(state, "RunPeriod");
178 : }
179 : }
180 769 : }
181 :
182 769 : void GetPollutionFactorInput(EnergyPlusData &state)
183 : {
184 :
185 : // SUBROUTINE INFORMATION:
186 : // AUTHOR Linda Lawrie
187 : // DATE WRITTEN August 2008
188 : // MODIFIED na
189 : // RE-ENGINEERED na
190 :
191 : // PURPOSE OF THIS SUBROUTINE:
192 : // SetupPollutionCalculation must be called after meters are initialized. This caused a problem
193 : // in runs so have added this routine to allow central get for most inputs.
194 :
195 : // Using/Aliasing
196 :
197 : // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
198 : int NumAlphas;
199 : int NumNums;
200 : int Loop;
201 : int IOStat;
202 769 : bool ErrorsFound(false);
203 769 : auto &Pollution = state.dataPollutionModule->Pollution;
204 769 : auto &FuelType = state.dataPollutionModule->FuelType;
205 769 : if (!state.dataPollutionModule->GetInputFlagPollution) return; // Input already gotten
206 769 : auto &cCurrentModuleObject = state.dataIPShortCut->cCurrentModuleObject;
207 769 : state.dataPollutionModule->GetInputFlagPollution = false;
208 :
209 769 : cCurrentModuleObject = "EnvironmentalImpactFactors";
210 769 : state.dataPollutionModule->NumEnvImpactFactors = state.dataInputProcessing->inputProcessor->getNumObjectsFound(state, cCurrentModuleObject);
211 769 : if (state.dataPollutionModule->NumEnvImpactFactors > 0) {
212 : // Now find and load all of the user inputs and factors.
213 504 : state.dataInputProcessing->inputProcessor->getObjectItem(state,
214 : cCurrentModuleObject,
215 : 1,
216 72 : state.dataIPShortCut->cAlphaArgs,
217 : NumAlphas,
218 72 : state.dataIPShortCut->rNumericArgs,
219 : NumNums,
220 : IOStat,
221 72 : state.dataIPShortCut->lNumericFieldBlanks,
222 72 : state.dataIPShortCut->lAlphaFieldBlanks,
223 72 : state.dataIPShortCut->cAlphaFieldNames,
224 72 : state.dataIPShortCut->cNumericFieldNames);
225 : } else {
226 697 : if (state.dataPollutionModule->PollutionReportSetup)
227 0 : ShowWarningError(state, cCurrentModuleObject + ": not entered. Values will be defaulted.");
228 : }
229 :
230 769 : Pollution.PurchHeatEffic = 0.3;
231 769 : Pollution.PurchCoolCOP = 3.0;
232 769 : Pollution.SteamConvEffic = 0.25;
233 769 : Pollution.CarbonEquivN2O = 0.0;
234 769 : Pollution.CarbonEquivCH4 = 0.0;
235 769 : Pollution.CarbonEquivCO2 = 0.0;
236 :
237 769 : if (state.dataPollutionModule->NumEnvImpactFactors > 0) {
238 : // If Heating Efficiency defined by the User is negative or zero then a default of 30% will be assigned.
239 72 : if (state.dataIPShortCut->rNumericArgs(1) > 0.0) {
240 72 : Pollution.PurchHeatEffic = state.dataIPShortCut->rNumericArgs(1);
241 : }
242 :
243 : // If COP defined by the User is negative or zero then a default of 3.0 will be assigned.
244 72 : if (state.dataIPShortCut->rNumericArgs(2) > 0.0) {
245 72 : Pollution.PurchCoolCOP = state.dataIPShortCut->rNumericArgs(2);
246 : }
247 :
248 : // If Steam Conversion Efficiency defined by the User is negative or zero then a default of 25% will be assigned.
249 72 : if (state.dataIPShortCut->rNumericArgs(3) > 0.0) {
250 72 : Pollution.SteamConvEffic = state.dataIPShortCut->rNumericArgs(3);
251 : }
252 :
253 : // Load the Total Carbon Equivalent Pollution Factor coefficients
254 72 : Pollution.CarbonEquivN2O = state.dataIPShortCut->rNumericArgs(4);
255 72 : Pollution.CarbonEquivCH4 = state.dataIPShortCut->rNumericArgs(5);
256 72 : Pollution.CarbonEquivCO2 = state.dataIPShortCut->rNumericArgs(6);
257 : }
258 :
259 : // Compare all of the Fuel Factors and compare to PollutionCalculationFactors List
260 769 : cCurrentModuleObject = "FuelFactors";
261 769 : state.dataPollutionModule->NumFuelFactors = state.dataInputProcessing->inputProcessor->getNumObjectsFound(state, cCurrentModuleObject);
262 :
263 973 : for (Loop = 1; Loop <= state.dataPollutionModule->NumFuelFactors; ++Loop) {
264 : // Now find and load all of the user inputs and factors.
265 1428 : state.dataInputProcessing->inputProcessor->getObjectItem(state,
266 : cCurrentModuleObject,
267 : Loop,
268 204 : state.dataIPShortCut->cAlphaArgs,
269 : NumAlphas,
270 204 : state.dataIPShortCut->rNumericArgs,
271 : NumNums,
272 : IOStat,
273 204 : state.dataIPShortCut->lNumericFieldBlanks,
274 204 : state.dataIPShortCut->lAlphaFieldBlanks,
275 204 : state.dataIPShortCut->cAlphaFieldNames,
276 204 : state.dataIPShortCut->cNumericFieldNames);
277 :
278 204 : FuelType.FuelTypeNames(Loop) = state.dataIPShortCut->cAlphaArgs(1);
279 :
280 : {
281 408 : auto const SELECT_CASE_var(UtilityRoutines::MakeUPPERCase(FuelType.FuelTypeNames(Loop)));
282 204 : if (SELECT_CASE_var == "NATURALGAS") {
283 76 : if (Pollution.NatGasCoef.FuelFactorUsed) {
284 0 : ShowWarningError(state,
285 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
286 0 : continue;
287 : }
288 76 : Pollution.NatGasCoef.FuelFactorUsed = true;
289 : // Natural Gas Coeffs
290 76 : Pollution.NatGasCoef.Source = state.dataIPShortCut->rNumericArgs(1);
291 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
292 2 : CheckFFSchedule(state,
293 : cCurrentModuleObject,
294 : "NaturalGas",
295 1 : state.dataIPShortCut->cAlphaFieldNames(2),
296 1 : state.dataIPShortCut->cAlphaArgs(2),
297 : Pollution.NatGasCoef.SourceSched,
298 : ErrorsFound);
299 : }
300 76 : Pollution.NatGasCoef.CO2 = state.dataIPShortCut->rNumericArgs(2);
301 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
302 0 : CheckFFSchedule(state,
303 : cCurrentModuleObject,
304 : "NaturalGas",
305 0 : state.dataIPShortCut->cAlphaFieldNames(3),
306 0 : state.dataIPShortCut->cAlphaArgs(3),
307 : Pollution.NatGasCoef.CO2Sched,
308 : ErrorsFound);
309 : }
310 76 : Pollution.NatGasCoef.CO = state.dataIPShortCut->rNumericArgs(3);
311 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
312 0 : CheckFFSchedule(state,
313 : cCurrentModuleObject,
314 : "NaturalGas",
315 0 : state.dataIPShortCut->cAlphaFieldNames(4),
316 0 : state.dataIPShortCut->cAlphaArgs(4),
317 : Pollution.NatGasCoef.COSched,
318 : ErrorsFound);
319 : }
320 76 : Pollution.NatGasCoef.CH4 = state.dataIPShortCut->rNumericArgs(4);
321 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
322 0 : CheckFFSchedule(state,
323 : cCurrentModuleObject,
324 : "NaturalGas",
325 0 : state.dataIPShortCut->cAlphaFieldNames(5),
326 0 : state.dataIPShortCut->cAlphaArgs(5),
327 : Pollution.NatGasCoef.CH4Sched,
328 : ErrorsFound);
329 : }
330 76 : Pollution.NatGasCoef.NOx = state.dataIPShortCut->rNumericArgs(5);
331 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
332 0 : CheckFFSchedule(state,
333 : cCurrentModuleObject,
334 : "NaturalGas",
335 0 : state.dataIPShortCut->cAlphaFieldNames(6),
336 0 : state.dataIPShortCut->cAlphaArgs(6),
337 : Pollution.NatGasCoef.NOxSched,
338 : ErrorsFound);
339 : }
340 76 : Pollution.NatGasCoef.N2O = state.dataIPShortCut->rNumericArgs(6);
341 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
342 0 : CheckFFSchedule(state,
343 : cCurrentModuleObject,
344 : "NaturalGas",
345 0 : state.dataIPShortCut->cAlphaFieldNames(7),
346 0 : state.dataIPShortCut->cAlphaArgs(7),
347 : Pollution.NatGasCoef.N2OSched,
348 : ErrorsFound);
349 : }
350 76 : Pollution.NatGasCoef.SO2 = state.dataIPShortCut->rNumericArgs(7);
351 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
352 0 : CheckFFSchedule(state,
353 : cCurrentModuleObject,
354 : "NaturalGas",
355 0 : state.dataIPShortCut->cAlphaFieldNames(8),
356 0 : state.dataIPShortCut->cAlphaArgs(8),
357 : Pollution.NatGasCoef.SO2Sched,
358 : ErrorsFound);
359 : }
360 76 : Pollution.NatGasCoef.PM = state.dataIPShortCut->rNumericArgs(8);
361 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
362 0 : CheckFFSchedule(state,
363 : cCurrentModuleObject,
364 : "NaturalGas",
365 0 : state.dataIPShortCut->cAlphaFieldNames(9),
366 0 : state.dataIPShortCut->cAlphaArgs(9),
367 : Pollution.NatGasCoef.PMSched,
368 : ErrorsFound);
369 : }
370 76 : Pollution.NatGasCoef.PM10 = state.dataIPShortCut->rNumericArgs(9);
371 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
372 0 : CheckFFSchedule(state,
373 : cCurrentModuleObject,
374 : "NaturalGas",
375 0 : state.dataIPShortCut->cAlphaFieldNames(10),
376 0 : state.dataIPShortCut->cAlphaArgs(10),
377 : Pollution.NatGasCoef.PM10Sched,
378 : ErrorsFound);
379 : }
380 76 : Pollution.NatGasCoef.PM25 = state.dataIPShortCut->rNumericArgs(10);
381 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
382 0 : CheckFFSchedule(state,
383 : cCurrentModuleObject,
384 : "NaturalGas",
385 0 : state.dataIPShortCut->cAlphaFieldNames(11),
386 0 : state.dataIPShortCut->cAlphaArgs(11),
387 : Pollution.NatGasCoef.PM25Sched,
388 : ErrorsFound);
389 : }
390 76 : Pollution.NatGasCoef.NH3 = state.dataIPShortCut->rNumericArgs(11);
391 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
392 0 : CheckFFSchedule(state,
393 : cCurrentModuleObject,
394 : "NaturalGas",
395 0 : state.dataIPShortCut->cAlphaFieldNames(12),
396 0 : state.dataIPShortCut->cAlphaArgs(12),
397 : Pollution.NatGasCoef.NH3Sched,
398 : ErrorsFound);
399 : }
400 76 : Pollution.NatGasCoef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
401 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
402 0 : CheckFFSchedule(state,
403 : cCurrentModuleObject,
404 : "NaturalGas",
405 0 : state.dataIPShortCut->cAlphaFieldNames(13),
406 0 : state.dataIPShortCut->cAlphaArgs(13),
407 : Pollution.NatGasCoef.NMVOCSched,
408 : ErrorsFound);
409 : }
410 76 : Pollution.NatGasCoef.Hg = state.dataIPShortCut->rNumericArgs(13);
411 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
412 0 : CheckFFSchedule(state,
413 : cCurrentModuleObject,
414 : "NaturalGas",
415 0 : state.dataIPShortCut->cAlphaFieldNames(14),
416 0 : state.dataIPShortCut->cAlphaArgs(14),
417 : Pollution.NatGasCoef.HgSched,
418 : ErrorsFound);
419 : }
420 76 : Pollution.NatGasCoef.Pb = state.dataIPShortCut->rNumericArgs(14);
421 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
422 0 : CheckFFSchedule(state,
423 : cCurrentModuleObject,
424 : "NaturalGas",
425 0 : state.dataIPShortCut->cAlphaFieldNames(15),
426 0 : state.dataIPShortCut->cAlphaArgs(15),
427 : Pollution.NatGasCoef.PbSched,
428 : ErrorsFound);
429 : }
430 76 : Pollution.NatGasCoef.Water = state.dataIPShortCut->rNumericArgs(15);
431 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
432 0 : CheckFFSchedule(state,
433 : cCurrentModuleObject,
434 : "NaturalGas",
435 0 : state.dataIPShortCut->cAlphaFieldNames(16),
436 0 : state.dataIPShortCut->cAlphaArgs(16),
437 : Pollution.NatGasCoef.WaterSched,
438 : ErrorsFound);
439 : }
440 76 : Pollution.NatGasCoef.NucHi = state.dataIPShortCut->rNumericArgs(16);
441 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
442 0 : CheckFFSchedule(state,
443 : cCurrentModuleObject,
444 : "NaturalGas",
445 0 : state.dataIPShortCut->cAlphaFieldNames(17),
446 0 : state.dataIPShortCut->cAlphaArgs(17),
447 : Pollution.NatGasCoef.NucHiSched,
448 : ErrorsFound);
449 : }
450 76 : Pollution.NatGasCoef.NucLo = state.dataIPShortCut->rNumericArgs(17);
451 76 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
452 0 : CheckFFSchedule(state,
453 : cCurrentModuleObject,
454 : "NaturalGas",
455 0 : state.dataIPShortCut->cAlphaFieldNames(18),
456 0 : state.dataIPShortCut->cAlphaArgs(18),
457 : Pollution.NatGasCoef.NucLoSched,
458 : ErrorsFound);
459 : }
460 :
461 128 : } else if (SELECT_CASE_var == "FUELOILNO2") {
462 0 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
463 0 : ShowWarningError(state,
464 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
465 0 : continue;
466 : }
467 0 : Pollution.FuelOil2Coef.FuelFactorUsed = true;
468 : // FuelOilNo2 Coeffs
469 0 : Pollution.FuelOil2Coef.Source = state.dataIPShortCut->rNumericArgs(1);
470 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
471 0 : CheckFFSchedule(state,
472 : cCurrentModuleObject,
473 : "Fuel Oil#2",
474 0 : state.dataIPShortCut->cAlphaFieldNames(2),
475 0 : state.dataIPShortCut->cAlphaArgs(2),
476 : Pollution.FuelOil2Coef.SourceSched,
477 : ErrorsFound);
478 : }
479 0 : Pollution.FuelOil2Coef.CO2 = state.dataIPShortCut->rNumericArgs(2);
480 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
481 0 : CheckFFSchedule(state,
482 : cCurrentModuleObject,
483 : "Fuel Oil#2",
484 0 : state.dataIPShortCut->cAlphaFieldNames(3),
485 0 : state.dataIPShortCut->cAlphaArgs(3),
486 : Pollution.FuelOil2Coef.CO2Sched,
487 : ErrorsFound);
488 : }
489 0 : Pollution.FuelOil2Coef.CO = state.dataIPShortCut->rNumericArgs(3);
490 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
491 0 : CheckFFSchedule(state,
492 : cCurrentModuleObject,
493 : "Fuel Oil#2",
494 0 : state.dataIPShortCut->cAlphaFieldNames(4),
495 0 : state.dataIPShortCut->cAlphaArgs(4),
496 : Pollution.FuelOil2Coef.COSched,
497 : ErrorsFound);
498 : }
499 0 : Pollution.FuelOil2Coef.CH4 = state.dataIPShortCut->rNumericArgs(4);
500 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
501 0 : CheckFFSchedule(state,
502 : cCurrentModuleObject,
503 : "Fuel Oil#2",
504 0 : state.dataIPShortCut->cAlphaFieldNames(5),
505 0 : state.dataIPShortCut->cAlphaArgs(5),
506 : Pollution.FuelOil2Coef.CH4Sched,
507 : ErrorsFound);
508 : }
509 0 : Pollution.FuelOil2Coef.NOx = state.dataIPShortCut->rNumericArgs(5);
510 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
511 0 : CheckFFSchedule(state,
512 : cCurrentModuleObject,
513 : "Fuel Oil#2",
514 0 : state.dataIPShortCut->cAlphaFieldNames(6),
515 0 : state.dataIPShortCut->cAlphaArgs(6),
516 : Pollution.FuelOil2Coef.NOxSched,
517 : ErrorsFound);
518 : }
519 0 : Pollution.FuelOil2Coef.N2O = state.dataIPShortCut->rNumericArgs(6);
520 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
521 0 : CheckFFSchedule(state,
522 : cCurrentModuleObject,
523 : "Fuel Oil#2",
524 0 : state.dataIPShortCut->cAlphaFieldNames(7),
525 0 : state.dataIPShortCut->cAlphaArgs(7),
526 : Pollution.FuelOil2Coef.N2OSched,
527 : ErrorsFound);
528 : }
529 0 : Pollution.FuelOil2Coef.SO2 = state.dataIPShortCut->rNumericArgs(7);
530 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
531 0 : CheckFFSchedule(state,
532 : cCurrentModuleObject,
533 : "Fuel Oil#2",
534 0 : state.dataIPShortCut->cAlphaFieldNames(8),
535 0 : state.dataIPShortCut->cAlphaArgs(8),
536 : Pollution.FuelOil2Coef.SO2Sched,
537 : ErrorsFound);
538 : }
539 0 : Pollution.FuelOil2Coef.PM = state.dataIPShortCut->rNumericArgs(8);
540 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
541 0 : CheckFFSchedule(state,
542 : cCurrentModuleObject,
543 : "Fuel Oil#2",
544 0 : state.dataIPShortCut->cAlphaFieldNames(9),
545 0 : state.dataIPShortCut->cAlphaArgs(9),
546 : Pollution.FuelOil2Coef.PMSched,
547 : ErrorsFound);
548 : }
549 0 : Pollution.FuelOil2Coef.PM10 = state.dataIPShortCut->rNumericArgs(9);
550 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
551 0 : CheckFFSchedule(state,
552 : cCurrentModuleObject,
553 : "Fuel Oil#2",
554 0 : state.dataIPShortCut->cAlphaFieldNames(10),
555 0 : state.dataIPShortCut->cAlphaArgs(10),
556 : Pollution.FuelOil2Coef.PM10Sched,
557 : ErrorsFound);
558 : }
559 0 : Pollution.FuelOil2Coef.PM25 = state.dataIPShortCut->rNumericArgs(10);
560 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
561 0 : CheckFFSchedule(state,
562 : cCurrentModuleObject,
563 : "Fuel Oil#2",
564 0 : state.dataIPShortCut->cAlphaFieldNames(11),
565 0 : state.dataIPShortCut->cAlphaArgs(11),
566 : Pollution.FuelOil2Coef.PM25Sched,
567 : ErrorsFound);
568 : }
569 0 : Pollution.FuelOil2Coef.NH3 = state.dataIPShortCut->rNumericArgs(11);
570 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
571 0 : CheckFFSchedule(state,
572 : cCurrentModuleObject,
573 : "Fuel Oil#2",
574 0 : state.dataIPShortCut->cAlphaFieldNames(12),
575 0 : state.dataIPShortCut->cAlphaArgs(12),
576 : Pollution.FuelOil2Coef.NH3Sched,
577 : ErrorsFound);
578 : }
579 0 : Pollution.FuelOil2Coef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
580 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
581 0 : CheckFFSchedule(state,
582 : cCurrentModuleObject,
583 : "Fuel Oil#2",
584 0 : state.dataIPShortCut->cAlphaFieldNames(13),
585 0 : state.dataIPShortCut->cAlphaArgs(13),
586 : Pollution.FuelOil2Coef.NMVOCSched,
587 : ErrorsFound);
588 : }
589 0 : Pollution.FuelOil2Coef.Hg = state.dataIPShortCut->rNumericArgs(13);
590 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
591 0 : CheckFFSchedule(state,
592 : cCurrentModuleObject,
593 : "Fuel Oil#2",
594 0 : state.dataIPShortCut->cAlphaFieldNames(14),
595 0 : state.dataIPShortCut->cAlphaArgs(14),
596 : Pollution.FuelOil2Coef.HgSched,
597 : ErrorsFound);
598 : }
599 0 : Pollution.FuelOil2Coef.Pb = state.dataIPShortCut->rNumericArgs(14);
600 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
601 0 : CheckFFSchedule(state,
602 : cCurrentModuleObject,
603 : "Fuel Oil#2",
604 0 : state.dataIPShortCut->cAlphaFieldNames(15),
605 0 : state.dataIPShortCut->cAlphaArgs(15),
606 : Pollution.FuelOil2Coef.PbSched,
607 : ErrorsFound);
608 : }
609 0 : Pollution.FuelOil2Coef.Water = state.dataIPShortCut->rNumericArgs(15);
610 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
611 0 : CheckFFSchedule(state,
612 : cCurrentModuleObject,
613 : "Fuel Oil#2",
614 0 : state.dataIPShortCut->cAlphaFieldNames(16),
615 0 : state.dataIPShortCut->cAlphaArgs(16),
616 : Pollution.FuelOil2Coef.WaterSched,
617 : ErrorsFound);
618 : }
619 0 : Pollution.FuelOil2Coef.NucHi = state.dataIPShortCut->rNumericArgs(16);
620 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
621 0 : CheckFFSchedule(state,
622 : cCurrentModuleObject,
623 : "Fuel Oil#2",
624 0 : state.dataIPShortCut->cAlphaFieldNames(17),
625 0 : state.dataIPShortCut->cAlphaArgs(17),
626 : Pollution.FuelOil2Coef.NucHiSched,
627 : ErrorsFound);
628 : }
629 0 : Pollution.FuelOil2Coef.NucLo = state.dataIPShortCut->rNumericArgs(17);
630 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
631 0 : CheckFFSchedule(state,
632 : cCurrentModuleObject,
633 : "Fuel Oil#2",
634 0 : state.dataIPShortCut->cAlphaFieldNames(18),
635 0 : state.dataIPShortCut->cAlphaArgs(18),
636 : Pollution.FuelOil2Coef.NucLoSched,
637 : ErrorsFound);
638 : }
639 :
640 128 : } else if (SELECT_CASE_var == "FUELOILNO1") {
641 21 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
642 0 : ShowWarningError(state,
643 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
644 0 : continue;
645 : }
646 21 : Pollution.FuelOil1Coef.FuelFactorUsed = true;
647 : // FuelOilNo1 Coeffs
648 21 : Pollution.FuelOil1Coef.Source = state.dataIPShortCut->rNumericArgs(1);
649 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
650 0 : CheckFFSchedule(state,
651 : cCurrentModuleObject,
652 : "Fuel Oil#1",
653 0 : state.dataIPShortCut->cAlphaFieldNames(2),
654 0 : state.dataIPShortCut->cAlphaArgs(2),
655 : Pollution.FuelOil1Coef.SourceSched,
656 : ErrorsFound);
657 : }
658 21 : Pollution.FuelOil1Coef.CO2 = state.dataIPShortCut->rNumericArgs(2);
659 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
660 0 : CheckFFSchedule(state,
661 : cCurrentModuleObject,
662 : "Fuel Oil#1",
663 0 : state.dataIPShortCut->cAlphaFieldNames(3),
664 0 : state.dataIPShortCut->cAlphaArgs(3),
665 : Pollution.FuelOil1Coef.CO2Sched,
666 : ErrorsFound);
667 : }
668 21 : Pollution.FuelOil1Coef.CO = state.dataIPShortCut->rNumericArgs(3);
669 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
670 0 : CheckFFSchedule(state,
671 : cCurrentModuleObject,
672 : "Fuel Oil#1",
673 0 : state.dataIPShortCut->cAlphaFieldNames(4),
674 0 : state.dataIPShortCut->cAlphaArgs(4),
675 : Pollution.FuelOil1Coef.COSched,
676 : ErrorsFound);
677 : }
678 21 : Pollution.FuelOil1Coef.CH4 = state.dataIPShortCut->rNumericArgs(4);
679 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
680 0 : CheckFFSchedule(state,
681 : cCurrentModuleObject,
682 : "Fuel Oil#1",
683 0 : state.dataIPShortCut->cAlphaFieldNames(5),
684 0 : state.dataIPShortCut->cAlphaArgs(5),
685 : Pollution.FuelOil1Coef.CH4Sched,
686 : ErrorsFound);
687 : }
688 21 : Pollution.FuelOil1Coef.NOx = state.dataIPShortCut->rNumericArgs(5);
689 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
690 0 : CheckFFSchedule(state,
691 : cCurrentModuleObject,
692 : "Fuel Oil#1",
693 0 : state.dataIPShortCut->cAlphaFieldNames(6),
694 0 : state.dataIPShortCut->cAlphaArgs(6),
695 : Pollution.FuelOil1Coef.NOxSched,
696 : ErrorsFound);
697 : }
698 21 : Pollution.FuelOil1Coef.N2O = state.dataIPShortCut->rNumericArgs(6);
699 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
700 0 : CheckFFSchedule(state,
701 : cCurrentModuleObject,
702 : "Fuel Oil#1",
703 0 : state.dataIPShortCut->cAlphaFieldNames(7),
704 0 : state.dataIPShortCut->cAlphaArgs(7),
705 : Pollution.FuelOil1Coef.N2OSched,
706 : ErrorsFound);
707 : }
708 21 : Pollution.FuelOil1Coef.SO2 = state.dataIPShortCut->rNumericArgs(7);
709 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
710 0 : CheckFFSchedule(state,
711 : cCurrentModuleObject,
712 : "Fuel Oil#1",
713 0 : state.dataIPShortCut->cAlphaFieldNames(8),
714 0 : state.dataIPShortCut->cAlphaArgs(8),
715 : Pollution.FuelOil1Coef.SO2Sched,
716 : ErrorsFound);
717 : }
718 21 : Pollution.FuelOil1Coef.PM = state.dataIPShortCut->rNumericArgs(8);
719 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
720 0 : CheckFFSchedule(state,
721 : cCurrentModuleObject,
722 : "Fuel Oil#1",
723 0 : state.dataIPShortCut->cAlphaFieldNames(9),
724 0 : state.dataIPShortCut->cAlphaArgs(9),
725 : Pollution.FuelOil1Coef.PMSched,
726 : ErrorsFound);
727 : }
728 21 : Pollution.FuelOil1Coef.PM10 = state.dataIPShortCut->rNumericArgs(9);
729 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
730 0 : CheckFFSchedule(state,
731 : cCurrentModuleObject,
732 : "Fuel Oil#1",
733 0 : state.dataIPShortCut->cAlphaFieldNames(10),
734 0 : state.dataIPShortCut->cAlphaArgs(10),
735 : Pollution.FuelOil1Coef.PM10Sched,
736 : ErrorsFound);
737 : }
738 21 : Pollution.FuelOil1Coef.PM25 = state.dataIPShortCut->rNumericArgs(10);
739 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
740 0 : CheckFFSchedule(state,
741 : cCurrentModuleObject,
742 : "Fuel Oil#1",
743 0 : state.dataIPShortCut->cAlphaFieldNames(11),
744 0 : state.dataIPShortCut->cAlphaArgs(11),
745 : Pollution.FuelOil1Coef.PM25Sched,
746 : ErrorsFound);
747 : }
748 21 : Pollution.FuelOil1Coef.NH3 = state.dataIPShortCut->rNumericArgs(11);
749 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
750 0 : CheckFFSchedule(state,
751 : cCurrentModuleObject,
752 : "Fuel Oil#1",
753 0 : state.dataIPShortCut->cAlphaFieldNames(12),
754 0 : state.dataIPShortCut->cAlphaArgs(12),
755 : Pollution.FuelOil1Coef.NH3Sched,
756 : ErrorsFound);
757 : }
758 21 : Pollution.FuelOil1Coef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
759 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
760 0 : CheckFFSchedule(state,
761 : cCurrentModuleObject,
762 : "Fuel Oil#1",
763 0 : state.dataIPShortCut->cAlphaFieldNames(13),
764 0 : state.dataIPShortCut->cAlphaArgs(13),
765 : Pollution.FuelOil1Coef.NMVOCSched,
766 : ErrorsFound);
767 : }
768 21 : Pollution.FuelOil1Coef.Hg = state.dataIPShortCut->rNumericArgs(13);
769 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
770 0 : CheckFFSchedule(state,
771 : cCurrentModuleObject,
772 : "Fuel Oil#1",
773 0 : state.dataIPShortCut->cAlphaFieldNames(14),
774 0 : state.dataIPShortCut->cAlphaArgs(14),
775 : Pollution.FuelOil1Coef.HgSched,
776 : ErrorsFound);
777 : }
778 21 : Pollution.FuelOil1Coef.Pb = state.dataIPShortCut->rNumericArgs(14);
779 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
780 0 : CheckFFSchedule(state,
781 : cCurrentModuleObject,
782 : "Fuel Oil#1",
783 0 : state.dataIPShortCut->cAlphaFieldNames(15),
784 0 : state.dataIPShortCut->cAlphaArgs(15),
785 : Pollution.FuelOil1Coef.PbSched,
786 : ErrorsFound);
787 : }
788 21 : Pollution.FuelOil1Coef.Water = state.dataIPShortCut->rNumericArgs(15);
789 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
790 0 : CheckFFSchedule(state,
791 : cCurrentModuleObject,
792 : "Fuel Oil#1",
793 0 : state.dataIPShortCut->cAlphaFieldNames(16),
794 0 : state.dataIPShortCut->cAlphaArgs(16),
795 : Pollution.FuelOil1Coef.WaterSched,
796 : ErrorsFound);
797 : }
798 21 : Pollution.FuelOil1Coef.NucHi = state.dataIPShortCut->rNumericArgs(16);
799 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
800 0 : CheckFFSchedule(state,
801 : cCurrentModuleObject,
802 : "Fuel Oil#1",
803 0 : state.dataIPShortCut->cAlphaFieldNames(17),
804 0 : state.dataIPShortCut->cAlphaArgs(17),
805 : Pollution.FuelOil1Coef.NucHiSched,
806 : ErrorsFound);
807 : }
808 21 : Pollution.FuelOil1Coef.NucLo = state.dataIPShortCut->rNumericArgs(17);
809 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
810 0 : CheckFFSchedule(state,
811 : cCurrentModuleObject,
812 : "Fuel Oil#1",
813 0 : state.dataIPShortCut->cAlphaFieldNames(18),
814 0 : state.dataIPShortCut->cAlphaArgs(18),
815 : Pollution.FuelOil1Coef.NucLoSched,
816 : ErrorsFound);
817 : }
818 :
819 107 : } else if (SELECT_CASE_var == "COAL") {
820 0 : if (Pollution.CoalCoef.FuelFactorUsed) {
821 0 : ShowWarningError(state,
822 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
823 0 : continue;
824 : }
825 0 : Pollution.CoalCoef.FuelFactorUsed = true;
826 : // Coal
827 0 : Pollution.CoalCoef.Source = state.dataIPShortCut->rNumericArgs(1);
828 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
829 0 : CheckFFSchedule(state,
830 : cCurrentModuleObject,
831 : "Coal",
832 0 : state.dataIPShortCut->cAlphaFieldNames(2),
833 0 : state.dataIPShortCut->cAlphaArgs(2),
834 : Pollution.CoalCoef.SourceSched,
835 : ErrorsFound);
836 : }
837 0 : Pollution.CoalCoef.CO2 = state.dataIPShortCut->rNumericArgs(2);
838 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
839 0 : CheckFFSchedule(state,
840 : cCurrentModuleObject,
841 : "Coal",
842 0 : state.dataIPShortCut->cAlphaFieldNames(3),
843 0 : state.dataIPShortCut->cAlphaArgs(3),
844 : Pollution.CoalCoef.CO2Sched,
845 : ErrorsFound);
846 : }
847 0 : Pollution.CoalCoef.CO = state.dataIPShortCut->rNumericArgs(3);
848 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
849 0 : CheckFFSchedule(state,
850 : cCurrentModuleObject,
851 : "Coal",
852 0 : state.dataIPShortCut->cAlphaFieldNames(4),
853 0 : state.dataIPShortCut->cAlphaArgs(4),
854 : Pollution.CoalCoef.COSched,
855 : ErrorsFound);
856 : }
857 0 : Pollution.CoalCoef.CH4 = state.dataIPShortCut->rNumericArgs(4);
858 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
859 0 : CheckFFSchedule(state,
860 : cCurrentModuleObject,
861 : "Coal",
862 0 : state.dataIPShortCut->cAlphaFieldNames(5),
863 0 : state.dataIPShortCut->cAlphaArgs(5),
864 : Pollution.CoalCoef.CH4Sched,
865 : ErrorsFound);
866 : }
867 0 : Pollution.CoalCoef.NOx = state.dataIPShortCut->rNumericArgs(5);
868 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
869 0 : CheckFFSchedule(state,
870 : cCurrentModuleObject,
871 : "Coal",
872 0 : state.dataIPShortCut->cAlphaFieldNames(6),
873 0 : state.dataIPShortCut->cAlphaArgs(6),
874 : Pollution.CoalCoef.NOxSched,
875 : ErrorsFound);
876 : }
877 0 : Pollution.CoalCoef.N2O = state.dataIPShortCut->rNumericArgs(6);
878 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
879 0 : CheckFFSchedule(state,
880 : cCurrentModuleObject,
881 : "Coal",
882 0 : state.dataIPShortCut->cAlphaFieldNames(7),
883 0 : state.dataIPShortCut->cAlphaArgs(7),
884 : Pollution.CoalCoef.N2OSched,
885 : ErrorsFound);
886 : }
887 0 : Pollution.CoalCoef.SO2 = state.dataIPShortCut->rNumericArgs(7);
888 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
889 0 : CheckFFSchedule(state,
890 : cCurrentModuleObject,
891 : "Coal",
892 0 : state.dataIPShortCut->cAlphaFieldNames(8),
893 0 : state.dataIPShortCut->cAlphaArgs(8),
894 : Pollution.CoalCoef.SO2Sched,
895 : ErrorsFound);
896 : }
897 0 : Pollution.CoalCoef.PM = state.dataIPShortCut->rNumericArgs(8);
898 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
899 0 : CheckFFSchedule(state,
900 : cCurrentModuleObject,
901 : "Coal",
902 0 : state.dataIPShortCut->cAlphaFieldNames(9),
903 0 : state.dataIPShortCut->cAlphaArgs(9),
904 : Pollution.CoalCoef.PMSched,
905 : ErrorsFound);
906 : }
907 0 : Pollution.CoalCoef.PM10 = state.dataIPShortCut->rNumericArgs(9);
908 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
909 0 : CheckFFSchedule(state,
910 : cCurrentModuleObject,
911 : "Coal",
912 0 : state.dataIPShortCut->cAlphaFieldNames(10),
913 0 : state.dataIPShortCut->cAlphaArgs(10),
914 : Pollution.CoalCoef.PM10Sched,
915 : ErrorsFound);
916 : }
917 0 : Pollution.CoalCoef.PM25 = state.dataIPShortCut->rNumericArgs(10);
918 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
919 0 : CheckFFSchedule(state,
920 : cCurrentModuleObject,
921 : "Coal",
922 0 : state.dataIPShortCut->cAlphaFieldNames(11),
923 0 : state.dataIPShortCut->cAlphaArgs(11),
924 : Pollution.CoalCoef.PM25Sched,
925 : ErrorsFound);
926 : }
927 0 : Pollution.CoalCoef.NH3 = state.dataIPShortCut->rNumericArgs(11);
928 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
929 0 : CheckFFSchedule(state,
930 : cCurrentModuleObject,
931 : "Coal",
932 0 : state.dataIPShortCut->cAlphaFieldNames(12),
933 0 : state.dataIPShortCut->cAlphaArgs(12),
934 : Pollution.CoalCoef.NH3Sched,
935 : ErrorsFound);
936 : }
937 0 : Pollution.CoalCoef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
938 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
939 0 : CheckFFSchedule(state,
940 : cCurrentModuleObject,
941 : "Coal",
942 0 : state.dataIPShortCut->cAlphaFieldNames(13),
943 0 : state.dataIPShortCut->cAlphaArgs(13),
944 : Pollution.CoalCoef.NMVOCSched,
945 : ErrorsFound);
946 : }
947 0 : Pollution.CoalCoef.Hg = state.dataIPShortCut->rNumericArgs(13);
948 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
949 0 : CheckFFSchedule(state,
950 : cCurrentModuleObject,
951 : "Coal",
952 0 : state.dataIPShortCut->cAlphaFieldNames(14),
953 0 : state.dataIPShortCut->cAlphaArgs(14),
954 : Pollution.CoalCoef.HgSched,
955 : ErrorsFound);
956 : }
957 0 : Pollution.CoalCoef.Pb = state.dataIPShortCut->rNumericArgs(14);
958 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
959 0 : CheckFFSchedule(state,
960 : cCurrentModuleObject,
961 : "Coal",
962 0 : state.dataIPShortCut->cAlphaFieldNames(15),
963 0 : state.dataIPShortCut->cAlphaArgs(15),
964 : Pollution.CoalCoef.PbSched,
965 : ErrorsFound);
966 : }
967 0 : Pollution.CoalCoef.Water = state.dataIPShortCut->rNumericArgs(15);
968 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
969 0 : CheckFFSchedule(state,
970 : cCurrentModuleObject,
971 : "Coal",
972 0 : state.dataIPShortCut->cAlphaFieldNames(16),
973 0 : state.dataIPShortCut->cAlphaArgs(16),
974 : Pollution.CoalCoef.WaterSched,
975 : ErrorsFound);
976 : }
977 0 : Pollution.CoalCoef.NucHi = state.dataIPShortCut->rNumericArgs(16);
978 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
979 0 : CheckFFSchedule(state,
980 : cCurrentModuleObject,
981 : "Coal",
982 0 : state.dataIPShortCut->cAlphaFieldNames(17),
983 0 : state.dataIPShortCut->cAlphaArgs(17),
984 : Pollution.CoalCoef.NucHiSched,
985 : ErrorsFound);
986 : }
987 0 : Pollution.CoalCoef.NucLo = state.dataIPShortCut->rNumericArgs(17);
988 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
989 0 : CheckFFSchedule(state,
990 : cCurrentModuleObject,
991 : "Coal",
992 0 : state.dataIPShortCut->cAlphaFieldNames(18),
993 0 : state.dataIPShortCut->cAlphaArgs(18),
994 : Pollution.CoalCoef.NucLoSched,
995 : ErrorsFound);
996 : }
997 :
998 107 : } else if (SELECT_CASE_var == "ELECTRICITY") {
999 83 : if (Pollution.ElecCoef.FuelFactorUsed) {
1000 0 : ShowWarningError(state,
1001 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
1002 0 : continue;
1003 : }
1004 83 : Pollution.ElecCoef.FuelFactorUsed = true;
1005 : // Electric Coeffs
1006 83 : Pollution.ElecCoef.Source = state.dataIPShortCut->rNumericArgs(1);
1007 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
1008 2 : CheckFFSchedule(state,
1009 : cCurrentModuleObject,
1010 : "Electricity",
1011 1 : state.dataIPShortCut->cAlphaFieldNames(2),
1012 1 : state.dataIPShortCut->cAlphaArgs(2),
1013 : Pollution.ElecCoef.SourceSched,
1014 : ErrorsFound);
1015 : }
1016 83 : Pollution.ElecCoef.CO2 = state.dataIPShortCut->rNumericArgs(2);
1017 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
1018 0 : CheckFFSchedule(state,
1019 : cCurrentModuleObject,
1020 : "Electricity",
1021 0 : state.dataIPShortCut->cAlphaFieldNames(3),
1022 0 : state.dataIPShortCut->cAlphaArgs(3),
1023 : Pollution.ElecCoef.CO2Sched,
1024 : ErrorsFound);
1025 : }
1026 83 : Pollution.ElecCoef.CO = state.dataIPShortCut->rNumericArgs(3);
1027 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
1028 0 : CheckFFSchedule(state,
1029 : cCurrentModuleObject,
1030 : "Electricity",
1031 0 : state.dataIPShortCut->cAlphaFieldNames(4),
1032 0 : state.dataIPShortCut->cAlphaArgs(4),
1033 : Pollution.ElecCoef.COSched,
1034 : ErrorsFound);
1035 : }
1036 83 : Pollution.ElecCoef.CH4 = state.dataIPShortCut->rNumericArgs(4);
1037 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
1038 0 : CheckFFSchedule(state,
1039 : cCurrentModuleObject,
1040 : "Electricity",
1041 0 : state.dataIPShortCut->cAlphaFieldNames(5),
1042 0 : state.dataIPShortCut->cAlphaArgs(5),
1043 : Pollution.ElecCoef.CH4Sched,
1044 : ErrorsFound);
1045 : }
1046 83 : Pollution.ElecCoef.NOx = state.dataIPShortCut->rNumericArgs(5);
1047 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
1048 0 : CheckFFSchedule(state,
1049 : cCurrentModuleObject,
1050 : "Electricity",
1051 0 : state.dataIPShortCut->cAlphaFieldNames(6),
1052 0 : state.dataIPShortCut->cAlphaArgs(6),
1053 : Pollution.ElecCoef.NOxSched,
1054 : ErrorsFound);
1055 : }
1056 83 : Pollution.ElecCoef.N2O = state.dataIPShortCut->rNumericArgs(6);
1057 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
1058 0 : CheckFFSchedule(state,
1059 : cCurrentModuleObject,
1060 : "Electricity",
1061 0 : state.dataIPShortCut->cAlphaFieldNames(7),
1062 0 : state.dataIPShortCut->cAlphaArgs(7),
1063 : Pollution.ElecCoef.N2OSched,
1064 : ErrorsFound);
1065 : }
1066 83 : Pollution.ElecCoef.SO2 = state.dataIPShortCut->rNumericArgs(7);
1067 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
1068 0 : CheckFFSchedule(state,
1069 : cCurrentModuleObject,
1070 : "Electricity",
1071 0 : state.dataIPShortCut->cAlphaFieldNames(8),
1072 0 : state.dataIPShortCut->cAlphaArgs(8),
1073 : Pollution.ElecCoef.SO2Sched,
1074 : ErrorsFound);
1075 : }
1076 83 : Pollution.ElecCoef.PM = state.dataIPShortCut->rNumericArgs(8);
1077 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
1078 0 : CheckFFSchedule(state,
1079 : cCurrentModuleObject,
1080 : "Electricity",
1081 0 : state.dataIPShortCut->cAlphaFieldNames(9),
1082 0 : state.dataIPShortCut->cAlphaArgs(9),
1083 : Pollution.ElecCoef.PMSched,
1084 : ErrorsFound);
1085 : }
1086 83 : Pollution.ElecCoef.PM10 = state.dataIPShortCut->rNumericArgs(9);
1087 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
1088 0 : CheckFFSchedule(state,
1089 : cCurrentModuleObject,
1090 : "Electricity",
1091 0 : state.dataIPShortCut->cAlphaFieldNames(10),
1092 0 : state.dataIPShortCut->cAlphaArgs(10),
1093 : Pollution.ElecCoef.PM10Sched,
1094 : ErrorsFound);
1095 : }
1096 83 : Pollution.ElecCoef.PM25 = state.dataIPShortCut->rNumericArgs(10);
1097 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
1098 0 : CheckFFSchedule(state,
1099 : cCurrentModuleObject,
1100 : "Electricity",
1101 0 : state.dataIPShortCut->cAlphaFieldNames(11),
1102 0 : state.dataIPShortCut->cAlphaArgs(11),
1103 : Pollution.ElecCoef.PM25Sched,
1104 : ErrorsFound);
1105 : }
1106 83 : Pollution.ElecCoef.NH3 = state.dataIPShortCut->rNumericArgs(11);
1107 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
1108 0 : CheckFFSchedule(state,
1109 : cCurrentModuleObject,
1110 : "Electricity",
1111 0 : state.dataIPShortCut->cAlphaFieldNames(12),
1112 0 : state.dataIPShortCut->cAlphaArgs(12),
1113 : Pollution.ElecCoef.NH3Sched,
1114 : ErrorsFound);
1115 : }
1116 83 : Pollution.ElecCoef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
1117 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
1118 0 : CheckFFSchedule(state,
1119 : cCurrentModuleObject,
1120 : "Electricity",
1121 0 : state.dataIPShortCut->cAlphaFieldNames(13),
1122 0 : state.dataIPShortCut->cAlphaArgs(13),
1123 : Pollution.ElecCoef.NMVOCSched,
1124 : ErrorsFound);
1125 : }
1126 83 : Pollution.ElecCoef.Hg = state.dataIPShortCut->rNumericArgs(13);
1127 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
1128 0 : CheckFFSchedule(state,
1129 : cCurrentModuleObject,
1130 : "Electricity",
1131 0 : state.dataIPShortCut->cAlphaFieldNames(14),
1132 0 : state.dataIPShortCut->cAlphaArgs(14),
1133 : Pollution.ElecCoef.HgSched,
1134 : ErrorsFound);
1135 : }
1136 83 : Pollution.ElecCoef.Pb = state.dataIPShortCut->rNumericArgs(14);
1137 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
1138 0 : CheckFFSchedule(state,
1139 : cCurrentModuleObject,
1140 : "Electricity",
1141 0 : state.dataIPShortCut->cAlphaFieldNames(15),
1142 0 : state.dataIPShortCut->cAlphaArgs(15),
1143 : Pollution.ElecCoef.PbSched,
1144 : ErrorsFound);
1145 : }
1146 83 : Pollution.ElecCoef.Water = state.dataIPShortCut->rNumericArgs(15);
1147 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
1148 0 : CheckFFSchedule(state,
1149 : cCurrentModuleObject,
1150 : "Electricity",
1151 0 : state.dataIPShortCut->cAlphaFieldNames(16),
1152 0 : state.dataIPShortCut->cAlphaArgs(16),
1153 : Pollution.ElecCoef.WaterSched,
1154 : ErrorsFound);
1155 : }
1156 83 : Pollution.ElecCoef.NucHi = state.dataIPShortCut->rNumericArgs(16);
1157 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
1158 0 : CheckFFSchedule(state,
1159 : cCurrentModuleObject,
1160 : "Electricity",
1161 0 : state.dataIPShortCut->cAlphaFieldNames(17),
1162 0 : state.dataIPShortCut->cAlphaArgs(17),
1163 : Pollution.ElecCoef.NucHiSched,
1164 : ErrorsFound);
1165 : }
1166 83 : Pollution.ElecCoef.NucLo = state.dataIPShortCut->rNumericArgs(17);
1167 83 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
1168 0 : CheckFFSchedule(state,
1169 : cCurrentModuleObject,
1170 : "Electricity",
1171 0 : state.dataIPShortCut->cAlphaFieldNames(18),
1172 0 : state.dataIPShortCut->cAlphaArgs(18),
1173 : Pollution.ElecCoef.NucLoSched,
1174 : ErrorsFound);
1175 : }
1176 :
1177 24 : } else if (SELECT_CASE_var == "GASOLINE") {
1178 0 : if (Pollution.GasolineCoef.FuelFactorUsed) {
1179 0 : ShowWarningError(state,
1180 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
1181 0 : continue;
1182 : }
1183 0 : Pollution.GasolineCoef.FuelFactorUsed = true;
1184 : // Gasoline Coeffs
1185 0 : Pollution.GasolineCoef.Source = state.dataIPShortCut->rNumericArgs(1);
1186 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
1187 0 : CheckFFSchedule(state,
1188 : cCurrentModuleObject,
1189 : "Gasoline",
1190 0 : state.dataIPShortCut->cAlphaFieldNames(2),
1191 0 : state.dataIPShortCut->cAlphaArgs(2),
1192 : Pollution.GasolineCoef.SourceSched,
1193 : ErrorsFound);
1194 : }
1195 0 : Pollution.GasolineCoef.CO2 = state.dataIPShortCut->rNumericArgs(2);
1196 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
1197 0 : CheckFFSchedule(state,
1198 : cCurrentModuleObject,
1199 : "Gasoline",
1200 0 : state.dataIPShortCut->cAlphaFieldNames(3),
1201 0 : state.dataIPShortCut->cAlphaArgs(3),
1202 : Pollution.GasolineCoef.CO2Sched,
1203 : ErrorsFound);
1204 : }
1205 0 : Pollution.GasolineCoef.CO = state.dataIPShortCut->rNumericArgs(3);
1206 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
1207 0 : CheckFFSchedule(state,
1208 : cCurrentModuleObject,
1209 : "Gasoline",
1210 0 : state.dataIPShortCut->cAlphaFieldNames(4),
1211 0 : state.dataIPShortCut->cAlphaArgs(4),
1212 : Pollution.GasolineCoef.COSched,
1213 : ErrorsFound);
1214 : }
1215 0 : Pollution.GasolineCoef.CH4 = state.dataIPShortCut->rNumericArgs(4);
1216 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
1217 0 : CheckFFSchedule(state,
1218 : cCurrentModuleObject,
1219 : "Gasoline",
1220 0 : state.dataIPShortCut->cAlphaFieldNames(5),
1221 0 : state.dataIPShortCut->cAlphaArgs(5),
1222 : Pollution.GasolineCoef.CH4Sched,
1223 : ErrorsFound);
1224 : }
1225 0 : Pollution.GasolineCoef.NOx = state.dataIPShortCut->rNumericArgs(5);
1226 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
1227 0 : CheckFFSchedule(state,
1228 : cCurrentModuleObject,
1229 : "Gasoline",
1230 0 : state.dataIPShortCut->cAlphaFieldNames(6),
1231 0 : state.dataIPShortCut->cAlphaArgs(6),
1232 : Pollution.GasolineCoef.NOxSched,
1233 : ErrorsFound);
1234 : }
1235 0 : Pollution.GasolineCoef.N2O = state.dataIPShortCut->rNumericArgs(6);
1236 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
1237 0 : CheckFFSchedule(state,
1238 : cCurrentModuleObject,
1239 : "Gasoline",
1240 0 : state.dataIPShortCut->cAlphaFieldNames(7),
1241 0 : state.dataIPShortCut->cAlphaArgs(7),
1242 : Pollution.GasolineCoef.N2OSched,
1243 : ErrorsFound);
1244 : }
1245 0 : Pollution.GasolineCoef.SO2 = state.dataIPShortCut->rNumericArgs(7);
1246 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
1247 0 : CheckFFSchedule(state,
1248 : cCurrentModuleObject,
1249 : "Gasoline",
1250 0 : state.dataIPShortCut->cAlphaFieldNames(8),
1251 0 : state.dataIPShortCut->cAlphaArgs(8),
1252 : Pollution.GasolineCoef.SO2Sched,
1253 : ErrorsFound);
1254 : }
1255 0 : Pollution.GasolineCoef.PM = state.dataIPShortCut->rNumericArgs(8);
1256 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
1257 0 : CheckFFSchedule(state,
1258 : cCurrentModuleObject,
1259 : "Gasoline",
1260 0 : state.dataIPShortCut->cAlphaFieldNames(9),
1261 0 : state.dataIPShortCut->cAlphaArgs(9),
1262 : Pollution.GasolineCoef.PMSched,
1263 : ErrorsFound);
1264 : }
1265 0 : Pollution.GasolineCoef.PM10 = state.dataIPShortCut->rNumericArgs(9);
1266 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
1267 0 : CheckFFSchedule(state,
1268 : cCurrentModuleObject,
1269 : "Gasoline",
1270 0 : state.dataIPShortCut->cAlphaFieldNames(10),
1271 0 : state.dataIPShortCut->cAlphaArgs(10),
1272 : Pollution.GasolineCoef.PM10Sched,
1273 : ErrorsFound);
1274 : }
1275 0 : Pollution.GasolineCoef.PM25 = state.dataIPShortCut->rNumericArgs(10);
1276 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
1277 0 : CheckFFSchedule(state,
1278 : cCurrentModuleObject,
1279 : "Gasoline",
1280 0 : state.dataIPShortCut->cAlphaFieldNames(11),
1281 0 : state.dataIPShortCut->cAlphaArgs(11),
1282 : Pollution.GasolineCoef.PM25Sched,
1283 : ErrorsFound);
1284 : }
1285 0 : Pollution.GasolineCoef.NH3 = state.dataIPShortCut->rNumericArgs(11);
1286 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
1287 0 : CheckFFSchedule(state,
1288 : cCurrentModuleObject,
1289 : "Gasoline",
1290 0 : state.dataIPShortCut->cAlphaFieldNames(12),
1291 0 : state.dataIPShortCut->cAlphaArgs(12),
1292 : Pollution.GasolineCoef.NH3Sched,
1293 : ErrorsFound);
1294 : }
1295 0 : Pollution.GasolineCoef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
1296 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
1297 0 : CheckFFSchedule(state,
1298 : cCurrentModuleObject,
1299 : "Gasoline",
1300 0 : state.dataIPShortCut->cAlphaFieldNames(13),
1301 0 : state.dataIPShortCut->cAlphaArgs(13),
1302 : Pollution.GasolineCoef.NMVOCSched,
1303 : ErrorsFound);
1304 : }
1305 0 : Pollution.GasolineCoef.Hg = state.dataIPShortCut->rNumericArgs(13);
1306 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
1307 0 : CheckFFSchedule(state,
1308 : cCurrentModuleObject,
1309 : "Gasoline",
1310 0 : state.dataIPShortCut->cAlphaFieldNames(14),
1311 0 : state.dataIPShortCut->cAlphaArgs(14),
1312 : Pollution.GasolineCoef.HgSched,
1313 : ErrorsFound);
1314 : }
1315 0 : Pollution.GasolineCoef.Pb = state.dataIPShortCut->rNumericArgs(14);
1316 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
1317 0 : CheckFFSchedule(state,
1318 : cCurrentModuleObject,
1319 : "Gasoline",
1320 0 : state.dataIPShortCut->cAlphaFieldNames(15),
1321 0 : state.dataIPShortCut->cAlphaArgs(15),
1322 : Pollution.GasolineCoef.PbSched,
1323 : ErrorsFound);
1324 : }
1325 0 : Pollution.GasolineCoef.Water = state.dataIPShortCut->rNumericArgs(15);
1326 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
1327 0 : CheckFFSchedule(state,
1328 : cCurrentModuleObject,
1329 : "Gasoline",
1330 0 : state.dataIPShortCut->cAlphaFieldNames(16),
1331 0 : state.dataIPShortCut->cAlphaArgs(16),
1332 : Pollution.GasolineCoef.WaterSched,
1333 : ErrorsFound);
1334 : }
1335 0 : Pollution.GasolineCoef.NucHi = state.dataIPShortCut->rNumericArgs(16);
1336 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
1337 0 : CheckFFSchedule(state,
1338 : cCurrentModuleObject,
1339 : "Gasoline",
1340 0 : state.dataIPShortCut->cAlphaFieldNames(17),
1341 0 : state.dataIPShortCut->cAlphaArgs(17),
1342 : Pollution.GasolineCoef.NucHiSched,
1343 : ErrorsFound);
1344 : }
1345 0 : Pollution.GasolineCoef.NucLo = state.dataIPShortCut->rNumericArgs(17);
1346 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
1347 0 : CheckFFSchedule(state,
1348 : cCurrentModuleObject,
1349 : "Gasoline",
1350 0 : state.dataIPShortCut->cAlphaFieldNames(18),
1351 0 : state.dataIPShortCut->cAlphaArgs(18),
1352 : Pollution.GasolineCoef.NucLoSched,
1353 : ErrorsFound);
1354 : }
1355 :
1356 24 : } else if (SELECT_CASE_var == "PROPANE") {
1357 21 : if (Pollution.PropaneCoef.FuelFactorUsed) {
1358 0 : ShowWarningError(state,
1359 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
1360 0 : continue;
1361 : }
1362 21 : Pollution.PropaneCoef.FuelFactorUsed = true;
1363 : // Propane Coeffs
1364 21 : Pollution.PropaneCoef.Source = state.dataIPShortCut->rNumericArgs(1);
1365 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
1366 0 : CheckFFSchedule(state,
1367 : cCurrentModuleObject,
1368 : "Propane",
1369 0 : state.dataIPShortCut->cAlphaFieldNames(2),
1370 0 : state.dataIPShortCut->cAlphaArgs(2),
1371 : Pollution.PropaneCoef.SourceSched,
1372 : ErrorsFound);
1373 : }
1374 21 : Pollution.PropaneCoef.CO2 = state.dataIPShortCut->rNumericArgs(2);
1375 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
1376 0 : CheckFFSchedule(state,
1377 : cCurrentModuleObject,
1378 : "Propane",
1379 0 : state.dataIPShortCut->cAlphaFieldNames(3),
1380 0 : state.dataIPShortCut->cAlphaArgs(3),
1381 : Pollution.PropaneCoef.CO2Sched,
1382 : ErrorsFound);
1383 : }
1384 21 : Pollution.PropaneCoef.CO = state.dataIPShortCut->rNumericArgs(3);
1385 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
1386 0 : CheckFFSchedule(state,
1387 : cCurrentModuleObject,
1388 : "Propane",
1389 0 : state.dataIPShortCut->cAlphaFieldNames(4),
1390 0 : state.dataIPShortCut->cAlphaArgs(4),
1391 : Pollution.PropaneCoef.COSched,
1392 : ErrorsFound);
1393 : }
1394 21 : Pollution.PropaneCoef.CH4 = state.dataIPShortCut->rNumericArgs(4);
1395 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
1396 0 : CheckFFSchedule(state,
1397 : cCurrentModuleObject,
1398 : "Propane",
1399 0 : state.dataIPShortCut->cAlphaFieldNames(5),
1400 0 : state.dataIPShortCut->cAlphaArgs(5),
1401 : Pollution.PropaneCoef.CH4Sched,
1402 : ErrorsFound);
1403 : }
1404 21 : Pollution.PropaneCoef.NOx = state.dataIPShortCut->rNumericArgs(5);
1405 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
1406 0 : CheckFFSchedule(state,
1407 : cCurrentModuleObject,
1408 : "Propane",
1409 0 : state.dataIPShortCut->cAlphaFieldNames(6),
1410 0 : state.dataIPShortCut->cAlphaArgs(6),
1411 : Pollution.PropaneCoef.NOxSched,
1412 : ErrorsFound);
1413 : }
1414 21 : Pollution.PropaneCoef.N2O = state.dataIPShortCut->rNumericArgs(6);
1415 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
1416 0 : CheckFFSchedule(state,
1417 : cCurrentModuleObject,
1418 : "Propane",
1419 0 : state.dataIPShortCut->cAlphaFieldNames(7),
1420 0 : state.dataIPShortCut->cAlphaArgs(7),
1421 : Pollution.PropaneCoef.N2OSched,
1422 : ErrorsFound);
1423 : }
1424 21 : Pollution.PropaneCoef.SO2 = state.dataIPShortCut->rNumericArgs(7);
1425 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
1426 0 : CheckFFSchedule(state,
1427 : cCurrentModuleObject,
1428 : "Propane",
1429 0 : state.dataIPShortCut->cAlphaFieldNames(8),
1430 0 : state.dataIPShortCut->cAlphaArgs(8),
1431 : Pollution.PropaneCoef.SO2Sched,
1432 : ErrorsFound);
1433 : }
1434 21 : Pollution.PropaneCoef.PM = state.dataIPShortCut->rNumericArgs(8);
1435 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
1436 0 : CheckFFSchedule(state,
1437 : cCurrentModuleObject,
1438 : "Propane",
1439 0 : state.dataIPShortCut->cAlphaFieldNames(9),
1440 0 : state.dataIPShortCut->cAlphaArgs(9),
1441 : Pollution.PropaneCoef.PMSched,
1442 : ErrorsFound);
1443 : }
1444 21 : Pollution.PropaneCoef.PM10 = state.dataIPShortCut->rNumericArgs(9);
1445 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
1446 0 : CheckFFSchedule(state,
1447 : cCurrentModuleObject,
1448 : "Propane",
1449 0 : state.dataIPShortCut->cAlphaFieldNames(10),
1450 0 : state.dataIPShortCut->cAlphaArgs(10),
1451 : Pollution.PropaneCoef.PM10Sched,
1452 : ErrorsFound);
1453 : }
1454 21 : Pollution.PropaneCoef.PM25 = state.dataIPShortCut->rNumericArgs(10);
1455 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
1456 0 : CheckFFSchedule(state,
1457 : cCurrentModuleObject,
1458 : "Propane",
1459 0 : state.dataIPShortCut->cAlphaFieldNames(11),
1460 0 : state.dataIPShortCut->cAlphaArgs(11),
1461 : Pollution.PropaneCoef.PM25Sched,
1462 : ErrorsFound);
1463 : }
1464 21 : Pollution.PropaneCoef.NH3 = state.dataIPShortCut->rNumericArgs(11);
1465 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
1466 0 : CheckFFSchedule(state,
1467 : cCurrentModuleObject,
1468 : "Propane",
1469 0 : state.dataIPShortCut->cAlphaFieldNames(12),
1470 0 : state.dataIPShortCut->cAlphaArgs(12),
1471 : Pollution.PropaneCoef.NH3Sched,
1472 : ErrorsFound);
1473 : }
1474 21 : Pollution.PropaneCoef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
1475 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
1476 0 : CheckFFSchedule(state,
1477 : cCurrentModuleObject,
1478 : "Propane",
1479 0 : state.dataIPShortCut->cAlphaFieldNames(13),
1480 0 : state.dataIPShortCut->cAlphaArgs(13),
1481 : Pollution.PropaneCoef.NMVOCSched,
1482 : ErrorsFound);
1483 : }
1484 21 : Pollution.PropaneCoef.Hg = state.dataIPShortCut->rNumericArgs(13);
1485 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
1486 0 : CheckFFSchedule(state,
1487 : cCurrentModuleObject,
1488 : "Propane",
1489 0 : state.dataIPShortCut->cAlphaFieldNames(14),
1490 0 : state.dataIPShortCut->cAlphaArgs(14),
1491 : Pollution.PropaneCoef.HgSched,
1492 : ErrorsFound);
1493 : }
1494 21 : Pollution.PropaneCoef.Pb = state.dataIPShortCut->rNumericArgs(14);
1495 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
1496 0 : CheckFFSchedule(state,
1497 : cCurrentModuleObject,
1498 : "Propane",
1499 0 : state.dataIPShortCut->cAlphaFieldNames(15),
1500 0 : state.dataIPShortCut->cAlphaArgs(15),
1501 : Pollution.PropaneCoef.PbSched,
1502 : ErrorsFound);
1503 : }
1504 21 : Pollution.PropaneCoef.Water = state.dataIPShortCut->rNumericArgs(15);
1505 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
1506 0 : CheckFFSchedule(state,
1507 : cCurrentModuleObject,
1508 : "Propane",
1509 0 : state.dataIPShortCut->cAlphaFieldNames(16),
1510 0 : state.dataIPShortCut->cAlphaArgs(16),
1511 : Pollution.PropaneCoef.WaterSched,
1512 : ErrorsFound);
1513 : }
1514 21 : Pollution.PropaneCoef.NucHi = state.dataIPShortCut->rNumericArgs(16);
1515 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
1516 0 : CheckFFSchedule(state,
1517 : cCurrentModuleObject,
1518 : "Propane",
1519 0 : state.dataIPShortCut->cAlphaFieldNames(17),
1520 0 : state.dataIPShortCut->cAlphaArgs(17),
1521 : Pollution.PropaneCoef.NucHiSched,
1522 : ErrorsFound);
1523 : }
1524 21 : Pollution.PropaneCoef.NucLo = state.dataIPShortCut->rNumericArgs(17);
1525 21 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
1526 0 : CheckFFSchedule(state,
1527 : cCurrentModuleObject,
1528 : "Propane",
1529 0 : state.dataIPShortCut->cAlphaFieldNames(18),
1530 0 : state.dataIPShortCut->cAlphaArgs(18),
1531 : Pollution.PropaneCoef.NucLoSched,
1532 : ErrorsFound);
1533 : }
1534 :
1535 3 : } else if (SELECT_CASE_var == "DIESEL") {
1536 2 : if (Pollution.DieselCoef.FuelFactorUsed) {
1537 0 : ShowWarningError(state,
1538 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
1539 0 : continue;
1540 : }
1541 2 : Pollution.DieselCoef.FuelFactorUsed = true;
1542 : // Diesel Coeffs
1543 2 : Pollution.DieselCoef.Source = state.dataIPShortCut->rNumericArgs(1);
1544 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
1545 0 : CheckFFSchedule(state,
1546 : cCurrentModuleObject,
1547 : "Diesel",
1548 0 : state.dataIPShortCut->cAlphaFieldNames(2),
1549 0 : state.dataIPShortCut->cAlphaArgs(2),
1550 : Pollution.DieselCoef.SourceSched,
1551 : ErrorsFound);
1552 : }
1553 2 : Pollution.DieselCoef.CO2 = state.dataIPShortCut->rNumericArgs(2);
1554 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
1555 0 : CheckFFSchedule(state,
1556 : cCurrentModuleObject,
1557 : "Diesel",
1558 0 : state.dataIPShortCut->cAlphaFieldNames(3),
1559 0 : state.dataIPShortCut->cAlphaArgs(3),
1560 : Pollution.DieselCoef.CO2Sched,
1561 : ErrorsFound);
1562 : }
1563 2 : Pollution.DieselCoef.CO = state.dataIPShortCut->rNumericArgs(3);
1564 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
1565 0 : CheckFFSchedule(state,
1566 : cCurrentModuleObject,
1567 : "Diesel",
1568 0 : state.dataIPShortCut->cAlphaFieldNames(4),
1569 0 : state.dataIPShortCut->cAlphaArgs(4),
1570 : Pollution.DieselCoef.COSched,
1571 : ErrorsFound);
1572 : }
1573 2 : Pollution.DieselCoef.CH4 = state.dataIPShortCut->rNumericArgs(4);
1574 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
1575 0 : CheckFFSchedule(state,
1576 : cCurrentModuleObject,
1577 : "Diesel",
1578 0 : state.dataIPShortCut->cAlphaFieldNames(5),
1579 0 : state.dataIPShortCut->cAlphaArgs(5),
1580 : Pollution.DieselCoef.CH4Sched,
1581 : ErrorsFound);
1582 : }
1583 2 : Pollution.DieselCoef.NOx = state.dataIPShortCut->rNumericArgs(5);
1584 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
1585 0 : CheckFFSchedule(state,
1586 : cCurrentModuleObject,
1587 : "Diesel",
1588 0 : state.dataIPShortCut->cAlphaFieldNames(6),
1589 0 : state.dataIPShortCut->cAlphaArgs(6),
1590 : Pollution.DieselCoef.NOxSched,
1591 : ErrorsFound);
1592 : }
1593 2 : Pollution.DieselCoef.N2O = state.dataIPShortCut->rNumericArgs(6);
1594 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
1595 0 : CheckFFSchedule(state,
1596 : cCurrentModuleObject,
1597 : "Diesel",
1598 0 : state.dataIPShortCut->cAlphaFieldNames(7),
1599 0 : state.dataIPShortCut->cAlphaArgs(7),
1600 : Pollution.DieselCoef.N2OSched,
1601 : ErrorsFound);
1602 : }
1603 2 : Pollution.DieselCoef.SO2 = state.dataIPShortCut->rNumericArgs(7);
1604 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
1605 0 : CheckFFSchedule(state,
1606 : cCurrentModuleObject,
1607 : "Diesel",
1608 0 : state.dataIPShortCut->cAlphaFieldNames(8),
1609 0 : state.dataIPShortCut->cAlphaArgs(8),
1610 : Pollution.DieselCoef.SO2Sched,
1611 : ErrorsFound);
1612 : }
1613 2 : Pollution.DieselCoef.PM = state.dataIPShortCut->rNumericArgs(8);
1614 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
1615 0 : CheckFFSchedule(state,
1616 : cCurrentModuleObject,
1617 : "Diesel",
1618 0 : state.dataIPShortCut->cAlphaFieldNames(9),
1619 0 : state.dataIPShortCut->cAlphaArgs(9),
1620 : Pollution.DieselCoef.PMSched,
1621 : ErrorsFound);
1622 : }
1623 2 : Pollution.DieselCoef.PM10 = state.dataIPShortCut->rNumericArgs(9);
1624 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
1625 0 : CheckFFSchedule(state,
1626 : cCurrentModuleObject,
1627 : "Diesel",
1628 0 : state.dataIPShortCut->cAlphaFieldNames(10),
1629 0 : state.dataIPShortCut->cAlphaArgs(10),
1630 : Pollution.DieselCoef.PM10Sched,
1631 : ErrorsFound);
1632 : }
1633 2 : Pollution.DieselCoef.PM25 = state.dataIPShortCut->rNumericArgs(10);
1634 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
1635 0 : CheckFFSchedule(state,
1636 : cCurrentModuleObject,
1637 : "Diesel",
1638 0 : state.dataIPShortCut->cAlphaFieldNames(11),
1639 0 : state.dataIPShortCut->cAlphaArgs(11),
1640 : Pollution.DieselCoef.PM25Sched,
1641 : ErrorsFound);
1642 : }
1643 2 : Pollution.DieselCoef.NH3 = state.dataIPShortCut->rNumericArgs(11);
1644 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
1645 0 : CheckFFSchedule(state,
1646 : cCurrentModuleObject,
1647 : "Diesel",
1648 0 : state.dataIPShortCut->cAlphaFieldNames(12),
1649 0 : state.dataIPShortCut->cAlphaArgs(12),
1650 : Pollution.DieselCoef.NH3Sched,
1651 : ErrorsFound);
1652 : }
1653 2 : Pollution.DieselCoef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
1654 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
1655 0 : CheckFFSchedule(state,
1656 : cCurrentModuleObject,
1657 : "Diesel",
1658 0 : state.dataIPShortCut->cAlphaFieldNames(13),
1659 0 : state.dataIPShortCut->cAlphaArgs(13),
1660 : Pollution.DieselCoef.NMVOCSched,
1661 : ErrorsFound);
1662 : }
1663 2 : Pollution.DieselCoef.Hg = state.dataIPShortCut->rNumericArgs(13);
1664 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
1665 0 : CheckFFSchedule(state,
1666 : cCurrentModuleObject,
1667 : "Diesel",
1668 0 : state.dataIPShortCut->cAlphaFieldNames(14),
1669 0 : state.dataIPShortCut->cAlphaArgs(14),
1670 : Pollution.DieselCoef.HgSched,
1671 : ErrorsFound);
1672 : }
1673 2 : Pollution.DieselCoef.Pb = state.dataIPShortCut->rNumericArgs(14);
1674 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
1675 0 : CheckFFSchedule(state,
1676 : cCurrentModuleObject,
1677 : "Diesel",
1678 0 : state.dataIPShortCut->cAlphaFieldNames(15),
1679 0 : state.dataIPShortCut->cAlphaArgs(15),
1680 : Pollution.DieselCoef.PbSched,
1681 : ErrorsFound);
1682 : }
1683 2 : Pollution.DieselCoef.Water = state.dataIPShortCut->rNumericArgs(15);
1684 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
1685 0 : CheckFFSchedule(state,
1686 : cCurrentModuleObject,
1687 : "Diesel",
1688 0 : state.dataIPShortCut->cAlphaFieldNames(16),
1689 0 : state.dataIPShortCut->cAlphaArgs(16),
1690 : Pollution.DieselCoef.WaterSched,
1691 : ErrorsFound);
1692 : }
1693 2 : Pollution.DieselCoef.NucHi = state.dataIPShortCut->rNumericArgs(16);
1694 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
1695 0 : CheckFFSchedule(state,
1696 : cCurrentModuleObject,
1697 : "Diesel",
1698 0 : state.dataIPShortCut->cAlphaFieldNames(17),
1699 0 : state.dataIPShortCut->cAlphaArgs(17),
1700 : Pollution.DieselCoef.NucHiSched,
1701 : ErrorsFound);
1702 : }
1703 2 : Pollution.DieselCoef.NucLo = state.dataIPShortCut->rNumericArgs(17);
1704 2 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
1705 0 : CheckFFSchedule(state,
1706 : cCurrentModuleObject,
1707 : "Diesel",
1708 0 : state.dataIPShortCut->cAlphaFieldNames(18),
1709 0 : state.dataIPShortCut->cAlphaArgs(18),
1710 : Pollution.DieselCoef.NucLoSched,
1711 : ErrorsFound);
1712 : }
1713 :
1714 1 : } else if (SELECT_CASE_var == "OTHERFUEL1") {
1715 1 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
1716 0 : ShowWarningError(state,
1717 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
1718 0 : continue;
1719 : }
1720 1 : Pollution.OtherFuel1Coef.FuelFactorUsed = true;
1721 : // OtherFuel1 Coeffs
1722 1 : Pollution.OtherFuel1Coef.Source = state.dataIPShortCut->rNumericArgs(1);
1723 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
1724 0 : CheckFFSchedule(state,
1725 : cCurrentModuleObject,
1726 : "OtherFuel1",
1727 0 : state.dataIPShortCut->cAlphaFieldNames(2),
1728 0 : state.dataIPShortCut->cAlphaArgs(2),
1729 : Pollution.OtherFuel1Coef.SourceSched,
1730 : ErrorsFound);
1731 : }
1732 1 : Pollution.OtherFuel1Coef.CO2 = state.dataIPShortCut->rNumericArgs(2);
1733 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
1734 0 : CheckFFSchedule(state,
1735 : cCurrentModuleObject,
1736 : "OtherFuel1",
1737 0 : state.dataIPShortCut->cAlphaFieldNames(3),
1738 0 : state.dataIPShortCut->cAlphaArgs(3),
1739 : Pollution.OtherFuel1Coef.CO2Sched,
1740 : ErrorsFound);
1741 : }
1742 1 : Pollution.OtherFuel1Coef.CO = state.dataIPShortCut->rNumericArgs(3);
1743 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
1744 0 : CheckFFSchedule(state,
1745 : cCurrentModuleObject,
1746 : "OtherFuel1",
1747 0 : state.dataIPShortCut->cAlphaFieldNames(4),
1748 0 : state.dataIPShortCut->cAlphaArgs(4),
1749 : Pollution.OtherFuel1Coef.COSched,
1750 : ErrorsFound);
1751 : }
1752 1 : Pollution.OtherFuel1Coef.CH4 = state.dataIPShortCut->rNumericArgs(4);
1753 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
1754 0 : CheckFFSchedule(state,
1755 : cCurrentModuleObject,
1756 : "OtherFuel1",
1757 0 : state.dataIPShortCut->cAlphaFieldNames(5),
1758 0 : state.dataIPShortCut->cAlphaArgs(5),
1759 : Pollution.OtherFuel1Coef.CH4Sched,
1760 : ErrorsFound);
1761 : }
1762 1 : Pollution.OtherFuel1Coef.NOx = state.dataIPShortCut->rNumericArgs(5);
1763 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
1764 0 : CheckFFSchedule(state,
1765 : cCurrentModuleObject,
1766 : "OtherFuel1",
1767 0 : state.dataIPShortCut->cAlphaFieldNames(6),
1768 0 : state.dataIPShortCut->cAlphaArgs(6),
1769 : Pollution.OtherFuel1Coef.NOxSched,
1770 : ErrorsFound);
1771 : }
1772 1 : Pollution.OtherFuel1Coef.N2O = state.dataIPShortCut->rNumericArgs(6);
1773 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
1774 0 : CheckFFSchedule(state,
1775 : cCurrentModuleObject,
1776 : "OtherFuel1",
1777 0 : state.dataIPShortCut->cAlphaFieldNames(7),
1778 0 : state.dataIPShortCut->cAlphaArgs(7),
1779 : Pollution.OtherFuel1Coef.N2OSched,
1780 : ErrorsFound);
1781 : }
1782 1 : Pollution.OtherFuel1Coef.SO2 = state.dataIPShortCut->rNumericArgs(7);
1783 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
1784 0 : CheckFFSchedule(state,
1785 : cCurrentModuleObject,
1786 : "OtherFuel1",
1787 0 : state.dataIPShortCut->cAlphaFieldNames(8),
1788 0 : state.dataIPShortCut->cAlphaArgs(8),
1789 : Pollution.OtherFuel1Coef.SO2Sched,
1790 : ErrorsFound);
1791 : }
1792 1 : Pollution.OtherFuel1Coef.PM = state.dataIPShortCut->rNumericArgs(8);
1793 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
1794 0 : CheckFFSchedule(state,
1795 : cCurrentModuleObject,
1796 : "OtherFuel1",
1797 0 : state.dataIPShortCut->cAlphaFieldNames(9),
1798 0 : state.dataIPShortCut->cAlphaArgs(9),
1799 : Pollution.OtherFuel1Coef.PMSched,
1800 : ErrorsFound);
1801 : }
1802 1 : Pollution.OtherFuel1Coef.PM10 = state.dataIPShortCut->rNumericArgs(9);
1803 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
1804 0 : CheckFFSchedule(state,
1805 : cCurrentModuleObject,
1806 : "OtherFuel1",
1807 0 : state.dataIPShortCut->cAlphaFieldNames(10),
1808 0 : state.dataIPShortCut->cAlphaArgs(10),
1809 : Pollution.OtherFuel1Coef.PM10Sched,
1810 : ErrorsFound);
1811 : }
1812 1 : Pollution.OtherFuel1Coef.PM25 = state.dataIPShortCut->rNumericArgs(10);
1813 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
1814 0 : CheckFFSchedule(state,
1815 : cCurrentModuleObject,
1816 : "OtherFuel1",
1817 0 : state.dataIPShortCut->cAlphaFieldNames(11),
1818 0 : state.dataIPShortCut->cAlphaArgs(11),
1819 : Pollution.OtherFuel1Coef.PM25Sched,
1820 : ErrorsFound);
1821 : }
1822 1 : Pollution.OtherFuel1Coef.NH3 = state.dataIPShortCut->rNumericArgs(11);
1823 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
1824 0 : CheckFFSchedule(state,
1825 : cCurrentModuleObject,
1826 : "OtherFuel1",
1827 0 : state.dataIPShortCut->cAlphaFieldNames(12),
1828 0 : state.dataIPShortCut->cAlphaArgs(12),
1829 : Pollution.OtherFuel1Coef.NH3Sched,
1830 : ErrorsFound);
1831 : }
1832 1 : Pollution.OtherFuel1Coef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
1833 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
1834 0 : CheckFFSchedule(state,
1835 : cCurrentModuleObject,
1836 : "OtherFuel1",
1837 0 : state.dataIPShortCut->cAlphaFieldNames(13),
1838 0 : state.dataIPShortCut->cAlphaArgs(13),
1839 : Pollution.OtherFuel1Coef.NMVOCSched,
1840 : ErrorsFound);
1841 : }
1842 1 : Pollution.OtherFuel1Coef.Hg = state.dataIPShortCut->rNumericArgs(13);
1843 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
1844 0 : CheckFFSchedule(state,
1845 : cCurrentModuleObject,
1846 : "OtherFuel1",
1847 0 : state.dataIPShortCut->cAlphaFieldNames(14),
1848 0 : state.dataIPShortCut->cAlphaArgs(14),
1849 : Pollution.OtherFuel1Coef.HgSched,
1850 : ErrorsFound);
1851 : }
1852 1 : Pollution.OtherFuel1Coef.Pb = state.dataIPShortCut->rNumericArgs(14);
1853 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
1854 0 : CheckFFSchedule(state,
1855 : cCurrentModuleObject,
1856 : "OtherFuel1",
1857 0 : state.dataIPShortCut->cAlphaFieldNames(15),
1858 0 : state.dataIPShortCut->cAlphaArgs(15),
1859 : Pollution.OtherFuel1Coef.PbSched,
1860 : ErrorsFound);
1861 : }
1862 1 : Pollution.OtherFuel1Coef.Water = state.dataIPShortCut->rNumericArgs(15);
1863 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
1864 0 : CheckFFSchedule(state,
1865 : cCurrentModuleObject,
1866 : "OtherFuel1",
1867 0 : state.dataIPShortCut->cAlphaFieldNames(16),
1868 0 : state.dataIPShortCut->cAlphaArgs(16),
1869 : Pollution.OtherFuel1Coef.WaterSched,
1870 : ErrorsFound);
1871 : }
1872 1 : Pollution.OtherFuel1Coef.NucHi = state.dataIPShortCut->rNumericArgs(16);
1873 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
1874 0 : CheckFFSchedule(state,
1875 : cCurrentModuleObject,
1876 : "OtherFuel1",
1877 0 : state.dataIPShortCut->cAlphaFieldNames(17),
1878 0 : state.dataIPShortCut->cAlphaArgs(17),
1879 : Pollution.OtherFuel1Coef.NucHiSched,
1880 : ErrorsFound);
1881 : }
1882 1 : Pollution.OtherFuel1Coef.NucLo = state.dataIPShortCut->rNumericArgs(17);
1883 1 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
1884 0 : CheckFFSchedule(state,
1885 : cCurrentModuleObject,
1886 : "OtherFuel1",
1887 0 : state.dataIPShortCut->cAlphaFieldNames(18),
1888 0 : state.dataIPShortCut->cAlphaArgs(18),
1889 : Pollution.OtherFuel1Coef.NucLoSched,
1890 : ErrorsFound);
1891 : }
1892 :
1893 0 : } else if (SELECT_CASE_var == "OTHERFUEL2") {
1894 0 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
1895 0 : ShowWarningError(state,
1896 0 : cCurrentModuleObject + ": " + FuelType.FuelTypeNames(Loop) + " already entered. Previous entry will be used.");
1897 0 : continue;
1898 : }
1899 0 : Pollution.OtherFuel2Coef.FuelFactorUsed = true;
1900 : // OtherFuel2 Coeffs
1901 0 : Pollution.OtherFuel2Coef.Source = state.dataIPShortCut->rNumericArgs(1);
1902 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(2)) {
1903 0 : CheckFFSchedule(state,
1904 : cCurrentModuleObject,
1905 : "OtherFuel2",
1906 0 : state.dataIPShortCut->cAlphaFieldNames(2),
1907 0 : state.dataIPShortCut->cAlphaArgs(2),
1908 : Pollution.OtherFuel2Coef.SourceSched,
1909 : ErrorsFound);
1910 : }
1911 0 : Pollution.OtherFuel2Coef.CO2 = state.dataIPShortCut->rNumericArgs(2);
1912 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(3)) {
1913 0 : CheckFFSchedule(state,
1914 : cCurrentModuleObject,
1915 : "OtherFuel2",
1916 0 : state.dataIPShortCut->cAlphaFieldNames(3),
1917 0 : state.dataIPShortCut->cAlphaArgs(3),
1918 : Pollution.OtherFuel2Coef.CO2Sched,
1919 : ErrorsFound);
1920 : }
1921 0 : Pollution.OtherFuel2Coef.CO = state.dataIPShortCut->rNumericArgs(3);
1922 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(4)) {
1923 0 : CheckFFSchedule(state,
1924 : cCurrentModuleObject,
1925 : "OtherFuel2",
1926 0 : state.dataIPShortCut->cAlphaFieldNames(4),
1927 0 : state.dataIPShortCut->cAlphaArgs(4),
1928 : Pollution.OtherFuel2Coef.COSched,
1929 : ErrorsFound);
1930 : }
1931 0 : Pollution.OtherFuel2Coef.CH4 = state.dataIPShortCut->rNumericArgs(4);
1932 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(5)) {
1933 0 : CheckFFSchedule(state,
1934 : cCurrentModuleObject,
1935 : "OtherFuel2",
1936 0 : state.dataIPShortCut->cAlphaFieldNames(5),
1937 0 : state.dataIPShortCut->cAlphaArgs(5),
1938 : Pollution.OtherFuel2Coef.CH4Sched,
1939 : ErrorsFound);
1940 : }
1941 0 : Pollution.OtherFuel2Coef.NOx = state.dataIPShortCut->rNumericArgs(5);
1942 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(6)) {
1943 0 : CheckFFSchedule(state,
1944 : cCurrentModuleObject,
1945 : "OtherFuel2",
1946 0 : state.dataIPShortCut->cAlphaFieldNames(6),
1947 0 : state.dataIPShortCut->cAlphaArgs(6),
1948 : Pollution.OtherFuel2Coef.NOxSched,
1949 : ErrorsFound);
1950 : }
1951 0 : Pollution.OtherFuel2Coef.N2O = state.dataIPShortCut->rNumericArgs(6);
1952 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(7)) {
1953 0 : CheckFFSchedule(state,
1954 : cCurrentModuleObject,
1955 : "OtherFuel2",
1956 0 : state.dataIPShortCut->cAlphaFieldNames(7),
1957 0 : state.dataIPShortCut->cAlphaArgs(7),
1958 : Pollution.OtherFuel2Coef.N2OSched,
1959 : ErrorsFound);
1960 : }
1961 0 : Pollution.OtherFuel2Coef.SO2 = state.dataIPShortCut->rNumericArgs(7);
1962 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(8)) {
1963 0 : CheckFFSchedule(state,
1964 : cCurrentModuleObject,
1965 : "OtherFuel2",
1966 0 : state.dataIPShortCut->cAlphaFieldNames(8),
1967 0 : state.dataIPShortCut->cAlphaArgs(8),
1968 : Pollution.OtherFuel2Coef.SO2Sched,
1969 : ErrorsFound);
1970 : }
1971 0 : Pollution.OtherFuel2Coef.PM = state.dataIPShortCut->rNumericArgs(8);
1972 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(9)) {
1973 0 : CheckFFSchedule(state,
1974 : cCurrentModuleObject,
1975 : "OtherFuel2",
1976 0 : state.dataIPShortCut->cAlphaFieldNames(9),
1977 0 : state.dataIPShortCut->cAlphaArgs(9),
1978 : Pollution.OtherFuel2Coef.PMSched,
1979 : ErrorsFound);
1980 : }
1981 0 : Pollution.OtherFuel2Coef.PM10 = state.dataIPShortCut->rNumericArgs(9);
1982 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(10)) {
1983 0 : CheckFFSchedule(state,
1984 : cCurrentModuleObject,
1985 : "OtherFuel2",
1986 0 : state.dataIPShortCut->cAlphaFieldNames(10),
1987 0 : state.dataIPShortCut->cAlphaArgs(10),
1988 : Pollution.OtherFuel2Coef.PM10Sched,
1989 : ErrorsFound);
1990 : }
1991 0 : Pollution.OtherFuel2Coef.PM25 = state.dataIPShortCut->rNumericArgs(10);
1992 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(11)) {
1993 0 : CheckFFSchedule(state,
1994 : cCurrentModuleObject,
1995 : "OtherFuel2",
1996 0 : state.dataIPShortCut->cAlphaFieldNames(11),
1997 0 : state.dataIPShortCut->cAlphaArgs(11),
1998 : Pollution.OtherFuel2Coef.PM25Sched,
1999 : ErrorsFound);
2000 : }
2001 0 : Pollution.OtherFuel2Coef.NH3 = state.dataIPShortCut->rNumericArgs(11);
2002 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(12)) {
2003 0 : CheckFFSchedule(state,
2004 : cCurrentModuleObject,
2005 : "OtherFuel2",
2006 0 : state.dataIPShortCut->cAlphaFieldNames(12),
2007 0 : state.dataIPShortCut->cAlphaArgs(12),
2008 : Pollution.OtherFuel2Coef.NH3Sched,
2009 : ErrorsFound);
2010 : }
2011 0 : Pollution.OtherFuel2Coef.NMVOC = state.dataIPShortCut->rNumericArgs(12);
2012 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(13)) {
2013 0 : CheckFFSchedule(state,
2014 : cCurrentModuleObject,
2015 : "OtherFuel2",
2016 0 : state.dataIPShortCut->cAlphaFieldNames(13),
2017 0 : state.dataIPShortCut->cAlphaArgs(13),
2018 : Pollution.OtherFuel2Coef.NMVOCSched,
2019 : ErrorsFound);
2020 : }
2021 0 : Pollution.OtherFuel2Coef.Hg = state.dataIPShortCut->rNumericArgs(13);
2022 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(14)) {
2023 0 : CheckFFSchedule(state,
2024 : cCurrentModuleObject,
2025 : "OtherFuel2",
2026 0 : state.dataIPShortCut->cAlphaFieldNames(14),
2027 0 : state.dataIPShortCut->cAlphaArgs(14),
2028 : Pollution.OtherFuel2Coef.HgSched,
2029 : ErrorsFound);
2030 : }
2031 0 : Pollution.OtherFuel2Coef.Pb = state.dataIPShortCut->rNumericArgs(14);
2032 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(15)) {
2033 0 : CheckFFSchedule(state,
2034 : cCurrentModuleObject,
2035 : "OtherFuel2",
2036 0 : state.dataIPShortCut->cAlphaFieldNames(15),
2037 0 : state.dataIPShortCut->cAlphaArgs(15),
2038 : Pollution.OtherFuel2Coef.PbSched,
2039 : ErrorsFound);
2040 : }
2041 0 : Pollution.OtherFuel2Coef.Water = state.dataIPShortCut->rNumericArgs(15);
2042 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(16)) {
2043 0 : CheckFFSchedule(state,
2044 : cCurrentModuleObject,
2045 : "OtherFuel2",
2046 0 : state.dataIPShortCut->cAlphaFieldNames(16),
2047 0 : state.dataIPShortCut->cAlphaArgs(16),
2048 : Pollution.OtherFuel2Coef.WaterSched,
2049 : ErrorsFound);
2050 : }
2051 0 : Pollution.OtherFuel2Coef.NucHi = state.dataIPShortCut->rNumericArgs(16);
2052 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(17)) {
2053 0 : CheckFFSchedule(state,
2054 : cCurrentModuleObject,
2055 : "OtherFuel2",
2056 0 : state.dataIPShortCut->cAlphaFieldNames(17),
2057 0 : state.dataIPShortCut->cAlphaArgs(17),
2058 : Pollution.OtherFuel2Coef.NucHiSched,
2059 : ErrorsFound);
2060 : }
2061 0 : Pollution.OtherFuel2Coef.NucLo = state.dataIPShortCut->rNumericArgs(17);
2062 0 : if (!state.dataIPShortCut->lAlphaFieldBlanks(18)) {
2063 0 : CheckFFSchedule(state,
2064 : cCurrentModuleObject,
2065 : "OtherFuel2",
2066 0 : state.dataIPShortCut->cAlphaFieldNames(18),
2067 0 : state.dataIPShortCut->cAlphaArgs(18),
2068 : Pollution.OtherFuel2Coef.NucLoSched,
2069 : ErrorsFound);
2070 : }
2071 :
2072 : } else {
2073 0 : ShowSevereError(state, "Illegal FuelType for Pollution Calc Entered=" + FuelType.FuelTypeNames(Loop));
2074 0 : ErrorsFound = true;
2075 : }
2076 : }
2077 :
2078 : } // End of the NumEnergyTypes Do Loop
2079 :
2080 769 : FuelType.ElecFacilityIndex = GetMeterIndex(state, "Electricity:Facility");
2081 769 : FuelType.DieselFacilityIndex = GetMeterIndex(state, "Diesel:Facility");
2082 769 : FuelType.PurchCoolFacilityIndex = GetMeterIndex(state, "DistrictCooling:Facility");
2083 769 : FuelType.PurchHeatFacilityIndex = GetMeterIndex(state, "DistrictHeating:Facility");
2084 769 : FuelType.NatGasFacilityIndex = GetMeterIndex(state, "NaturalGas:Facility");
2085 769 : FuelType.GasolineFacilityIndex = GetMeterIndex(state, "Gasoline:Facility");
2086 769 : FuelType.CoalFacilityIndex = GetMeterIndex(state, "Coal:Facility");
2087 769 : FuelType.FuelOil1FacilityIndex = GetMeterIndex(state, "FuelOilNo1:Facility");
2088 769 : FuelType.FuelOil2FacilityIndex = GetMeterIndex(state, "FuelOilNo2:Facility");
2089 769 : FuelType.PropaneFacilityIndex = GetMeterIndex(state, "Propane:Facility");
2090 769 : FuelType.OtherFuel1FacilityIndex = GetMeterIndex(state, "OtherFuel1:Facility");
2091 769 : FuelType.OtherFuel2FacilityIndex = GetMeterIndex(state, "OtherFuel2:Facility");
2092 769 : FuelType.ElecProducedFacilityIndex = GetMeterIndex(state, "ElectricityProduced:Facility");
2093 769 : FuelType.SteamFacilityIndex = GetMeterIndex(state, "Steam:Facility");
2094 769 : FuelType.ElecPurchasedFacilityIndex = GetMeterIndex(state, "ElectricityPurchased:Facility");
2095 769 : FuelType.ElecSurplusSoldFacilityIndex = GetMeterIndex(state, "ElectricitySurplusSold:Facility");
2096 :
2097 769 : if (state.dataPollutionModule->PollutionReportSetup) { // only do this if reporting on the pollution
2098 : // Need to go through all of the Fuel Types and make sure a Fuel Factor was found for each type of energy being simulated
2099 : // Check for Electricity
2100 0 : if (!Pollution.ElecCoef.FuelFactorUsed &&
2101 0 : ((FuelType.ElecFacilityIndex > 0) || (FuelType.ElecProducedFacilityIndex > 0) || (FuelType.PurchCoolFacilityIndex > 0))) {
2102 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for ELECTRICITY");
2103 0 : ErrorsFound = true;
2104 : }
2105 : // Check for Natural Gas
2106 0 : if (!Pollution.NatGasCoef.FuelFactorUsed &&
2107 0 : ((FuelType.NatGasFacilityIndex > 0) || (FuelType.PurchHeatFacilityIndex > 0) || (FuelType.SteamFacilityIndex > 0))) {
2108 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for NATURAL GAS");
2109 0 : ErrorsFound = true;
2110 : }
2111 : // Check for FuelOilNo2 (Residual Oil)
2112 0 : if (!Pollution.FuelOil2Coef.FuelFactorUsed && (FuelType.FuelOil2FacilityIndex > 0)) {
2113 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for FUEL OIL #2");
2114 0 : ErrorsFound = true;
2115 : }
2116 : // Check for FuelOilNo1 (Distillate Oil)
2117 0 : if (!Pollution.FuelOil1Coef.FuelFactorUsed && (FuelType.FuelOil1FacilityIndex > 0)) {
2118 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for FUEL OIL #1");
2119 0 : ErrorsFound = true;
2120 : }
2121 : // Check for Coal
2122 0 : if (!Pollution.CoalCoef.FuelFactorUsed && (FuelType.CoalFacilityIndex > 0)) {
2123 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for COAL");
2124 0 : ErrorsFound = true;
2125 : }
2126 : // Check for Gasoline
2127 0 : if (!Pollution.GasolineCoef.FuelFactorUsed && (FuelType.GasolineFacilityIndex > 0)) {
2128 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for GASOLINE");
2129 0 : ErrorsFound = true;
2130 : }
2131 : // Check for Propane
2132 0 : if (!Pollution.PropaneCoef.FuelFactorUsed && (FuelType.PropaneFacilityIndex > 0)) {
2133 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for PROPANE");
2134 0 : ErrorsFound = true;
2135 : }
2136 : // Check for Diesel
2137 0 : if (!Pollution.DieselCoef.FuelFactorUsed && (FuelType.DieselFacilityIndex > 0)) {
2138 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for DIESEL");
2139 0 : ErrorsFound = true;
2140 : }
2141 : // Check for OtherFuel1
2142 0 : if (!Pollution.OtherFuel1Coef.FuelFactorUsed && (FuelType.OtherFuel1FacilityIndex > 0)) {
2143 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for OTHERFUEL1");
2144 0 : ErrorsFound = true;
2145 : }
2146 : // Check for OtherFuel2
2147 0 : if (!Pollution.OtherFuel2Coef.FuelFactorUsed && (FuelType.OtherFuel2FacilityIndex > 0)) {
2148 0 : ShowSevereError(state, cCurrentModuleObject + " Not Found or Fuel not specified For Pollution Calculation for OTHERFUEL2");
2149 0 : ErrorsFound = true;
2150 : }
2151 : }
2152 :
2153 769 : if (ErrorsFound) {
2154 0 : ShowFatalError(state, "Errors found in getting Pollution Calculation Reporting Input");
2155 : }
2156 : }
2157 :
2158 769 : void SetupPollutionMeterReporting(EnergyPlusData &state)
2159 : {
2160 :
2161 : // SUBROUTINE INFORMATION:
2162 : // AUTHOR Richard Liesen
2163 : // DATE WRITTEN August 2002
2164 : // MODIFIED na
2165 : // RE-ENGINEERED December 2003 RJL
2166 :
2167 : // PURPOSE OF THIS SUBROUTINE:
2168 : // This subroutine is the input routines and Get routines
2169 :
2170 : // METHODOLOGY EMPLOYED:
2171 : // Uses the status flags to trigger events.
2172 :
2173 : // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
2174 : int Loop;
2175 :
2176 769 : if (state.dataPollutionModule->GetInputFlagPollution) {
2177 769 : GetPollutionFactorInput(state);
2178 769 : state.dataPollutionModule->GetInputFlagPollution = false;
2179 : }
2180 769 : auto &Pollution = state.dataPollutionModule->Pollution;
2181 769 : auto &FuelType = state.dataPollutionModule->FuelType;
2182 8459 : for (Loop = 1; Loop <= static_cast<int>(PollFactor::Num); ++Loop) {
2183 :
2184 7690 : if (FuelType.FuelTypeNames(Loop).empty()) continue;
2185 :
2186 : {
2187 408 : auto const SELECT_CASE_var(UtilityRoutines::MakeUPPERCase(FuelType.FuelTypeNames(Loop)));
2188 204 : if (SELECT_CASE_var == "NATURALGAS") {
2189 : // Pollutants from Natural Gas
2190 228 : SetupOutputVariable(state,
2191 : "Environmental Impact NaturalGas Source Energy",
2192 : OutputProcessor::Unit::J,
2193 : Pollution.NatGasComp.Source,
2194 : OutputProcessor::SOVTimeStepType::System,
2195 : OutputProcessor::SOVStoreType::Summed,
2196 : "Site",
2197 : _,
2198 : "Source",
2199 : "NaturalGasEmissions",
2200 : _,
2201 152 : "");
2202 228 : SetupOutputVariable(state,
2203 : "Environmental Impact NaturalGas CO2 Emissions Mass",
2204 : OutputProcessor::Unit::kg,
2205 : Pollution.NatGasComp.CO2Pollution,
2206 : OutputProcessor::SOVTimeStepType::System,
2207 : OutputProcessor::SOVStoreType::Summed,
2208 : "Site",
2209 : _,
2210 : "CO2",
2211 : "NaturalGasEmissions",
2212 : _,
2213 152 : "");
2214 228 : SetupOutputVariable(state,
2215 : "Environmental Impact NaturalGas CO Emissions Mass",
2216 : OutputProcessor::Unit::kg,
2217 : Pollution.NatGasComp.COPollution,
2218 : OutputProcessor::SOVTimeStepType::System,
2219 : OutputProcessor::SOVStoreType::Summed,
2220 : "Site",
2221 : _,
2222 : "CO",
2223 : "NaturalGasEmissions",
2224 : _,
2225 152 : "");
2226 228 : SetupOutputVariable(state,
2227 : "Environmental Impact NaturalGas CH4 Emissions Mass",
2228 : OutputProcessor::Unit::kg,
2229 : Pollution.NatGasComp.CH4Pollution,
2230 : OutputProcessor::SOVTimeStepType::System,
2231 : OutputProcessor::SOVStoreType::Summed,
2232 : "Site",
2233 : _,
2234 : "CH4",
2235 : "NaturalGasEmissions",
2236 : _,
2237 152 : "");
2238 228 : SetupOutputVariable(state,
2239 : "Environmental Impact NaturalGas NOx Emissions Mass",
2240 : OutputProcessor::Unit::kg,
2241 : Pollution.NatGasComp.NOxPollution,
2242 : OutputProcessor::SOVTimeStepType::System,
2243 : OutputProcessor::SOVStoreType::Summed,
2244 : "Site",
2245 : _,
2246 : "NOx",
2247 : "NaturalGasEmissions",
2248 : _,
2249 152 : "");
2250 228 : SetupOutputVariable(state,
2251 : "Environmental Impact NaturalGas N2O Emissions Mass",
2252 : OutputProcessor::Unit::kg,
2253 : Pollution.NatGasComp.N2OPollution,
2254 : OutputProcessor::SOVTimeStepType::System,
2255 : OutputProcessor::SOVStoreType::Summed,
2256 : "Site",
2257 : _,
2258 : "N2O",
2259 : "NaturalGasEmissions",
2260 : _,
2261 152 : "");
2262 228 : SetupOutputVariable(state,
2263 : "Environmental Impact NaturalGas SO2 Emissions Mass",
2264 : OutputProcessor::Unit::kg,
2265 : Pollution.NatGasComp.SO2Pollution,
2266 : OutputProcessor::SOVTimeStepType::System,
2267 : OutputProcessor::SOVStoreType::Summed,
2268 : "Site",
2269 : _,
2270 : "SO2",
2271 : "NaturalGasEmissions",
2272 : _,
2273 152 : "");
2274 228 : SetupOutputVariable(state,
2275 : "Environmental Impact NaturalGas PM Emissions Mass",
2276 : OutputProcessor::Unit::kg,
2277 : Pollution.NatGasComp.PMPollution,
2278 : OutputProcessor::SOVTimeStepType::System,
2279 : OutputProcessor::SOVStoreType::Summed,
2280 : "Site",
2281 : _,
2282 : "PM",
2283 : "NaturalGasEmissions",
2284 : _,
2285 152 : "");
2286 228 : SetupOutputVariable(state,
2287 : "Environmental Impact NaturalGas PM10 Emissions Mass",
2288 : OutputProcessor::Unit::kg,
2289 : Pollution.NatGasComp.PM10Pollution,
2290 : OutputProcessor::SOVTimeStepType::System,
2291 : OutputProcessor::SOVStoreType::Summed,
2292 : "Site",
2293 : _,
2294 : "PM10",
2295 : "NaturalGasEmissions",
2296 : _,
2297 152 : "");
2298 228 : SetupOutputVariable(state,
2299 : "Environmental Impact NaturalGas PM2.5 Emissions Mass",
2300 : OutputProcessor::Unit::kg,
2301 : Pollution.NatGasComp.PM25Pollution,
2302 : OutputProcessor::SOVTimeStepType::System,
2303 : OutputProcessor::SOVStoreType::Summed,
2304 : "Site",
2305 : _,
2306 : "PM2.5",
2307 : "NaturalGasEmissions",
2308 : _,
2309 152 : "");
2310 228 : SetupOutputVariable(state,
2311 : "Environmental Impact NaturalGas NH3 Emissions Mass",
2312 : OutputProcessor::Unit::kg,
2313 : Pollution.NatGasComp.NH3Pollution,
2314 : OutputProcessor::SOVTimeStepType::System,
2315 : OutputProcessor::SOVStoreType::Summed,
2316 : "Site",
2317 : _,
2318 : "NH3",
2319 : "NaturalGasEmissions",
2320 : _,
2321 152 : "");
2322 228 : SetupOutputVariable(state,
2323 : "Environmental Impact NaturalGas NMVOC Emissions Mass",
2324 : OutputProcessor::Unit::kg,
2325 : Pollution.NatGasComp.NMVOCPollution,
2326 : OutputProcessor::SOVTimeStepType::System,
2327 : OutputProcessor::SOVStoreType::Summed,
2328 : "Site",
2329 : _,
2330 : "NMVOC",
2331 : "NaturalGasEmissions",
2332 : _,
2333 152 : "");
2334 228 : SetupOutputVariable(state,
2335 : "Environmental Impact NaturalGas Hg Emissions Mass",
2336 : OutputProcessor::Unit::kg,
2337 : Pollution.NatGasComp.HgPollution,
2338 : OutputProcessor::SOVTimeStepType::System,
2339 : OutputProcessor::SOVStoreType::Summed,
2340 : "Site",
2341 : _,
2342 : "Hg",
2343 : "NaturalGasEmissions",
2344 : _,
2345 152 : "");
2346 228 : SetupOutputVariable(state,
2347 : "Environmental Impact NaturalGas Pb Emissions Mass",
2348 : OutputProcessor::Unit::kg,
2349 : Pollution.NatGasComp.PbPollution,
2350 : OutputProcessor::SOVTimeStepType::System,
2351 : OutputProcessor::SOVStoreType::Summed,
2352 : "Site",
2353 : _,
2354 : "Pb",
2355 : "NaturalGasEmissions",
2356 : _,
2357 152 : "");
2358 228 : SetupOutputVariable(state,
2359 : "Environmental Impact NaturalGas Water Consumption Volume",
2360 : OutputProcessor::Unit::L,
2361 : Pollution.NatGasComp.WaterPollution,
2362 : OutputProcessor::SOVTimeStepType::System,
2363 : OutputProcessor::SOVStoreType::Summed,
2364 : "Site",
2365 : _,
2366 : "WaterEnvironmentalFactors",
2367 : "NaturalGasEmissions",
2368 : _,
2369 152 : "");
2370 228 : SetupOutputVariable(state,
2371 : "Environmental Impact NaturalGas Nuclear High Level Waste Mass",
2372 : OutputProcessor::Unit::kg,
2373 : Pollution.NatGasComp.NucHiPollution,
2374 : OutputProcessor::SOVTimeStepType::System,
2375 : OutputProcessor::SOVStoreType::Summed,
2376 : "Site",
2377 : _,
2378 : "Nuclear High",
2379 : "NaturalGasEmissions",
2380 : _,
2381 152 : "");
2382 228 : SetupOutputVariable(state,
2383 : "Environmental Impact NaturalGas Nuclear Low Level Waste Volume",
2384 : OutputProcessor::Unit::m3,
2385 : Pollution.NatGasComp.NucLoPollution,
2386 : OutputProcessor::SOVTimeStepType::System,
2387 : OutputProcessor::SOVStoreType::Summed,
2388 : "Site",
2389 : _,
2390 : "Nuclear Low",
2391 : "NaturalGasEmissions",
2392 : _,
2393 152 : "");
2394 :
2395 128 : } else if (SELECT_CASE_var == "FUELOILNO2") {
2396 : // Pollutants from FuelOilNo2
2397 0 : SetupOutputVariable(state,
2398 : "Environmental Impact FuelOilNo2 Source Energy",
2399 : OutputProcessor::Unit::J,
2400 : Pollution.FuelOil2Comp.Source,
2401 : OutputProcessor::SOVTimeStepType::System,
2402 : OutputProcessor::SOVStoreType::Summed,
2403 : "Site",
2404 : _,
2405 : "Source",
2406 : "FuelOilNo2Emissions",
2407 : _,
2408 0 : "");
2409 0 : SetupOutputVariable(state,
2410 : "Environmental Impact FuelOilNo2 CO2 Emissions Mass",
2411 : OutputProcessor::Unit::kg,
2412 : Pollution.FuelOil2Comp.CO2Pollution,
2413 : OutputProcessor::SOVTimeStepType::System,
2414 : OutputProcessor::SOVStoreType::Summed,
2415 : "Site",
2416 : _,
2417 : "CO2",
2418 : "FuelOilNo2Emissions",
2419 : _,
2420 0 : "");
2421 0 : SetupOutputVariable(state,
2422 : "Environmental Impact FuelOilNo2 CO Emissions Mass",
2423 : OutputProcessor::Unit::kg,
2424 : Pollution.FuelOil2Comp.COPollution,
2425 : OutputProcessor::SOVTimeStepType::System,
2426 : OutputProcessor::SOVStoreType::Summed,
2427 : "Site",
2428 : _,
2429 : "CO",
2430 : "FuelOilNo2Emissions",
2431 : _,
2432 0 : "");
2433 0 : SetupOutputVariable(state,
2434 : "Environmental Impact FuelOilNo2 CH4 Emissions Mass",
2435 : OutputProcessor::Unit::kg,
2436 : Pollution.FuelOil2Comp.CH4Pollution,
2437 : OutputProcessor::SOVTimeStepType::System,
2438 : OutputProcessor::SOVStoreType::Summed,
2439 : "Site",
2440 : _,
2441 : "CH4",
2442 : "FuelOilNo2Emissions",
2443 : _,
2444 0 : "");
2445 0 : SetupOutputVariable(state,
2446 : "Environmental Impact FuelOilNo2 NOx Emissions Mass",
2447 : OutputProcessor::Unit::kg,
2448 : Pollution.FuelOil2Comp.NOxPollution,
2449 : OutputProcessor::SOVTimeStepType::System,
2450 : OutputProcessor::SOVStoreType::Summed,
2451 : "Site",
2452 : _,
2453 : "NOx",
2454 : "FuelOilNo2Emissions",
2455 : _,
2456 0 : "");
2457 0 : SetupOutputVariable(state,
2458 : "Environmental Impact FuelOilNo2 N2O Emissions Mass",
2459 : OutputProcessor::Unit::kg,
2460 : Pollution.FuelOil2Comp.N2OPollution,
2461 : OutputProcessor::SOVTimeStepType::System,
2462 : OutputProcessor::SOVStoreType::Summed,
2463 : "Site",
2464 : _,
2465 : "N2O",
2466 : "FuelOilNo2Emissions",
2467 : _,
2468 0 : "");
2469 0 : SetupOutputVariable(state,
2470 : "Environmental Impact FuelOilNo2 SO2 Emissions Mass",
2471 : OutputProcessor::Unit::kg,
2472 : Pollution.FuelOil2Comp.SO2Pollution,
2473 : OutputProcessor::SOVTimeStepType::System,
2474 : OutputProcessor::SOVStoreType::Summed,
2475 : "Site",
2476 : _,
2477 : "SO2",
2478 : "FuelOilNo2Emissions",
2479 : _,
2480 0 : "");
2481 0 : SetupOutputVariable(state,
2482 : "Environmental Impact FuelOilNo2 PM Emissions Mass",
2483 : OutputProcessor::Unit::kg,
2484 : Pollution.FuelOil2Comp.PMPollution,
2485 : OutputProcessor::SOVTimeStepType::System,
2486 : OutputProcessor::SOVStoreType::Summed,
2487 : "Site",
2488 : _,
2489 : "PM",
2490 : "FuelOilNo2Emissions",
2491 : _,
2492 0 : "");
2493 0 : SetupOutputVariable(state,
2494 : "Environmental Impact FuelOilNo2 PM10 Emissions Mass",
2495 : OutputProcessor::Unit::kg,
2496 : Pollution.FuelOil2Comp.PM10Pollution,
2497 : OutputProcessor::SOVTimeStepType::System,
2498 : OutputProcessor::SOVStoreType::Summed,
2499 : "Site",
2500 : _,
2501 : "PM10",
2502 : "FuelOilNo2Emissions",
2503 : _,
2504 0 : "");
2505 0 : SetupOutputVariable(state,
2506 : "Environmental Impact FuelOilNo2 PM2.5 Emissions Mass",
2507 : OutputProcessor::Unit::kg,
2508 : Pollution.FuelOil2Comp.PM25Pollution,
2509 : OutputProcessor::SOVTimeStepType::System,
2510 : OutputProcessor::SOVStoreType::Summed,
2511 : "Site",
2512 : _,
2513 : "PM2.5",
2514 : "FuelOilNo2Emissions",
2515 : _,
2516 0 : "");
2517 0 : SetupOutputVariable(state,
2518 : "Environmental Impact FuelOilNo2 NH3 Emissions Mass",
2519 : OutputProcessor::Unit::kg,
2520 : Pollution.FuelOil2Comp.NH3Pollution,
2521 : OutputProcessor::SOVTimeStepType::System,
2522 : OutputProcessor::SOVStoreType::Summed,
2523 : "Site",
2524 : _,
2525 : "NH3",
2526 : "FuelOilNo2Emissions",
2527 : _,
2528 0 : "");
2529 0 : SetupOutputVariable(state,
2530 : "Environmental Impact FuelOilNo2 NMVOC Emissions Mass",
2531 : OutputProcessor::Unit::kg,
2532 : Pollution.FuelOil2Comp.NMVOCPollution,
2533 : OutputProcessor::SOVTimeStepType::System,
2534 : OutputProcessor::SOVStoreType::Summed,
2535 : "Site",
2536 : _,
2537 : "NMVOC",
2538 : "FuelOilNo2Emissions",
2539 : _,
2540 0 : "");
2541 0 : SetupOutputVariable(state,
2542 : "Environmental Impact FuelOilNo2 Hg Emissions Mass",
2543 : OutputProcessor::Unit::kg,
2544 : Pollution.FuelOil2Comp.HgPollution,
2545 : OutputProcessor::SOVTimeStepType::System,
2546 : OutputProcessor::SOVStoreType::Summed,
2547 : "Site",
2548 : _,
2549 : "Hg",
2550 : "FuelOilNo2Emissions",
2551 : _,
2552 0 : "");
2553 0 : SetupOutputVariable(state,
2554 : "Environmental Impact FuelOilNo2 Pb Emissions Mass",
2555 : OutputProcessor::Unit::kg,
2556 : Pollution.FuelOil2Comp.PbPollution,
2557 : OutputProcessor::SOVTimeStepType::System,
2558 : OutputProcessor::SOVStoreType::Summed,
2559 : "Site",
2560 : _,
2561 : "Pb",
2562 : "FuelOilNo2Emissions",
2563 : _,
2564 0 : "");
2565 0 : SetupOutputVariable(state,
2566 : "Environmental Impact FuelOilNo2 Water Consumption Volume",
2567 : OutputProcessor::Unit::L,
2568 : Pollution.FuelOil2Comp.WaterPollution,
2569 : OutputProcessor::SOVTimeStepType::System,
2570 : OutputProcessor::SOVStoreType::Summed,
2571 : "Site",
2572 : _,
2573 : "WaterEnvironmentalFactors",
2574 : "FuelOilNo2Emissions",
2575 : _,
2576 0 : "");
2577 0 : SetupOutputVariable(state,
2578 : "Environmental Impact FuelOilNo2 Nuclear High Level Waste Mass",
2579 : OutputProcessor::Unit::kg,
2580 : Pollution.FuelOil2Comp.NucHiPollution,
2581 : OutputProcessor::SOVTimeStepType::System,
2582 : OutputProcessor::SOVStoreType::Summed,
2583 : "Site",
2584 : _,
2585 : "Nuclear High",
2586 : "FuelOilNo2Emissions",
2587 : _,
2588 0 : "");
2589 0 : SetupOutputVariable(state,
2590 : "Environmental Impact FuelOilNo2 Nuclear Low Level Waste Volume",
2591 : OutputProcessor::Unit::m3,
2592 : Pollution.FuelOil2Comp.NucLoPollution,
2593 : OutputProcessor::SOVTimeStepType::System,
2594 : OutputProcessor::SOVStoreType::Summed,
2595 : "Site",
2596 : _,
2597 : "Nuclear Low",
2598 : "FuelOilNo2Emissions",
2599 : _,
2600 0 : "");
2601 :
2602 128 : } else if (SELECT_CASE_var == "FUELOILNO1") {
2603 : // Pollutants from FuelOilNo1
2604 63 : SetupOutputVariable(state,
2605 : "Environmental Impact FuelOilNo1 Source Energy",
2606 : OutputProcessor::Unit::J,
2607 : Pollution.FuelOil1Comp.Source,
2608 : OutputProcessor::SOVTimeStepType::System,
2609 : OutputProcessor::SOVStoreType::Summed,
2610 : "Site",
2611 : _,
2612 : "Source",
2613 : "FuelOilNo1Emissions",
2614 : _,
2615 42 : "");
2616 63 : SetupOutputVariable(state,
2617 : "Environmental Impact FuelOilNo1 CO2 Emissions Mass",
2618 : OutputProcessor::Unit::kg,
2619 : Pollution.FuelOil1Comp.CO2Pollution,
2620 : OutputProcessor::SOVTimeStepType::System,
2621 : OutputProcessor::SOVStoreType::Summed,
2622 : "Site",
2623 : _,
2624 : "CO2",
2625 : "FuelOilNo1Emissions",
2626 : _,
2627 42 : "");
2628 63 : SetupOutputVariable(state,
2629 : "Environmental Impact FuelOilNo1 CO Emissions Mass",
2630 : OutputProcessor::Unit::kg,
2631 : Pollution.FuelOil1Comp.COPollution,
2632 : OutputProcessor::SOVTimeStepType::System,
2633 : OutputProcessor::SOVStoreType::Summed,
2634 : "Site",
2635 : _,
2636 : "CO",
2637 : "FuelOilNo1Emissions",
2638 : _,
2639 42 : "");
2640 63 : SetupOutputVariable(state,
2641 : "Environmental Impact FuelOilNo1 CH4 Emissions Mass",
2642 : OutputProcessor::Unit::kg,
2643 : Pollution.FuelOil1Comp.CH4Pollution,
2644 : OutputProcessor::SOVTimeStepType::System,
2645 : OutputProcessor::SOVStoreType::Summed,
2646 : "Site",
2647 : _,
2648 : "CH4",
2649 : "FuelOilNo1Emissions",
2650 : _,
2651 42 : "");
2652 63 : SetupOutputVariable(state,
2653 : "Environmental Impact FuelOilNo1 NOx Emissions Mass",
2654 : OutputProcessor::Unit::kg,
2655 : Pollution.FuelOil1Comp.NOxPollution,
2656 : OutputProcessor::SOVTimeStepType::System,
2657 : OutputProcessor::SOVStoreType::Summed,
2658 : "Site",
2659 : _,
2660 : "NOx",
2661 : "FuelOilNo1Emissions",
2662 : _,
2663 42 : "");
2664 63 : SetupOutputVariable(state,
2665 : "Environmental Impact FuelOilNo1 N2O Emissions Mass",
2666 : OutputProcessor::Unit::kg,
2667 : Pollution.FuelOil1Comp.N2OPollution,
2668 : OutputProcessor::SOVTimeStepType::System,
2669 : OutputProcessor::SOVStoreType::Summed,
2670 : "Site",
2671 : _,
2672 : "N2O",
2673 : "FuelOilNo1Emissions",
2674 : _,
2675 42 : "");
2676 63 : SetupOutputVariable(state,
2677 : "Environmental Impact FuelOilNo1 SO2 Emissions Mass",
2678 : OutputProcessor::Unit::kg,
2679 : Pollution.FuelOil1Comp.SO2Pollution,
2680 : OutputProcessor::SOVTimeStepType::System,
2681 : OutputProcessor::SOVStoreType::Summed,
2682 : "Site",
2683 : _,
2684 : "SO2",
2685 : "FuelOilNo1Emissions",
2686 : _,
2687 42 : "");
2688 63 : SetupOutputVariable(state,
2689 : "Environmental Impact FuelOilNo1 PM Emissions Mass",
2690 : OutputProcessor::Unit::kg,
2691 : Pollution.FuelOil1Comp.PMPollution,
2692 : OutputProcessor::SOVTimeStepType::System,
2693 : OutputProcessor::SOVStoreType::Summed,
2694 : "Site",
2695 : _,
2696 : "PM",
2697 : "FuelOilNo1Emissions",
2698 : _,
2699 42 : "");
2700 63 : SetupOutputVariable(state,
2701 : "Environmental Impact FuelOilNo1 PM10 Emissions Mass",
2702 : OutputProcessor::Unit::kg,
2703 : Pollution.FuelOil1Comp.PM10Pollution,
2704 : OutputProcessor::SOVTimeStepType::System,
2705 : OutputProcessor::SOVStoreType::Summed,
2706 : "Site",
2707 : _,
2708 : "PM10",
2709 : "FuelOilNo1Emissions",
2710 : _,
2711 42 : "");
2712 63 : SetupOutputVariable(state,
2713 : "Environmental Impact FuelOilNo1 PM2.5 Emissions Mass",
2714 : OutputProcessor::Unit::kg,
2715 : Pollution.FuelOil1Comp.PM25Pollution,
2716 : OutputProcessor::SOVTimeStepType::System,
2717 : OutputProcessor::SOVStoreType::Summed,
2718 : "Site",
2719 : _,
2720 : "PM2.5",
2721 : "FuelOilNo1Emissions",
2722 : _,
2723 42 : "");
2724 63 : SetupOutputVariable(state,
2725 : "Environmental Impact FuelOilNo1 NH3 Emissions Mass",
2726 : OutputProcessor::Unit::kg,
2727 : Pollution.FuelOil1Comp.NH3Pollution,
2728 : OutputProcessor::SOVTimeStepType::System,
2729 : OutputProcessor::SOVStoreType::Summed,
2730 : "Site",
2731 : _,
2732 : "NH3",
2733 : "FuelOilNo1Emissions",
2734 : _,
2735 42 : "");
2736 63 : SetupOutputVariable(state,
2737 : "Environmental Impact FuelOilNo1 NMVOC Emissions Mass",
2738 : OutputProcessor::Unit::kg,
2739 : Pollution.FuelOil1Comp.NMVOCPollution,
2740 : OutputProcessor::SOVTimeStepType::System,
2741 : OutputProcessor::SOVStoreType::Summed,
2742 : "Site",
2743 : _,
2744 : "NMVOC",
2745 : "FuelOilNo1Emissions",
2746 : _,
2747 42 : "");
2748 63 : SetupOutputVariable(state,
2749 : "Environmental Impact FuelOilNo1 Hg Emissions Mass",
2750 : OutputProcessor::Unit::kg,
2751 : Pollution.FuelOil1Comp.HgPollution,
2752 : OutputProcessor::SOVTimeStepType::System,
2753 : OutputProcessor::SOVStoreType::Summed,
2754 : "Site",
2755 : _,
2756 : "Hg",
2757 : "FuelOilNo1Emissions",
2758 : _,
2759 42 : "");
2760 63 : SetupOutputVariable(state,
2761 : "Environmental Impact FuelOilNo1 Pb Emissions Mass",
2762 : OutputProcessor::Unit::kg,
2763 : Pollution.FuelOil1Comp.PbPollution,
2764 : OutputProcessor::SOVTimeStepType::System,
2765 : OutputProcessor::SOVStoreType::Summed,
2766 : "Site",
2767 : _,
2768 : "Pb",
2769 : "FuelOilNo1Emissions",
2770 : _,
2771 42 : "");
2772 63 : SetupOutputVariable(state,
2773 : "Environmental Impact FuelOilNo1 Water Consumption Volume",
2774 : OutputProcessor::Unit::L,
2775 : Pollution.FuelOil1Comp.WaterPollution,
2776 : OutputProcessor::SOVTimeStepType::System,
2777 : OutputProcessor::SOVStoreType::Summed,
2778 : "Site",
2779 : _,
2780 : "WaterEnvironmentalFactors",
2781 : "FuelOilNo1Emissions",
2782 : _,
2783 42 : "");
2784 63 : SetupOutputVariable(state,
2785 : "Environmental Impact FuelOilNo1 Nuclear High Level Waste Mass",
2786 : OutputProcessor::Unit::kg,
2787 : Pollution.FuelOil1Comp.NucHiPollution,
2788 : OutputProcessor::SOVTimeStepType::System,
2789 : OutputProcessor::SOVStoreType::Summed,
2790 : "Site",
2791 : _,
2792 : "Nuclear High",
2793 : "FuelOilNo1Emissions",
2794 : _,
2795 42 : "");
2796 63 : SetupOutputVariable(state,
2797 : "Environmental Impact FuelOilNo1 Nuclear Low Level Waste Volume",
2798 : OutputProcessor::Unit::m3,
2799 : Pollution.FuelOil1Comp.NucLoPollution,
2800 : OutputProcessor::SOVTimeStepType::System,
2801 : OutputProcessor::SOVStoreType::Summed,
2802 : "Site",
2803 : _,
2804 : "Nuclear Low",
2805 : "FuelOilNo1Emissions",
2806 : _,
2807 42 : "");
2808 :
2809 107 : } else if (SELECT_CASE_var == "COAL") {
2810 : // Pollutants from Coal
2811 0 : SetupOutputVariable(state,
2812 : "Environmental Impact Coal Source Energy",
2813 : OutputProcessor::Unit::J,
2814 : Pollution.CoalComp.Source,
2815 : OutputProcessor::SOVTimeStepType::System,
2816 : OutputProcessor::SOVStoreType::Summed,
2817 : "Site",
2818 : _,
2819 : "Source",
2820 : "CoalEmissions",
2821 : _,
2822 0 : "");
2823 0 : SetupOutputVariable(state,
2824 : "Environmental Impact Coal CO2 Emissions Mass",
2825 : OutputProcessor::Unit::kg,
2826 : Pollution.CoalComp.CO2Pollution,
2827 : OutputProcessor::SOVTimeStepType::System,
2828 : OutputProcessor::SOVStoreType::Summed,
2829 : "Site",
2830 : _,
2831 : "CO2",
2832 : "CoalEmissions",
2833 : _,
2834 0 : "");
2835 0 : SetupOutputVariable(state,
2836 : "Environmental Impact Coal CO Emissions Mass",
2837 : OutputProcessor::Unit::kg,
2838 : Pollution.CoalComp.COPollution,
2839 : OutputProcessor::SOVTimeStepType::System,
2840 : OutputProcessor::SOVStoreType::Summed,
2841 : "Site",
2842 : _,
2843 : "CO",
2844 : "CoalEmissions",
2845 : _,
2846 0 : "");
2847 0 : SetupOutputVariable(state,
2848 : "Environmental Impact Coal CH4 Emissions Mass",
2849 : OutputProcessor::Unit::kg,
2850 : Pollution.CoalComp.CH4Pollution,
2851 : OutputProcessor::SOVTimeStepType::System,
2852 : OutputProcessor::SOVStoreType::Summed,
2853 : "Site",
2854 : _,
2855 : "CH4",
2856 : "CoalEmissions",
2857 : _,
2858 0 : "");
2859 0 : SetupOutputVariable(state,
2860 : "Environmental Impact Coal NOx Emissions Mass",
2861 : OutputProcessor::Unit::kg,
2862 : Pollution.CoalComp.NOxPollution,
2863 : OutputProcessor::SOVTimeStepType::System,
2864 : OutputProcessor::SOVStoreType::Summed,
2865 : "Site",
2866 : _,
2867 : "NOx",
2868 : "CoalEmissions",
2869 : _,
2870 0 : "");
2871 0 : SetupOutputVariable(state,
2872 : "Environmental Impact Coal N2O Emissions Mass",
2873 : OutputProcessor::Unit::kg,
2874 : Pollution.CoalComp.N2OPollution,
2875 : OutputProcessor::SOVTimeStepType::System,
2876 : OutputProcessor::SOVStoreType::Summed,
2877 : "Site",
2878 : _,
2879 : "N2O",
2880 : "CoalEmissions",
2881 : _,
2882 0 : "");
2883 0 : SetupOutputVariable(state,
2884 : "Environmental Impact Coal SO2 Emissions Mass",
2885 : OutputProcessor::Unit::kg,
2886 : Pollution.CoalComp.SO2Pollution,
2887 : OutputProcessor::SOVTimeStepType::System,
2888 : OutputProcessor::SOVStoreType::Summed,
2889 : "Site",
2890 : _,
2891 : "SO2",
2892 : "CoalEmissions",
2893 : _,
2894 0 : "");
2895 0 : SetupOutputVariable(state,
2896 : "Environmental Impact Coal PM Emissions Mass",
2897 : OutputProcessor::Unit::kg,
2898 : Pollution.CoalComp.PMPollution,
2899 : OutputProcessor::SOVTimeStepType::System,
2900 : OutputProcessor::SOVStoreType::Summed,
2901 : "Site",
2902 : _,
2903 : "PM",
2904 : "CoalEmissions",
2905 : _,
2906 0 : "");
2907 0 : SetupOutputVariable(state,
2908 : "Environmental Impact Coal PM10 Emissions Mass",
2909 : OutputProcessor::Unit::kg,
2910 : Pollution.CoalComp.PM10Pollution,
2911 : OutputProcessor::SOVTimeStepType::System,
2912 : OutputProcessor::SOVStoreType::Summed,
2913 : "Site",
2914 : _,
2915 : "PM10",
2916 : "CoalEmissions",
2917 : _,
2918 0 : "");
2919 0 : SetupOutputVariable(state,
2920 : "Environmental Impact Coal PM2.5 Emissions Mass",
2921 : OutputProcessor::Unit::kg,
2922 : Pollution.CoalComp.PM25Pollution,
2923 : OutputProcessor::SOVTimeStepType::System,
2924 : OutputProcessor::SOVStoreType::Summed,
2925 : "Site",
2926 : _,
2927 : "PM2.5",
2928 : "CoalEmissions",
2929 : _,
2930 0 : "");
2931 0 : SetupOutputVariable(state,
2932 : "Environmental Impact Coal NH3 Emissions Mass",
2933 : OutputProcessor::Unit::kg,
2934 : Pollution.CoalComp.NH3Pollution,
2935 : OutputProcessor::SOVTimeStepType::System,
2936 : OutputProcessor::SOVStoreType::Summed,
2937 : "Site",
2938 : _,
2939 : "NH3",
2940 : "CoalEmissions",
2941 : _,
2942 0 : "");
2943 0 : SetupOutputVariable(state,
2944 : "Environmental Impact Coal NMVOC Emissions Mass",
2945 : OutputProcessor::Unit::kg,
2946 : Pollution.CoalComp.NMVOCPollution,
2947 : OutputProcessor::SOVTimeStepType::System,
2948 : OutputProcessor::SOVStoreType::Summed,
2949 : "Site",
2950 : _,
2951 : "NMVOC",
2952 : "CoalEmissions",
2953 : _,
2954 0 : "");
2955 0 : SetupOutputVariable(state,
2956 : "Environmental Impact Coal Hg Emissions Mass",
2957 : OutputProcessor::Unit::kg,
2958 : Pollution.CoalComp.HgPollution,
2959 : OutputProcessor::SOVTimeStepType::System,
2960 : OutputProcessor::SOVStoreType::Summed,
2961 : "Site",
2962 : _,
2963 : "Hg",
2964 : "CoalEmissions",
2965 : _,
2966 0 : "");
2967 0 : SetupOutputVariable(state,
2968 : "Environmental Impact Coal Pb Emissions Mass",
2969 : OutputProcessor::Unit::kg,
2970 : Pollution.CoalComp.PbPollution,
2971 : OutputProcessor::SOVTimeStepType::System,
2972 : OutputProcessor::SOVStoreType::Summed,
2973 : "Site",
2974 : _,
2975 : "Pb",
2976 : "CoalEmissions",
2977 : _,
2978 0 : "");
2979 0 : SetupOutputVariable(state,
2980 : "Environmental Impact Coal Water Consumption Volume",
2981 : OutputProcessor::Unit::L,
2982 : Pollution.CoalComp.WaterPollution,
2983 : OutputProcessor::SOVTimeStepType::System,
2984 : OutputProcessor::SOVStoreType::Summed,
2985 : "Site",
2986 : _,
2987 : "WaterEnvironmentalFactors",
2988 : "CoalEmissions",
2989 : _,
2990 0 : "");
2991 0 : SetupOutputVariable(state,
2992 : "Environmental Impact Coal Nuclear High Level Waste Mass",
2993 : OutputProcessor::Unit::kg,
2994 : Pollution.CoalComp.NucHiPollution,
2995 : OutputProcessor::SOVTimeStepType::System,
2996 : OutputProcessor::SOVStoreType::Summed,
2997 : "Site",
2998 : _,
2999 : "Nuclear High",
3000 : "CoalEmissions",
3001 : _,
3002 0 : "");
3003 0 : SetupOutputVariable(state,
3004 : "Environmental Impact Coal Nuclear Low Level Waste Volume",
3005 : OutputProcessor::Unit::m3,
3006 : Pollution.CoalComp.NucLoPollution,
3007 : OutputProcessor::SOVTimeStepType::System,
3008 : OutputProcessor::SOVStoreType::Summed,
3009 : "Site",
3010 : _,
3011 : "Nuclear Low",
3012 : "CoalEmissions",
3013 : _,
3014 0 : "");
3015 :
3016 107 : } else if (SELECT_CASE_var == "ELECTRICITY") {
3017 : // Pollutants from Electricity
3018 249 : SetupOutputVariable(state,
3019 : "Environmental Impact Electricity Source Energy",
3020 : OutputProcessor::Unit::J,
3021 : Pollution.ElecComp.Source,
3022 : OutputProcessor::SOVTimeStepType::System,
3023 : OutputProcessor::SOVStoreType::Summed,
3024 : "Site",
3025 : _,
3026 : "Source",
3027 : "ElectricityEmissions",
3028 : _,
3029 166 : "");
3030 249 : SetupOutputVariable(state,
3031 : "Environmental Impact Electricity CO2 Emissions Mass",
3032 : OutputProcessor::Unit::kg,
3033 : Pollution.ElecComp.CO2Pollution,
3034 : OutputProcessor::SOVTimeStepType::System,
3035 : OutputProcessor::SOVStoreType::Summed,
3036 : "Site",
3037 : _,
3038 : "CO2",
3039 : "ElectricityEmissions",
3040 : _,
3041 166 : "");
3042 249 : SetupOutputVariable(state,
3043 : "Environmental Impact Electricity CO Emissions Mass",
3044 : OutputProcessor::Unit::kg,
3045 : Pollution.ElecComp.COPollution,
3046 : OutputProcessor::SOVTimeStepType::System,
3047 : OutputProcessor::SOVStoreType::Summed,
3048 : "Site",
3049 : _,
3050 : "CO",
3051 : "ElectricityEmissions",
3052 : _,
3053 166 : "");
3054 249 : SetupOutputVariable(state,
3055 : "Environmental Impact Electricity CH4 Emissions Mass",
3056 : OutputProcessor::Unit::kg,
3057 : Pollution.ElecComp.CH4Pollution,
3058 : OutputProcessor::SOVTimeStepType::System,
3059 : OutputProcessor::SOVStoreType::Summed,
3060 : "Site",
3061 : _,
3062 : "CH4",
3063 : "ElectricityEmissions",
3064 : _,
3065 166 : "");
3066 249 : SetupOutputVariable(state,
3067 : "Environmental Impact Electricity NOx Emissions Mass",
3068 : OutputProcessor::Unit::kg,
3069 : Pollution.ElecComp.NOxPollution,
3070 : OutputProcessor::SOVTimeStepType::System,
3071 : OutputProcessor::SOVStoreType::Summed,
3072 : "Site",
3073 : _,
3074 : "NOx",
3075 : "ElectricityEmissions",
3076 : _,
3077 166 : "");
3078 249 : SetupOutputVariable(state,
3079 : "Environmental Impact Electricity N2O Emissions Mass",
3080 : OutputProcessor::Unit::kg,
3081 : Pollution.ElecComp.N2OPollution,
3082 : OutputProcessor::SOVTimeStepType::System,
3083 : OutputProcessor::SOVStoreType::Summed,
3084 : "Site",
3085 : _,
3086 : "N2O",
3087 : "ElectricityEmissions",
3088 : _,
3089 166 : "");
3090 249 : SetupOutputVariable(state,
3091 : "Environmental Impact Electricity SO2 Emissions Mass",
3092 : OutputProcessor::Unit::kg,
3093 : Pollution.ElecComp.SO2Pollution,
3094 : OutputProcessor::SOVTimeStepType::System,
3095 : OutputProcessor::SOVStoreType::Summed,
3096 : "Site",
3097 : _,
3098 : "SO2",
3099 : "ElectricityEmissions",
3100 : _,
3101 166 : "");
3102 249 : SetupOutputVariable(state,
3103 : "Environmental Impact Electricity PM Emissions Mass",
3104 : OutputProcessor::Unit::kg,
3105 : Pollution.ElecComp.PMPollution,
3106 : OutputProcessor::SOVTimeStepType::System,
3107 : OutputProcessor::SOVStoreType::Summed,
3108 : "Site",
3109 : _,
3110 : "PM",
3111 : "ElectricityEmissions",
3112 : _,
3113 166 : "");
3114 249 : SetupOutputVariable(state,
3115 : "Environmental Impact Electricity PM10 Emissions Mass",
3116 : OutputProcessor::Unit::kg,
3117 : Pollution.ElecComp.PM10Pollution,
3118 : OutputProcessor::SOVTimeStepType::System,
3119 : OutputProcessor::SOVStoreType::Summed,
3120 : "Site",
3121 : _,
3122 : "PM10",
3123 : "ElectricityEmissions",
3124 : _,
3125 166 : "");
3126 249 : SetupOutputVariable(state,
3127 : "Environmental Impact Electricity PM2.5 Emissions Mass",
3128 : OutputProcessor::Unit::kg,
3129 : Pollution.ElecComp.PM25Pollution,
3130 : OutputProcessor::SOVTimeStepType::System,
3131 : OutputProcessor::SOVStoreType::Summed,
3132 : "Site",
3133 : _,
3134 : "PM2.5",
3135 : "ElectricityEmissions",
3136 : _,
3137 166 : "");
3138 249 : SetupOutputVariable(state,
3139 : "Environmental Impact Electricity NH3 Emissions Mass",
3140 : OutputProcessor::Unit::kg,
3141 : Pollution.ElecComp.NH3Pollution,
3142 : OutputProcessor::SOVTimeStepType::System,
3143 : OutputProcessor::SOVStoreType::Summed,
3144 : "Site",
3145 : _,
3146 : "NH3",
3147 : "ElectricityEmissions",
3148 : _,
3149 166 : "");
3150 249 : SetupOutputVariable(state,
3151 : "Environmental Impact Electricity NMVOC Emissions Mass",
3152 : OutputProcessor::Unit::kg,
3153 : Pollution.ElecComp.NMVOCPollution,
3154 : OutputProcessor::SOVTimeStepType::System,
3155 : OutputProcessor::SOVStoreType::Summed,
3156 : "Site",
3157 : _,
3158 : "NMVOC",
3159 : "ElectricityEmissions",
3160 : _,
3161 166 : "");
3162 249 : SetupOutputVariable(state,
3163 : "Environmental Impact Electricity Hg Emissions Mass",
3164 : OutputProcessor::Unit::kg,
3165 : Pollution.ElecComp.HgPollution,
3166 : OutputProcessor::SOVTimeStepType::System,
3167 : OutputProcessor::SOVStoreType::Summed,
3168 : "Site",
3169 : _,
3170 : "Hg",
3171 : "ElectricityEmissions",
3172 : _,
3173 166 : "");
3174 249 : SetupOutputVariable(state,
3175 : "Environmental Impact Electricity Pb Emissions Mass",
3176 : OutputProcessor::Unit::kg,
3177 : Pollution.ElecComp.PbPollution,
3178 : OutputProcessor::SOVTimeStepType::System,
3179 : OutputProcessor::SOVStoreType::Summed,
3180 : "Site",
3181 : _,
3182 : "Pb",
3183 : "ElectricityEmissions",
3184 : _,
3185 166 : "");
3186 249 : SetupOutputVariable(state,
3187 : "Environmental Impact Electricity Water Consumption Volume",
3188 : OutputProcessor::Unit::L,
3189 : Pollution.ElecComp.WaterPollution,
3190 : OutputProcessor::SOVTimeStepType::System,
3191 : OutputProcessor::SOVStoreType::Summed,
3192 : "Site",
3193 : _,
3194 : "WaterEnvironmentalFactors",
3195 : "ElectricityEmissions",
3196 : _,
3197 166 : "");
3198 249 : SetupOutputVariable(state,
3199 : "Environmental Impact Electricity Nuclear High Level Waste Mass",
3200 : OutputProcessor::Unit::kg,
3201 : Pollution.ElecComp.NucHiPollution,
3202 : OutputProcessor::SOVTimeStepType::System,
3203 : OutputProcessor::SOVStoreType::Summed,
3204 : "Site",
3205 : _,
3206 : "Nuclear High",
3207 : "ElectricityEmissions",
3208 : _,
3209 166 : "");
3210 249 : SetupOutputVariable(state,
3211 : "Environmental Impact Electricity Nuclear Low Level Waste Volume",
3212 : OutputProcessor::Unit::m3,
3213 : Pollution.ElecComp.NucLoPollution,
3214 : OutputProcessor::SOVTimeStepType::System,
3215 : OutputProcessor::SOVStoreType::Summed,
3216 : "Site",
3217 : _,
3218 : "Nuclear Low",
3219 : "ElectricityEmissions",
3220 : _,
3221 166 : "");
3222 249 : SetupOutputVariable(state,
3223 : "Environmental Impact Purchased Electricity Source Energy",
3224 : OutputProcessor::Unit::J,
3225 : Pollution.ElecPurchComp.Source,
3226 : OutputProcessor::SOVTimeStepType::System,
3227 : OutputProcessor::SOVStoreType::Summed,
3228 : "Site",
3229 : _,
3230 : "Source",
3231 : "PurchasedElectricityEmissions",
3232 : _,
3233 166 : "");
3234 249 : SetupOutputVariable(state,
3235 : "Environmental Impact Surplus Sold Electricity Source",
3236 : OutputProcessor::Unit::J,
3237 : Pollution.ElecSurplusSoldComp.Source,
3238 : OutputProcessor::SOVTimeStepType::System,
3239 : OutputProcessor::SOVStoreType::Summed,
3240 : "Site",
3241 : _,
3242 : "Source",
3243 : "SoldElectricityEmissions",
3244 : _,
3245 166 : "");
3246 24 : } else if (SELECT_CASE_var == "GASOLINE") {
3247 : // Pollutants from Gasoline
3248 0 : SetupOutputVariable(state,
3249 : "Environmental Impact Gasoline Source Energy",
3250 : OutputProcessor::Unit::J,
3251 : Pollution.GasolineComp.Source,
3252 : OutputProcessor::SOVTimeStepType::System,
3253 : OutputProcessor::SOVStoreType::Summed,
3254 : "Site",
3255 : _,
3256 : "Source",
3257 : "GasolineEmissions",
3258 : _,
3259 0 : "");
3260 0 : SetupOutputVariable(state,
3261 : "Environmental Impact Gasoline CO2 Emissions Mass",
3262 : OutputProcessor::Unit::kg,
3263 : Pollution.GasolineComp.CO2Pollution,
3264 : OutputProcessor::SOVTimeStepType::System,
3265 : OutputProcessor::SOVStoreType::Summed,
3266 : "Site",
3267 : _,
3268 : "CO2",
3269 : "GasolineEmissions",
3270 : _,
3271 0 : "");
3272 0 : SetupOutputVariable(state,
3273 : "Environmental Impact Gasoline CO Emissions Mass",
3274 : OutputProcessor::Unit::kg,
3275 : Pollution.GasolineComp.COPollution,
3276 : OutputProcessor::SOVTimeStepType::System,
3277 : OutputProcessor::SOVStoreType::Summed,
3278 : "Site",
3279 : _,
3280 : "CO",
3281 : "GasolineEmissions",
3282 : _,
3283 0 : "");
3284 0 : SetupOutputVariable(state,
3285 : "Environmental Impact Gasoline CH4 Emissions Mass",
3286 : OutputProcessor::Unit::kg,
3287 : Pollution.GasolineComp.CH4Pollution,
3288 : OutputProcessor::SOVTimeStepType::System,
3289 : OutputProcessor::SOVStoreType::Summed,
3290 : "Site",
3291 : _,
3292 : "CH4",
3293 : "GasolineEmissions",
3294 : _,
3295 0 : "");
3296 0 : SetupOutputVariable(state,
3297 : "Environmental Impact Gasoline NOx Emissions Mass",
3298 : OutputProcessor::Unit::kg,
3299 : Pollution.GasolineComp.NOxPollution,
3300 : OutputProcessor::SOVTimeStepType::System,
3301 : OutputProcessor::SOVStoreType::Summed,
3302 : "Site",
3303 : _,
3304 : "NOx",
3305 : "GasolineEmissions",
3306 : _,
3307 0 : "");
3308 0 : SetupOutputVariable(state,
3309 : "Environmental Impact Gasoline N2O Emissions Mass",
3310 : OutputProcessor::Unit::kg,
3311 : Pollution.GasolineComp.N2OPollution,
3312 : OutputProcessor::SOVTimeStepType::System,
3313 : OutputProcessor::SOVStoreType::Summed,
3314 : "Site",
3315 : _,
3316 : "N2O",
3317 : "GasolineEmissions",
3318 : _,
3319 0 : "");
3320 0 : SetupOutputVariable(state,
3321 : "Environmental Impact Gasoline SO2 Emissions Mass",
3322 : OutputProcessor::Unit::kg,
3323 : Pollution.GasolineComp.SO2Pollution,
3324 : OutputProcessor::SOVTimeStepType::System,
3325 : OutputProcessor::SOVStoreType::Summed,
3326 : "Site",
3327 : _,
3328 : "SO2",
3329 : "GasolineEmissions",
3330 : _,
3331 0 : "");
3332 0 : SetupOutputVariable(state,
3333 : "Environmental Impact Gasoline PM Emissions Mass",
3334 : OutputProcessor::Unit::kg,
3335 : Pollution.GasolineComp.PMPollution,
3336 : OutputProcessor::SOVTimeStepType::System,
3337 : OutputProcessor::SOVStoreType::Summed,
3338 : "Site",
3339 : _,
3340 : "PM",
3341 : "GasolineEmissions",
3342 : _,
3343 0 : "");
3344 0 : SetupOutputVariable(state,
3345 : "Environmental Impact Gasoline PM10 Emissions Mass",
3346 : OutputProcessor::Unit::kg,
3347 : Pollution.GasolineComp.PM10Pollution,
3348 : OutputProcessor::SOVTimeStepType::System,
3349 : OutputProcessor::SOVStoreType::Summed,
3350 : "Site",
3351 : _,
3352 : "PM10",
3353 : "GasolineEmissions",
3354 : _,
3355 0 : "");
3356 0 : SetupOutputVariable(state,
3357 : "Environmental Impact Gasoline PM2.5 Emissions Mass",
3358 : OutputProcessor::Unit::kg,
3359 : Pollution.GasolineComp.PM25Pollution,
3360 : OutputProcessor::SOVTimeStepType::System,
3361 : OutputProcessor::SOVStoreType::Summed,
3362 : "Site",
3363 : _,
3364 : "PM2.5",
3365 : "GasolineEmissions",
3366 : _,
3367 0 : "");
3368 0 : SetupOutputVariable(state,
3369 : "Environmental Impact Gasoline NH3 Emissions Mass",
3370 : OutputProcessor::Unit::kg,
3371 : Pollution.GasolineComp.NH3Pollution,
3372 : OutputProcessor::SOVTimeStepType::System,
3373 : OutputProcessor::SOVStoreType::Summed,
3374 : "Site",
3375 : _,
3376 : "NH3",
3377 : "GasolineEmissions",
3378 : _,
3379 0 : "");
3380 0 : SetupOutputVariable(state,
3381 : "Environmental Impact Gasoline NMVOC Emissions Mass",
3382 : OutputProcessor::Unit::kg,
3383 : Pollution.GasolineComp.NMVOCPollution,
3384 : OutputProcessor::SOVTimeStepType::System,
3385 : OutputProcessor::SOVStoreType::Summed,
3386 : "Site",
3387 : _,
3388 : "NMVOC",
3389 : "GasolineEmissions",
3390 : _,
3391 0 : "");
3392 0 : SetupOutputVariable(state,
3393 : "Environmental Impact Gasoline Hg Emissions Mass",
3394 : OutputProcessor::Unit::kg,
3395 : Pollution.GasolineComp.HgPollution,
3396 : OutputProcessor::SOVTimeStepType::System,
3397 : OutputProcessor::SOVStoreType::Summed,
3398 : "Site",
3399 : _,
3400 : "Hg",
3401 : "GasolineEmissions",
3402 : _,
3403 0 : "");
3404 0 : SetupOutputVariable(state,
3405 : "Environmental Impact Gasoline Pb Emissions Mass",
3406 : OutputProcessor::Unit::kg,
3407 : Pollution.GasolineComp.PbPollution,
3408 : OutputProcessor::SOVTimeStepType::System,
3409 : OutputProcessor::SOVStoreType::Summed,
3410 : "Site",
3411 : _,
3412 : "Pb",
3413 : "GasolineEmissions",
3414 : _,
3415 0 : "");
3416 0 : SetupOutputVariable(state,
3417 : "Environmental Impact Gasoline Water Consumption Volume",
3418 : OutputProcessor::Unit::L,
3419 : Pollution.GasolineComp.WaterPollution,
3420 : OutputProcessor::SOVTimeStepType::System,
3421 : OutputProcessor::SOVStoreType::Summed,
3422 : "Site",
3423 : _,
3424 : "WaterEnvironmentalFactors",
3425 : "GasolineEmissions",
3426 : _,
3427 0 : "");
3428 0 : SetupOutputVariable(state,
3429 : "Environmental Impact Gasoline Nuclear High Level Waste Mass",
3430 : OutputProcessor::Unit::kg,
3431 : Pollution.GasolineComp.NucHiPollution,
3432 : OutputProcessor::SOVTimeStepType::System,
3433 : OutputProcessor::SOVStoreType::Summed,
3434 : "Site",
3435 : _,
3436 : "Nuclear High",
3437 : "GasolineEmissions",
3438 : _,
3439 0 : "");
3440 0 : SetupOutputVariable(state,
3441 : "Environmental Impact Gasoline Nuclear Low Level Waste Volume",
3442 : OutputProcessor::Unit::m3,
3443 : Pollution.GasolineComp.NucLoPollution,
3444 : OutputProcessor::SOVTimeStepType::System,
3445 : OutputProcessor::SOVStoreType::Summed,
3446 : "Site",
3447 : _,
3448 : "Nuclear Low",
3449 : "GasolineEmissions",
3450 : _,
3451 0 : "");
3452 :
3453 24 : } else if (SELECT_CASE_var == "PROPANE") {
3454 : // Pollutants from Propane
3455 63 : SetupOutputVariable(state,
3456 : "Environmental Impact Propane Source Energy",
3457 : OutputProcessor::Unit::J,
3458 : Pollution.PropaneComp.Source,
3459 : OutputProcessor::SOVTimeStepType::System,
3460 : OutputProcessor::SOVStoreType::Summed,
3461 : "Site",
3462 : _,
3463 : "Source",
3464 : "PropaneEmissions",
3465 : _,
3466 42 : "");
3467 63 : SetupOutputVariable(state,
3468 : "Environmental Impact Propane CO2 Emissions Mass",
3469 : OutputProcessor::Unit::kg,
3470 : Pollution.PropaneComp.CO2Pollution,
3471 : OutputProcessor::SOVTimeStepType::System,
3472 : OutputProcessor::SOVStoreType::Summed,
3473 : "Site",
3474 : _,
3475 : "CO2",
3476 : "PropaneEmissions",
3477 : _,
3478 42 : "");
3479 63 : SetupOutputVariable(state,
3480 : "Environmental Impact Propane CO Emissions Mass",
3481 : OutputProcessor::Unit::kg,
3482 : Pollution.PropaneComp.COPollution,
3483 : OutputProcessor::SOVTimeStepType::System,
3484 : OutputProcessor::SOVStoreType::Summed,
3485 : "Site",
3486 : _,
3487 : "CO",
3488 : "PropaneEmissions",
3489 : _,
3490 42 : "");
3491 63 : SetupOutputVariable(state,
3492 : "Environmental Impact Propane CH4 Emissions Mass",
3493 : OutputProcessor::Unit::kg,
3494 : Pollution.PropaneComp.CH4Pollution,
3495 : OutputProcessor::SOVTimeStepType::System,
3496 : OutputProcessor::SOVStoreType::Summed,
3497 : "Site",
3498 : _,
3499 : "CH4",
3500 : "PropaneEmissions",
3501 : _,
3502 42 : "");
3503 63 : SetupOutputVariable(state,
3504 : "Environmental Impact Propane NOx Emissions Mass",
3505 : OutputProcessor::Unit::kg,
3506 : Pollution.PropaneComp.NOxPollution,
3507 : OutputProcessor::SOVTimeStepType::System,
3508 : OutputProcessor::SOVStoreType::Summed,
3509 : "Site",
3510 : _,
3511 : "NOx",
3512 : "PropaneEmissions",
3513 : _,
3514 42 : "");
3515 63 : SetupOutputVariable(state,
3516 : "Environmental Impact Propane N2O Emissions Mass",
3517 : OutputProcessor::Unit::kg,
3518 : Pollution.PropaneComp.N2OPollution,
3519 : OutputProcessor::SOVTimeStepType::System,
3520 : OutputProcessor::SOVStoreType::Summed,
3521 : "Site",
3522 : _,
3523 : "N2O",
3524 : "PropaneEmissions",
3525 : _,
3526 42 : "");
3527 63 : SetupOutputVariable(state,
3528 : "Environmental Impact Propane SO2 Emissions Mass",
3529 : OutputProcessor::Unit::kg,
3530 : Pollution.PropaneComp.SO2Pollution,
3531 : OutputProcessor::SOVTimeStepType::System,
3532 : OutputProcessor::SOVStoreType::Summed,
3533 : "Site",
3534 : _,
3535 : "SO2",
3536 : "PropaneEmissions",
3537 : _,
3538 42 : "");
3539 63 : SetupOutputVariable(state,
3540 : "Environmental Impact Propane PM Emissions Mass",
3541 : OutputProcessor::Unit::kg,
3542 : Pollution.PropaneComp.PMPollution,
3543 : OutputProcessor::SOVTimeStepType::System,
3544 : OutputProcessor::SOVStoreType::Summed,
3545 : "Site",
3546 : _,
3547 : "PM",
3548 : "PropaneEmissions",
3549 : _,
3550 42 : "");
3551 63 : SetupOutputVariable(state,
3552 : "Environmental Impact Propane PM10 Emissions Mass",
3553 : OutputProcessor::Unit::kg,
3554 : Pollution.PropaneComp.PM10Pollution,
3555 : OutputProcessor::SOVTimeStepType::System,
3556 : OutputProcessor::SOVStoreType::Summed,
3557 : "Site",
3558 : _,
3559 : "PM10",
3560 : "PropaneEmissions",
3561 : _,
3562 42 : "");
3563 63 : SetupOutputVariable(state,
3564 : "Environmental Impact Propane PM2.5 Emissions Mass",
3565 : OutputProcessor::Unit::kg,
3566 : Pollution.PropaneComp.PM25Pollution,
3567 : OutputProcessor::SOVTimeStepType::System,
3568 : OutputProcessor::SOVStoreType::Summed,
3569 : "Site",
3570 : _,
3571 : "PM2.5",
3572 : "PropaneEmissions",
3573 : _,
3574 42 : "");
3575 63 : SetupOutputVariable(state,
3576 : "Environmental Impact Propane NH3 Emissions Mass",
3577 : OutputProcessor::Unit::kg,
3578 : Pollution.PropaneComp.NH3Pollution,
3579 : OutputProcessor::SOVTimeStepType::System,
3580 : OutputProcessor::SOVStoreType::Summed,
3581 : "Site",
3582 : _,
3583 : "NH3",
3584 : "PropaneEmissions",
3585 : _,
3586 42 : "");
3587 63 : SetupOutputVariable(state,
3588 : "Environmental Impact Propane NMVOC Emissions Mass",
3589 : OutputProcessor::Unit::kg,
3590 : Pollution.PropaneComp.NMVOCPollution,
3591 : OutputProcessor::SOVTimeStepType::System,
3592 : OutputProcessor::SOVStoreType::Summed,
3593 : "Site",
3594 : _,
3595 : "NMVOC",
3596 : "PropaneEmissions",
3597 : _,
3598 42 : "");
3599 63 : SetupOutputVariable(state,
3600 : "Environmental Impact Propane Hg Emissions Mass",
3601 : OutputProcessor::Unit::kg,
3602 : Pollution.PropaneComp.HgPollution,
3603 : OutputProcessor::SOVTimeStepType::System,
3604 : OutputProcessor::SOVStoreType::Summed,
3605 : "Site",
3606 : _,
3607 : "Hg",
3608 : "PropaneEmissions",
3609 : _,
3610 42 : "");
3611 63 : SetupOutputVariable(state,
3612 : "Environmental Impact Propane Pb Emissions Mass",
3613 : OutputProcessor::Unit::kg,
3614 : Pollution.PropaneComp.PbPollution,
3615 : OutputProcessor::SOVTimeStepType::System,
3616 : OutputProcessor::SOVStoreType::Summed,
3617 : "Site",
3618 : _,
3619 : "Pb",
3620 : "PropaneEmissions",
3621 : _,
3622 42 : "");
3623 63 : SetupOutputVariable(state,
3624 : "Environmental Impact Propane Water Consumption Volume",
3625 : OutputProcessor::Unit::L,
3626 : Pollution.PropaneComp.WaterPollution,
3627 : OutputProcessor::SOVTimeStepType::System,
3628 : OutputProcessor::SOVStoreType::Summed,
3629 : "Site",
3630 : _,
3631 : "WaterEnvironmentalFactors",
3632 : "PropaneEmissions",
3633 : _,
3634 42 : "");
3635 63 : SetupOutputVariable(state,
3636 : "Environmental Impact Propane Nuclear High Level Waste Mass",
3637 : OutputProcessor::Unit::kg,
3638 : Pollution.PropaneComp.NucHiPollution,
3639 : OutputProcessor::SOVTimeStepType::System,
3640 : OutputProcessor::SOVStoreType::Summed,
3641 : "Site",
3642 : _,
3643 : "Nuclear High",
3644 : "PropaneEmissions",
3645 : _,
3646 42 : "");
3647 63 : SetupOutputVariable(state,
3648 : "Environmental Impact Propane Nuclear Low Level Waste Volume",
3649 : OutputProcessor::Unit::m3,
3650 : Pollution.PropaneComp.NucLoPollution,
3651 : OutputProcessor::SOVTimeStepType::System,
3652 : OutputProcessor::SOVStoreType::Summed,
3653 : "Site",
3654 : _,
3655 : "Nuclear Low",
3656 : "PropaneEmissions",
3657 : _,
3658 42 : "");
3659 :
3660 3 : } else if (SELECT_CASE_var == "DIESEL") {
3661 : // Pollutants from Diesel
3662 6 : SetupOutputVariable(state,
3663 : "Environmental Impact Diesel Source Energy",
3664 : OutputProcessor::Unit::J,
3665 : Pollution.DieselComp.Source,
3666 : OutputProcessor::SOVTimeStepType::System,
3667 : OutputProcessor::SOVStoreType::Summed,
3668 : "Site",
3669 : _,
3670 : "Source",
3671 : "DieselEmissions",
3672 : _,
3673 4 : "");
3674 6 : SetupOutputVariable(state,
3675 : "Environmental Impact Diesel CO2 Emissions Mass",
3676 : OutputProcessor::Unit::kg,
3677 : Pollution.DieselComp.CO2Pollution,
3678 : OutputProcessor::SOVTimeStepType::System,
3679 : OutputProcessor::SOVStoreType::Summed,
3680 : "Site",
3681 : _,
3682 : "CO2",
3683 : "DieselEmissions",
3684 : _,
3685 4 : "");
3686 6 : SetupOutputVariable(state,
3687 : "Environmental Impact Diesel CO Emissions Mass",
3688 : OutputProcessor::Unit::kg,
3689 : Pollution.DieselComp.COPollution,
3690 : OutputProcessor::SOVTimeStepType::System,
3691 : OutputProcessor::SOVStoreType::Summed,
3692 : "Site",
3693 : _,
3694 : "CO",
3695 : "DieselEmissions",
3696 : _,
3697 4 : "");
3698 6 : SetupOutputVariable(state,
3699 : "Environmental Impact Diesel CH4 Emissions Mass",
3700 : OutputProcessor::Unit::kg,
3701 : Pollution.DieselComp.CH4Pollution,
3702 : OutputProcessor::SOVTimeStepType::System,
3703 : OutputProcessor::SOVStoreType::Summed,
3704 : "Site",
3705 : _,
3706 : "CH4",
3707 : "DieselEmissions",
3708 : _,
3709 4 : "");
3710 6 : SetupOutputVariable(state,
3711 : "Environmental Impact Diesel NOx Emissions Mass",
3712 : OutputProcessor::Unit::kg,
3713 : Pollution.DieselComp.NOxPollution,
3714 : OutputProcessor::SOVTimeStepType::System,
3715 : OutputProcessor::SOVStoreType::Summed,
3716 : "Site",
3717 : _,
3718 : "NOx",
3719 : "DieselEmissions",
3720 : _,
3721 4 : "");
3722 6 : SetupOutputVariable(state,
3723 : "Environmental Impact Diesel N2O Emissions Mass",
3724 : OutputProcessor::Unit::kg,
3725 : Pollution.DieselComp.N2OPollution,
3726 : OutputProcessor::SOVTimeStepType::System,
3727 : OutputProcessor::SOVStoreType::Summed,
3728 : "Site",
3729 : _,
3730 : "N2O",
3731 : "DieselEmissions",
3732 : _,
3733 4 : "");
3734 6 : SetupOutputVariable(state,
3735 : "Environmental Impact Diesel SO2 Emissions Mass",
3736 : OutputProcessor::Unit::kg,
3737 : Pollution.DieselComp.SO2Pollution,
3738 : OutputProcessor::SOVTimeStepType::System,
3739 : OutputProcessor::SOVStoreType::Summed,
3740 : "Site",
3741 : _,
3742 : "SO2",
3743 : "DieselEmissions",
3744 : _,
3745 4 : "");
3746 6 : SetupOutputVariable(state,
3747 : "Environmental Impact Diesel PM Emissions Mass",
3748 : OutputProcessor::Unit::kg,
3749 : Pollution.DieselComp.PMPollution,
3750 : OutputProcessor::SOVTimeStepType::System,
3751 : OutputProcessor::SOVStoreType::Summed,
3752 : "Site",
3753 : _,
3754 : "PM",
3755 : "DieselEmissions",
3756 : _,
3757 4 : "");
3758 6 : SetupOutputVariable(state,
3759 : "Environmental Impact Diesel PM10 Emissions Mass",
3760 : OutputProcessor::Unit::kg,
3761 : Pollution.DieselComp.PM10Pollution,
3762 : OutputProcessor::SOVTimeStepType::System,
3763 : OutputProcessor::SOVStoreType::Summed,
3764 : "Site",
3765 : _,
3766 : "PM10",
3767 : "DieselEmissions",
3768 : _,
3769 4 : "");
3770 6 : SetupOutputVariable(state,
3771 : "Environmental Impact Diesel PM2.5 Emissions Mass",
3772 : OutputProcessor::Unit::kg,
3773 : Pollution.DieselComp.PM25Pollution,
3774 : OutputProcessor::SOVTimeStepType::System,
3775 : OutputProcessor::SOVStoreType::Summed,
3776 : "Site",
3777 : _,
3778 : "PM2.5",
3779 : "DieselEmissions",
3780 : _,
3781 4 : "");
3782 6 : SetupOutputVariable(state,
3783 : "Environmental Impact Diesel NH3 Emissions Mass",
3784 : OutputProcessor::Unit::kg,
3785 : Pollution.DieselComp.NH3Pollution,
3786 : OutputProcessor::SOVTimeStepType::System,
3787 : OutputProcessor::SOVStoreType::Summed,
3788 : "Site",
3789 : _,
3790 : "NH3",
3791 : "DieselEmissions",
3792 : _,
3793 4 : "");
3794 6 : SetupOutputVariable(state,
3795 : "Environmental Impact Diesel NMVOC Emissions Mass",
3796 : OutputProcessor::Unit::kg,
3797 : Pollution.DieselComp.NMVOCPollution,
3798 : OutputProcessor::SOVTimeStepType::System,
3799 : OutputProcessor::SOVStoreType::Summed,
3800 : "Site",
3801 : _,
3802 : "NMVOC",
3803 : "DieselEmissions",
3804 : _,
3805 4 : "");
3806 6 : SetupOutputVariable(state,
3807 : "Environmental Impact Diesel Hg Emissions Mass",
3808 : OutputProcessor::Unit::kg,
3809 : Pollution.DieselComp.HgPollution,
3810 : OutputProcessor::SOVTimeStepType::System,
3811 : OutputProcessor::SOVStoreType::Summed,
3812 : "Site",
3813 : _,
3814 : "Hg",
3815 : "DieselEmissions",
3816 : _,
3817 4 : "");
3818 6 : SetupOutputVariable(state,
3819 : "Environmental Impact Diesel Pb Emissions Mass",
3820 : OutputProcessor::Unit::kg,
3821 : Pollution.DieselComp.PbPollution,
3822 : OutputProcessor::SOVTimeStepType::System,
3823 : OutputProcessor::SOVStoreType::Summed,
3824 : "Site",
3825 : _,
3826 : "Pb",
3827 : "DieselEmissions",
3828 : _,
3829 4 : "");
3830 6 : SetupOutputVariable(state,
3831 : "Environmental Impact Diesel Water Consumption Volume",
3832 : OutputProcessor::Unit::L,
3833 : Pollution.DieselComp.WaterPollution,
3834 : OutputProcessor::SOVTimeStepType::System,
3835 : OutputProcessor::SOVStoreType::Summed,
3836 : "Site",
3837 : _,
3838 : "WaterEnvironmentalFactors",
3839 : "DieselEmissions",
3840 : _,
3841 4 : "");
3842 6 : SetupOutputVariable(state,
3843 : "Environmental Impact Diesel Nuclear High Level Waste Mass",
3844 : OutputProcessor::Unit::kg,
3845 : Pollution.DieselComp.NucHiPollution,
3846 : OutputProcessor::SOVTimeStepType::System,
3847 : OutputProcessor::SOVStoreType::Summed,
3848 : "Site",
3849 : _,
3850 : "Nuclear High",
3851 : "DieselEmissions",
3852 : _,
3853 4 : "");
3854 6 : SetupOutputVariable(state,
3855 : "Environmental Impact Diesel Nuclear Low Level Waste Volume",
3856 : OutputProcessor::Unit::m3,
3857 : Pollution.DieselComp.NucLoPollution,
3858 : OutputProcessor::SOVTimeStepType::System,
3859 : OutputProcessor::SOVStoreType::Summed,
3860 : "Site",
3861 : _,
3862 : "Nuclear Low",
3863 : "DieselEmissions",
3864 : _,
3865 4 : "");
3866 :
3867 1 : } else if (SELECT_CASE_var == "OTHERFUEL1") {
3868 : // Pollutants from OtherFuel1
3869 3 : SetupOutputVariable(state,
3870 : "Environmental Impact OtherFuel1 Source Energy",
3871 : OutputProcessor::Unit::J,
3872 : Pollution.OtherFuel1Comp.Source,
3873 : OutputProcessor::SOVTimeStepType::System,
3874 : OutputProcessor::SOVStoreType::Summed,
3875 : "Site",
3876 : _,
3877 : "Source",
3878 : "OtherFuel1Emissions",
3879 : _,
3880 2 : "");
3881 3 : SetupOutputVariable(state,
3882 : "Environmental Impact OtherFuel1 CO2 Emissions Mass",
3883 : OutputProcessor::Unit::kg,
3884 : Pollution.OtherFuel1Comp.CO2Pollution,
3885 : OutputProcessor::SOVTimeStepType::System,
3886 : OutputProcessor::SOVStoreType::Summed,
3887 : "Site",
3888 : _,
3889 : "CO2",
3890 : "OtherFuel1Emissions",
3891 : _,
3892 2 : "");
3893 3 : SetupOutputVariable(state,
3894 : "Environmental Impact OtherFuel1 CO Emissions Mass",
3895 : OutputProcessor::Unit::kg,
3896 : Pollution.OtherFuel1Comp.COPollution,
3897 : OutputProcessor::SOVTimeStepType::System,
3898 : OutputProcessor::SOVStoreType::Summed,
3899 : "Site",
3900 : _,
3901 : "CO",
3902 : "OtherFuel1Emissions",
3903 : _,
3904 2 : "");
3905 3 : SetupOutputVariable(state,
3906 : "Environmental Impact OtherFuel1 CH4 Emissions Mass",
3907 : OutputProcessor::Unit::kg,
3908 : Pollution.OtherFuel1Comp.CH4Pollution,
3909 : OutputProcessor::SOVTimeStepType::System,
3910 : OutputProcessor::SOVStoreType::Summed,
3911 : "Site",
3912 : _,
3913 : "CH4",
3914 : "OtherFuel1Emissions",
3915 : _,
3916 2 : "");
3917 3 : SetupOutputVariable(state,
3918 : "Environmental Impact OtherFuel1 NOx Emissions Mass",
3919 : OutputProcessor::Unit::kg,
3920 : Pollution.OtherFuel1Comp.NOxPollution,
3921 : OutputProcessor::SOVTimeStepType::System,
3922 : OutputProcessor::SOVStoreType::Summed,
3923 : "Site",
3924 : _,
3925 : "NOx",
3926 : "OtherFuel1Emissions",
3927 : _,
3928 2 : "");
3929 3 : SetupOutputVariable(state,
3930 : "Environmental Impact OtherFuel1 N2O Emissions Mass",
3931 : OutputProcessor::Unit::kg,
3932 : Pollution.OtherFuel1Comp.N2OPollution,
3933 : OutputProcessor::SOVTimeStepType::System,
3934 : OutputProcessor::SOVStoreType::Summed,
3935 : "Site",
3936 : _,
3937 : "N2O",
3938 : "OtherFuel1Emissions",
3939 : _,
3940 2 : "");
3941 3 : SetupOutputVariable(state,
3942 : "Environmental Impact OtherFuel1 SO2 Emissions Mass",
3943 : OutputProcessor::Unit::kg,
3944 : Pollution.OtherFuel1Comp.SO2Pollution,
3945 : OutputProcessor::SOVTimeStepType::System,
3946 : OutputProcessor::SOVStoreType::Summed,
3947 : "Site",
3948 : _,
3949 : "SO2",
3950 : "OtherFuel1Emissions",
3951 : _,
3952 2 : "");
3953 3 : SetupOutputVariable(state,
3954 : "Environmental Impact OtherFuel1 PM Emissions Mass",
3955 : OutputProcessor::Unit::kg,
3956 : Pollution.OtherFuel1Comp.PMPollution,
3957 : OutputProcessor::SOVTimeStepType::System,
3958 : OutputProcessor::SOVStoreType::Summed,
3959 : "Site",
3960 : _,
3961 : "PM",
3962 : "OtherFuel1Emissions",
3963 : _,
3964 2 : "");
3965 3 : SetupOutputVariable(state,
3966 : "Environmental Impact OtherFuel1 PM10 Emissions Mass",
3967 : OutputProcessor::Unit::kg,
3968 : Pollution.OtherFuel1Comp.PM10Pollution,
3969 : OutputProcessor::SOVTimeStepType::System,
3970 : OutputProcessor::SOVStoreType::Summed,
3971 : "Site",
3972 : _,
3973 : "PM10",
3974 : "OtherFuel1Emissions",
3975 : _,
3976 2 : "");
3977 3 : SetupOutputVariable(state,
3978 : "Environmental Impact OtherFuel1 PM2.5 Emissions Mass",
3979 : OutputProcessor::Unit::kg,
3980 : Pollution.OtherFuel1Comp.PM25Pollution,
3981 : OutputProcessor::SOVTimeStepType::System,
3982 : OutputProcessor::SOVStoreType::Summed,
3983 : "Site",
3984 : _,
3985 : "PM2.5",
3986 : "OtherFuel1Emissions",
3987 : _,
3988 2 : "");
3989 3 : SetupOutputVariable(state,
3990 : "Environmental Impact OtherFuel1 NH3 Emissions Mass",
3991 : OutputProcessor::Unit::kg,
3992 : Pollution.OtherFuel1Comp.NH3Pollution,
3993 : OutputProcessor::SOVTimeStepType::System,
3994 : OutputProcessor::SOVStoreType::Summed,
3995 : "Site",
3996 : _,
3997 : "NH3",
3998 : "OtherFuel1Emissions",
3999 : _,
4000 2 : "");
4001 3 : SetupOutputVariable(state,
4002 : "Environmental Impact OtherFuel1 NMVOC Emissions Mass",
4003 : OutputProcessor::Unit::kg,
4004 : Pollution.OtherFuel1Comp.NMVOCPollution,
4005 : OutputProcessor::SOVTimeStepType::System,
4006 : OutputProcessor::SOVStoreType::Summed,
4007 : "Site",
4008 : _,
4009 : "NMVOC",
4010 : "OtherFuel1Emissions",
4011 : _,
4012 2 : "");
4013 3 : SetupOutputVariable(state,
4014 : "Environmental Impact OtherFuel1 Hg Emissions Mass",
4015 : OutputProcessor::Unit::kg,
4016 : Pollution.OtherFuel1Comp.HgPollution,
4017 : OutputProcessor::SOVTimeStepType::System,
4018 : OutputProcessor::SOVStoreType::Summed,
4019 : "Site",
4020 : _,
4021 : "Hg",
4022 : "OtherFuel1Emissions",
4023 : _,
4024 2 : "");
4025 3 : SetupOutputVariable(state,
4026 : "Environmental Impact OtherFuel1 Pb Emissions Mass",
4027 : OutputProcessor::Unit::kg,
4028 : Pollution.OtherFuel1Comp.PbPollution,
4029 : OutputProcessor::SOVTimeStepType::System,
4030 : OutputProcessor::SOVStoreType::Summed,
4031 : "Site",
4032 : _,
4033 : "Pb",
4034 : "OtherFuel1Emissions",
4035 : _,
4036 2 : "");
4037 3 : SetupOutputVariable(state,
4038 : "Environmental Impact OtherFuel1 Water Consumption Volume",
4039 : OutputProcessor::Unit::L,
4040 : Pollution.OtherFuel1Comp.WaterPollution,
4041 : OutputProcessor::SOVTimeStepType::System,
4042 : OutputProcessor::SOVStoreType::Summed,
4043 : "Site",
4044 : _,
4045 : "WaterEnvironmentalFactors",
4046 : "OtherFuel1Emissions",
4047 : _,
4048 2 : "");
4049 3 : SetupOutputVariable(state,
4050 : "Environmental Impact OtherFuel1 Nuclear High Level Waste Mass",
4051 : OutputProcessor::Unit::kg,
4052 : Pollution.OtherFuel1Comp.NucHiPollution,
4053 : OutputProcessor::SOVTimeStepType::System,
4054 : OutputProcessor::SOVStoreType::Summed,
4055 : "Site",
4056 : _,
4057 : "Nuclear High",
4058 : "OtherFuel1Emissions",
4059 : _,
4060 2 : "");
4061 3 : SetupOutputVariable(state,
4062 : "Environmental Impact OtherFuel1 Nuclear Low Level Waste Volume",
4063 : OutputProcessor::Unit::m3,
4064 : Pollution.OtherFuel1Comp.NucLoPollution,
4065 : OutputProcessor::SOVTimeStepType::System,
4066 : OutputProcessor::SOVStoreType::Summed,
4067 : "Site",
4068 : _,
4069 : "Nuclear Low",
4070 : "OtherFuel1Emissions",
4071 : _,
4072 2 : "");
4073 :
4074 0 : } else if (SELECT_CASE_var == "OTHERFUEL2") {
4075 : // Pollutants from OtherFuel2
4076 0 : SetupOutputVariable(state,
4077 : "Environmental Impact OtherFuel2 Source Energy",
4078 : OutputProcessor::Unit::J,
4079 : Pollution.OtherFuel2Comp.Source,
4080 : OutputProcessor::SOVTimeStepType::System,
4081 : OutputProcessor::SOVStoreType::Summed,
4082 : "Site",
4083 : _,
4084 : "Source",
4085 : "OtherFuel2Emissions",
4086 : _,
4087 0 : "");
4088 0 : SetupOutputVariable(state,
4089 : "Environmental Impact OtherFuel2 CO2 Emissions Mass",
4090 : OutputProcessor::Unit::kg,
4091 : Pollution.OtherFuel2Comp.CO2Pollution,
4092 : OutputProcessor::SOVTimeStepType::System,
4093 : OutputProcessor::SOVStoreType::Summed,
4094 : "Site",
4095 : _,
4096 : "CO2",
4097 : "OtherFuel2Emissions",
4098 : _,
4099 0 : "");
4100 0 : SetupOutputVariable(state,
4101 : "Environmental Impact OtherFuel2 CO Emissions Mass",
4102 : OutputProcessor::Unit::kg,
4103 : Pollution.OtherFuel2Comp.COPollution,
4104 : OutputProcessor::SOVTimeStepType::System,
4105 : OutputProcessor::SOVStoreType::Summed,
4106 : "Site",
4107 : _,
4108 : "CO",
4109 : "OtherFuel2Emissions",
4110 : _,
4111 0 : "");
4112 0 : SetupOutputVariable(state,
4113 : "Environmental Impact OtherFuel2 CH4 Emissions Mass",
4114 : OutputProcessor::Unit::kg,
4115 : Pollution.OtherFuel2Comp.CH4Pollution,
4116 : OutputProcessor::SOVTimeStepType::System,
4117 : OutputProcessor::SOVStoreType::Summed,
4118 : "Site",
4119 : _,
4120 : "CH4",
4121 : "OtherFuel2Emissions",
4122 : _,
4123 0 : "");
4124 0 : SetupOutputVariable(state,
4125 : "Environmental Impact OtherFuel2 NOx Emissions Mass",
4126 : OutputProcessor::Unit::kg,
4127 : Pollution.OtherFuel2Comp.NOxPollution,
4128 : OutputProcessor::SOVTimeStepType::System,
4129 : OutputProcessor::SOVStoreType::Summed,
4130 : "Site",
4131 : _,
4132 : "NOx",
4133 : "OtherFuel2Emissions",
4134 : _,
4135 0 : "");
4136 0 : SetupOutputVariable(state,
4137 : "Environmental Impact OtherFuel2 N2O Emissions Mass",
4138 : OutputProcessor::Unit::kg,
4139 : Pollution.OtherFuel2Comp.N2OPollution,
4140 : OutputProcessor::SOVTimeStepType::System,
4141 : OutputProcessor::SOVStoreType::Summed,
4142 : "Site",
4143 : _,
4144 : "N2O",
4145 : "OtherFuel2Emissions",
4146 : _,
4147 0 : "");
4148 0 : SetupOutputVariable(state,
4149 : "Environmental Impact OtherFuel2 SO2 Emissions Mass",
4150 : OutputProcessor::Unit::kg,
4151 : Pollution.OtherFuel2Comp.SO2Pollution,
4152 : OutputProcessor::SOVTimeStepType::System,
4153 : OutputProcessor::SOVStoreType::Summed,
4154 : "Site",
4155 : _,
4156 : "SO2",
4157 : "OtherFuel2Emissions",
4158 : _,
4159 0 : "");
4160 0 : SetupOutputVariable(state,
4161 : "Environmental Impact OtherFuel2 PM Emissions Mass",
4162 : OutputProcessor::Unit::kg,
4163 : Pollution.OtherFuel2Comp.PMPollution,
4164 : OutputProcessor::SOVTimeStepType::System,
4165 : OutputProcessor::SOVStoreType::Summed,
4166 : "Site",
4167 : _,
4168 : "PM",
4169 : "OtherFuel2Emissions",
4170 : _,
4171 0 : "");
4172 0 : SetupOutputVariable(state,
4173 : "Environmental Impact OtherFuel2 PM10 Emissions Mass",
4174 : OutputProcessor::Unit::kg,
4175 : Pollution.OtherFuel2Comp.PM10Pollution,
4176 : OutputProcessor::SOVTimeStepType::System,
4177 : OutputProcessor::SOVStoreType::Summed,
4178 : "Site",
4179 : _,
4180 : "PM10",
4181 : "OtherFuel2Emissions",
4182 : _,
4183 0 : "");
4184 0 : SetupOutputVariable(state,
4185 : "Environmental Impact OtherFuel2 PM2.5 Emissions Mass",
4186 : OutputProcessor::Unit::kg,
4187 : Pollution.OtherFuel2Comp.PM25Pollution,
4188 : OutputProcessor::SOVTimeStepType::System,
4189 : OutputProcessor::SOVStoreType::Summed,
4190 : "Site",
4191 : _,
4192 : "PM2.5",
4193 : "OtherFuel2Emissions",
4194 : _,
4195 0 : "");
4196 0 : SetupOutputVariable(state,
4197 : "Environmental Impact OtherFuel2 NH3 Emissions Mass",
4198 : OutputProcessor::Unit::kg,
4199 : Pollution.OtherFuel2Comp.NH3Pollution,
4200 : OutputProcessor::SOVTimeStepType::System,
4201 : OutputProcessor::SOVStoreType::Summed,
4202 : "Site",
4203 : _,
4204 : "NH3",
4205 : "OtherFuel2Emissions",
4206 : _,
4207 0 : "");
4208 0 : SetupOutputVariable(state,
4209 : "Environmental Impact OtherFuel2 NMVOC Emissions Mass",
4210 : OutputProcessor::Unit::kg,
4211 : Pollution.OtherFuel2Comp.NMVOCPollution,
4212 : OutputProcessor::SOVTimeStepType::System,
4213 : OutputProcessor::SOVStoreType::Summed,
4214 : "Site",
4215 : _,
4216 : "NMVOC",
4217 : "OtherFuel2Emissions",
4218 : _,
4219 0 : "");
4220 0 : SetupOutputVariable(state,
4221 : "Environmental Impact OtherFuel2 Hg Emissions Mass",
4222 : OutputProcessor::Unit::kg,
4223 : Pollution.OtherFuel2Comp.HgPollution,
4224 : OutputProcessor::SOVTimeStepType::System,
4225 : OutputProcessor::SOVStoreType::Summed,
4226 : "Site",
4227 : _,
4228 : "Hg",
4229 : "OtherFuel2Emissions",
4230 : _,
4231 0 : "");
4232 0 : SetupOutputVariable(state,
4233 : "Environmental Impact OtherFuel2 Pb Emissions Mass",
4234 : OutputProcessor::Unit::kg,
4235 : Pollution.OtherFuel2Comp.PbPollution,
4236 : OutputProcessor::SOVTimeStepType::System,
4237 : OutputProcessor::SOVStoreType::Summed,
4238 : "Site",
4239 : _,
4240 : "Pb",
4241 : "OtherFuel2Emissions",
4242 : _,
4243 0 : "");
4244 0 : SetupOutputVariable(state,
4245 : "Environmental Impact OtherFuel2 Water Consumption Volume",
4246 : OutputProcessor::Unit::L,
4247 : Pollution.OtherFuel2Comp.WaterPollution,
4248 : OutputProcessor::SOVTimeStepType::System,
4249 : OutputProcessor::SOVStoreType::Summed,
4250 : "Site",
4251 : _,
4252 : "WaterEnvironmentalFactors",
4253 : "OtherFuel2Emissions",
4254 : _,
4255 0 : "");
4256 0 : SetupOutputVariable(state,
4257 : "Environmental Impact OtherFuel2 Nuclear High Level Waste Mass",
4258 : OutputProcessor::Unit::kg,
4259 : Pollution.OtherFuel2Comp.NucHiPollution,
4260 : OutputProcessor::SOVTimeStepType::System,
4261 : OutputProcessor::SOVStoreType::Summed,
4262 : "Site",
4263 : _,
4264 : "Nuclear High",
4265 : "OtherFuel2Emissions",
4266 : _,
4267 0 : "");
4268 0 : SetupOutputVariable(state,
4269 : "Environmental Impact OtherFuel2 Nuclear Low Level Waste Volume",
4270 : OutputProcessor::Unit::m3,
4271 : Pollution.OtherFuel2Comp.NucLoPollution,
4272 : OutputProcessor::SOVTimeStepType::System,
4273 : OutputProcessor::SOVStoreType::Summed,
4274 : "Site",
4275 : _,
4276 : "Nuclear Low",
4277 : "OtherFuel2Emissions",
4278 : _,
4279 0 : "");
4280 : }
4281 : }
4282 :
4283 : } // End of the NumEnergyTypes Do Loop
4284 :
4285 : // Always setup the Total Carbon Equivalent
4286 2307 : SetupOutputVariable(state,
4287 : "Environmental Impact Total N2O Emissions Carbon Equivalent Mass",
4288 : OutputProcessor::Unit::kg,
4289 : Pollution.TotCarbonEquivFromN2O,
4290 : OutputProcessor::SOVTimeStepType::System,
4291 : OutputProcessor::SOVStoreType::Summed,
4292 : "Site",
4293 : _,
4294 : "Carbon Equivalent",
4295 : "CarbonEquivalentEmissions",
4296 : _,
4297 1538 : "");
4298 2307 : SetupOutputVariable(state,
4299 : "Environmental Impact Total CH4 Emissions Carbon Equivalent Mass",
4300 : OutputProcessor::Unit::kg,
4301 : Pollution.TotCarbonEquivFromCH4,
4302 : OutputProcessor::SOVTimeStepType::System,
4303 : OutputProcessor::SOVStoreType::Summed,
4304 : "Site",
4305 : _,
4306 : "Carbon Equivalent",
4307 : "CarbonEquivalentEmissions",
4308 : _,
4309 1538 : "");
4310 2307 : SetupOutputVariable(state,
4311 : "Environmental Impact Total CO2 Emissions Carbon Equivalent Mass",
4312 : OutputProcessor::Unit::kg,
4313 : Pollution.TotCarbonEquivFromCO2,
4314 : OutputProcessor::SOVTimeStepType::System,
4315 : OutputProcessor::SOVStoreType::Summed,
4316 : "Site",
4317 : _,
4318 : "Carbon Equivalent",
4319 : "CarbonEquivalentEmissions",
4320 : _,
4321 1538 : "");
4322 769 : }
4323 :
4324 769 : void CheckPollutionMeterReporting(EnergyPlusData &state)
4325 : {
4326 :
4327 : // SUBROUTINE INFORMATION:
4328 : // AUTHOR Linda Lawrie
4329 : // DATE WRITTEN October 2008
4330 : // MODIFIED na
4331 : // RE-ENGINEERED na
4332 :
4333 : // PURPOSE OF THIS SUBROUTINE:
4334 : // <description>
4335 :
4336 : // in progress
4337 769 : if (state.dataPollutionModule->NumFuelFactors == 0 || state.dataPollutionModule->NumEnvImpactFactors == 0) {
4338 3490 : if (ReportingThisVariable(state, "Environmental Impact Total N2O Emissions Carbon Equivalent Mass") ||
4339 3490 : ReportingThisVariable(state, "Environmental Impact Total CH4 Emissions Carbon Equivalent Mass") ||
4340 3490 : ReportingThisVariable(state, "Environmental Impact Total CO2 Emissions Carbon Equivalent Mass") ||
4341 5578 : ReportingThisVariable(state, "Carbon Equivalent:Facility") ||
4342 2088 : ReportingThisVariable(state, "CarbonEquivalentEmissions:Carbon Equivalent")) {
4343 3 : ShowWarningError(
4344 : state, "GetPollutionFactorInput: Requested reporting for Carbon Equivalent Pollution, but insufficient information is entered.");
4345 3 : ShowContinueError(
4346 : state, R"(Both "FuelFactors" and "EnvironmentalImpactFactors" must be entered or the displayed carbon pollution will all be zero.)");
4347 : }
4348 : }
4349 769 : }
4350 :
4351 2 : void CheckFFSchedule(EnergyPlusData &state,
4352 : std::string const ¤tModuleObject, // the module Object
4353 : std::string const &resourceType, // resource type (Natural Gas, etc)
4354 : std::string const &fieldName, // Actual field name
4355 : std::string const &ScheduleName, // Schedule Name as input
4356 : int &SchedulePtr, // Schedule Index
4357 : bool &ErrorsFound // true if errors found
4358 : )
4359 : {
4360 :
4361 : // SUBROUTINE INFORMATION:
4362 : // AUTHOR Linda Lawrie
4363 : // DATE WRITTEN September 2009
4364 : // MODIFIED na
4365 : // RE-ENGINEERED na
4366 :
4367 : // PURPOSE OF THIS SUBROUTINE:
4368 : // This support routine performs the "obtain schedule pointer" and checks Fuel Factor
4369 : // schedules for validity (values must be >= 0).
4370 :
4371 : // Using/Aliasing
4372 : using ScheduleManager::CheckScheduleValueMinMax;
4373 : using ScheduleManager::GetScheduleIndex;
4374 :
4375 2 : SchedulePtr = GetScheduleIndex(state, ScheduleName);
4376 2 : if (SchedulePtr == 0) {
4377 0 : ShowSevereError(state, currentModuleObject + ": " + resourceType + ", invalid " + fieldName + "=\"" + ScheduleName + "\" not found.");
4378 0 : ErrorsFound = true;
4379 2 : } else if (!CheckScheduleValueMinMax(state, SchedulePtr, ">=", 0.0)) {
4380 0 : ShowSevereError(state, currentModuleObject + ": " + resourceType + ", invalid " + fieldName + "=\"" + ScheduleName + "\" invalid values.");
4381 0 : ShowContinueError(state, "Schedule values must be (>=0.).");
4382 0 : ErrorsFound = true;
4383 : }
4384 2 : }
4385 :
4386 : // End of Get Input subroutines for the Pollution Module
4387 : //******************************************************************************
4388 :
4389 391386 : void CalcPollution(EnergyPlusData &state)
4390 : {
4391 : // SUBROUTINE INFORMATION:
4392 : // AUTHOR Richard Liesen
4393 : // DATE WRITTEN 1998
4394 : // MODIFIED na
4395 : // RE-ENGINEERED December 2003 RJL
4396 :
4397 : // PURPOSE OF THIS SUBROUTINE:
4398 : // CalcPollution - Does the Pollutant Calculation
4399 :
4400 : // METHODOLOGY EMPLOYED:
4401 : // NA
4402 :
4403 : // REFERENCES:
4404 : // na
4405 :
4406 : // Using/Aliasing
4407 : using ScheduleManager::GetCurrentScheduleValue;
4408 :
4409 : // Locals
4410 : // SUBROUTINE ARGUMENT DEFINITIONS:
4411 : // na
4412 :
4413 : // SUBROUTINE PARAMETER DEFINITIONS:
4414 : // na
4415 :
4416 : // INTERFACE BLOCK SPECIFICATIONS
4417 : // na
4418 :
4419 : // DERIVED TYPE DEFINITIONS
4420 : // na
4421 :
4422 : // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
4423 : Real64 ElecValue;
4424 : Real64 NatGasValue;
4425 : Real64 FuelOil1Value;
4426 : Real64 FuelOil2Value;
4427 : Real64 CoalValue;
4428 : Real64 GasolineValue;
4429 : Real64 PropaneValue;
4430 : Real64 DieselValue;
4431 : Real64 OtherFuel1Value;
4432 : Real64 OtherFuel2Value;
4433 :
4434 : // Then the amount of Pollution produced by each fuel type is
4435 : // calculated in kgs.
4436 : // Input units for the coefficients is not standard and needs to be converted here.
4437 : // Most of the units are g/MJ, however water is in L/MJ and low level nuclear water is m3/MJ
4438 : // so only the energy has to be converted from J to MJ.
4439 :
4440 : // For each pollution/fuel type, Schedule values are allowed. Thus, calculations are bundled.
4441 :
4442 391386 : ElecValue = 0.0;
4443 391386 : NatGasValue = 0.0;
4444 391386 : FuelOil1Value = 0.0;
4445 391386 : FuelOil2Value = 0.0;
4446 391386 : CoalValue = 0.0;
4447 391386 : GasolineValue = 0.0;
4448 391386 : PropaneValue = 0.0;
4449 391386 : DieselValue = 0.0;
4450 391386 : OtherFuel1Value = 0.0;
4451 391386 : OtherFuel2Value = 0.0;
4452 391386 : auto &Pollution = state.dataPollutionModule->Pollution;
4453 391386 : auto &FuelType = state.dataPollutionModule->FuelType;
4454 :
4455 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
4456 56872 : Pollution.ElecComp.CO2Pollution = 0.0;
4457 56872 : if (Pollution.ElecCoef.CO2Sched == 0) {
4458 56872 : ElecValue = Pollution.ElecCoef.CO2 * 0.001;
4459 : } else {
4460 0 : ElecValue = Pollution.ElecCoef.CO2 * GetCurrentScheduleValue(state, Pollution.ElecCoef.CO2Sched) * 0.001;
4461 : }
4462 56872 : Pollution.ElecComp.CO2Pollution = (FuelType.Elec * 1.0e-6) * ElecValue;
4463 : }
4464 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
4465 54545 : Pollution.NatGasComp.CO2Pollution = 0.0;
4466 54545 : if (Pollution.NatGasCoef.CO2Sched == 0) {
4467 54545 : NatGasValue = Pollution.NatGasCoef.CO2 * 0.001;
4468 : } else {
4469 0 : NatGasValue = Pollution.NatGasCoef.CO2 * GetCurrentScheduleValue(state, Pollution.NatGasCoef.CO2Sched) * 0.001;
4470 : }
4471 54545 : Pollution.NatGasComp.CO2Pollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
4472 : }
4473 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
4474 8201 : Pollution.FuelOil1Comp.CO2Pollution = 0.0;
4475 8201 : if (Pollution.FuelOil1Coef.CO2Sched == 0) {
4476 8201 : FuelOil1Value = Pollution.FuelOil1Coef.CO2 * 0.001;
4477 : } else {
4478 0 : FuelOil1Value = Pollution.FuelOil1Coef.CO2 * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.CO2Sched) * 0.001;
4479 : }
4480 8201 : Pollution.FuelOil1Comp.CO2Pollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
4481 : }
4482 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
4483 0 : Pollution.FuelOil2Comp.CO2Pollution = 0.0;
4484 0 : if (Pollution.FuelOil2Coef.CO2Sched == 0) {
4485 0 : FuelOil2Value = Pollution.FuelOil2Coef.CO2 * 0.001;
4486 : } else {
4487 0 : FuelOil2Value = Pollution.FuelOil2Coef.CO2 * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.CO2Sched) * 0.001;
4488 : }
4489 0 : Pollution.FuelOil2Comp.CO2Pollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
4490 : }
4491 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
4492 0 : Pollution.CoalComp.CO2Pollution = 0.0;
4493 0 : if (Pollution.CoalCoef.CO2Sched == 0) {
4494 0 : CoalValue = Pollution.CoalCoef.CO2 * 0.001;
4495 : } else {
4496 0 : CoalValue = Pollution.CoalCoef.CO2 * GetCurrentScheduleValue(state, Pollution.CoalCoef.CO2Sched) * 0.001;
4497 : }
4498 0 : Pollution.CoalComp.CO2Pollution = (FuelType.Coal * 1.0e-6) * CoalValue;
4499 : }
4500 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
4501 0 : Pollution.GasolineComp.CO2Pollution = 0.0;
4502 0 : if (Pollution.GasolineCoef.CO2Sched == 0) {
4503 0 : GasolineValue = Pollution.GasolineCoef.CO2 * 0.001;
4504 : } else {
4505 0 : GasolineValue = Pollution.GasolineCoef.CO2 * GetCurrentScheduleValue(state, Pollution.GasolineCoef.CO2Sched) * 0.001;
4506 : }
4507 0 : Pollution.GasolineComp.CO2Pollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
4508 : }
4509 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
4510 8201 : Pollution.PropaneComp.CO2Pollution = 0.0;
4511 8201 : if (Pollution.PropaneCoef.CO2Sched == 0) {
4512 8201 : PropaneValue = Pollution.PropaneCoef.CO2 * 0.001;
4513 : } else {
4514 0 : PropaneValue = Pollution.PropaneCoef.CO2 * GetCurrentScheduleValue(state, Pollution.PropaneCoef.CO2Sched) * 0.001;
4515 : }
4516 8201 : Pollution.PropaneComp.CO2Pollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
4517 : }
4518 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
4519 715 : Pollution.DieselComp.CO2Pollution = 0.0;
4520 715 : if (Pollution.DieselCoef.CO2Sched == 0) {
4521 715 : DieselValue = Pollution.DieselCoef.CO2 * 0.001;
4522 : } else {
4523 0 : DieselValue = Pollution.DieselCoef.CO2 * GetCurrentScheduleValue(state, Pollution.DieselCoef.CO2Sched) * 0.001;
4524 : }
4525 715 : Pollution.DieselComp.CO2Pollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
4526 : }
4527 :
4528 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
4529 376 : Pollution.OtherFuel1Comp.CO2Pollution = 0.0;
4530 376 : if (Pollution.OtherFuel1Coef.CO2Sched == 0) {
4531 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.CO2 * 0.001;
4532 : } else {
4533 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.CO2 * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.CO2Sched) * 0.001;
4534 : }
4535 376 : Pollution.OtherFuel1Comp.CO2Pollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
4536 : }
4537 :
4538 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
4539 0 : Pollution.OtherFuel2Comp.CO2Pollution = 0.0;
4540 0 : if (Pollution.OtherFuel2Coef.CO2Sched == 0) {
4541 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.CO2 * 0.001;
4542 : } else {
4543 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.CO2 * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.CO2Sched) * 0.001;
4544 : }
4545 0 : Pollution.OtherFuel2Comp.CO2Pollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
4546 : }
4547 :
4548 1174158 : Pollution.CO2PollutTotal = Pollution.ElecComp.CO2Pollution + Pollution.NatGasComp.CO2Pollution + Pollution.FuelOil1Comp.CO2Pollution +
4549 1174158 : Pollution.FuelOil2Comp.CO2Pollution + Pollution.CoalComp.CO2Pollution + Pollution.GasolineComp.CO2Pollution +
4550 1174158 : Pollution.PropaneComp.CO2Pollution + Pollution.DieselComp.CO2Pollution + Pollution.OtherFuel1Comp.CO2Pollution +
4551 391386 : Pollution.OtherFuel2Comp.CO2Pollution;
4552 :
4553 391386 : ElecValue = 0.0;
4554 391386 : NatGasValue = 0.0;
4555 391386 : FuelOil1Value = 0.0;
4556 391386 : FuelOil2Value = 0.0;
4557 391386 : CoalValue = 0.0;
4558 391386 : GasolineValue = 0.0;
4559 391386 : PropaneValue = 0.0;
4560 391386 : DieselValue = 0.0;
4561 391386 : OtherFuel1Value = 0.0;
4562 391386 : OtherFuel2Value = 0.0;
4563 :
4564 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
4565 56872 : Pollution.ElecComp.NOxPollution = 0.0;
4566 56872 : if (Pollution.ElecCoef.NOxSched == 0) {
4567 56872 : ElecValue = Pollution.ElecCoef.NOx * 0.001;
4568 : } else {
4569 0 : ElecValue = Pollution.ElecCoef.NOx * GetCurrentScheduleValue(state, Pollution.ElecCoef.NOxSched) * 0.001;
4570 : }
4571 56872 : Pollution.ElecComp.NOxPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
4572 : }
4573 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
4574 54545 : Pollution.NatGasComp.NOxPollution = 0.0;
4575 54545 : if (Pollution.NatGasCoef.NOxSched == 0) {
4576 54545 : NatGasValue = Pollution.NatGasCoef.NOx * 0.001;
4577 : } else {
4578 0 : NatGasValue = Pollution.NatGasCoef.NOx * GetCurrentScheduleValue(state, Pollution.NatGasCoef.NOxSched) * 0.001;
4579 : }
4580 54545 : Pollution.NatGasComp.NOxPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
4581 : }
4582 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
4583 8201 : Pollution.FuelOil1Comp.NOxPollution = 0.0;
4584 8201 : if (Pollution.FuelOil1Coef.NOxSched == 0) {
4585 8201 : FuelOil1Value = Pollution.FuelOil1Coef.NOx * 0.001;
4586 : } else {
4587 0 : FuelOil1Value = Pollution.FuelOil1Coef.NOx * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.NOxSched) * 0.001;
4588 : }
4589 8201 : Pollution.FuelOil1Comp.NOxPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
4590 : }
4591 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
4592 0 : Pollution.FuelOil2Comp.NOxPollution = 0.0;
4593 0 : if (Pollution.FuelOil2Coef.NOxSched == 0) {
4594 0 : FuelOil2Value = Pollution.FuelOil2Coef.NOx * 0.001;
4595 : } else {
4596 0 : FuelOil2Value = Pollution.FuelOil2Coef.NOx * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.NOxSched) * 0.001;
4597 : }
4598 0 : Pollution.FuelOil2Comp.NOxPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
4599 : }
4600 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
4601 0 : Pollution.CoalComp.NOxPollution = 0.0;
4602 0 : if (Pollution.CoalCoef.NOxSched == 0) {
4603 0 : CoalValue = Pollution.CoalCoef.NOx * 0.001;
4604 : } else {
4605 0 : CoalValue = Pollution.CoalCoef.NOx * GetCurrentScheduleValue(state, Pollution.CoalCoef.NOxSched) * 0.001;
4606 : }
4607 0 : Pollution.CoalComp.NOxPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
4608 : }
4609 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
4610 0 : Pollution.GasolineComp.NOxPollution = 0.0;
4611 0 : if (Pollution.GasolineCoef.NOxSched == 0) {
4612 0 : GasolineValue = Pollution.GasolineCoef.NOx * 0.001;
4613 : } else {
4614 0 : GasolineValue = Pollution.GasolineCoef.NOx * GetCurrentScheduleValue(state, Pollution.GasolineCoef.NOxSched) * 0.001;
4615 : }
4616 0 : Pollution.GasolineComp.NOxPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
4617 : }
4618 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
4619 8201 : Pollution.PropaneComp.NOxPollution = 0.0;
4620 8201 : if (Pollution.PropaneCoef.NOxSched == 0) {
4621 8201 : PropaneValue = Pollution.PropaneCoef.NOx * 0.001;
4622 : } else {
4623 0 : PropaneValue = Pollution.PropaneCoef.NOx * GetCurrentScheduleValue(state, Pollution.PropaneCoef.NOxSched) * 0.001;
4624 : }
4625 8201 : Pollution.PropaneComp.NOxPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
4626 : }
4627 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
4628 715 : Pollution.DieselComp.NOxPollution = 0.0;
4629 715 : if (Pollution.DieselCoef.NOxSched == 0) {
4630 715 : DieselValue = Pollution.DieselCoef.NOx * 0.001;
4631 : } else {
4632 0 : DieselValue = Pollution.DieselCoef.NOx * GetCurrentScheduleValue(state, Pollution.DieselCoef.NOxSched) * 0.001;
4633 : }
4634 715 : Pollution.DieselComp.NOxPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
4635 : }
4636 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
4637 376 : Pollution.OtherFuel1Comp.NOxPollution = 0.0;
4638 376 : if (Pollution.OtherFuel1Coef.NOxSched == 0) {
4639 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.NOx * 0.001;
4640 : } else {
4641 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.NOx * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.NOxSched) * 0.001;
4642 : }
4643 376 : Pollution.OtherFuel1Comp.NOxPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
4644 : }
4645 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
4646 0 : Pollution.OtherFuel2Comp.NOxPollution = 0.0;
4647 0 : if (Pollution.OtherFuel2Coef.NOxSched == 0) {
4648 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NOx * 0.001;
4649 : } else {
4650 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NOx * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.NOxSched) * 0.001;
4651 : }
4652 0 : Pollution.OtherFuel2Comp.NOxPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
4653 : }
4654 :
4655 391386 : ElecValue = 0.0;
4656 391386 : NatGasValue = 0.0;
4657 391386 : FuelOil1Value = 0.0;
4658 391386 : FuelOil2Value = 0.0;
4659 391386 : CoalValue = 0.0;
4660 391386 : GasolineValue = 0.0;
4661 391386 : PropaneValue = 0.0;
4662 391386 : DieselValue = 0.0;
4663 391386 : OtherFuel1Value = 0.0;
4664 391386 : OtherFuel2Value = 0.0;
4665 :
4666 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
4667 56872 : Pollution.ElecComp.CH4Pollution = 0.0;
4668 56872 : if (Pollution.ElecCoef.CH4Sched == 0) {
4669 56872 : ElecValue = Pollution.ElecCoef.CH4 * 0.001;
4670 : } else {
4671 0 : ElecValue = Pollution.ElecCoef.CH4 * GetCurrentScheduleValue(state, Pollution.ElecCoef.CH4Sched) * 0.001;
4672 : }
4673 56872 : Pollution.ElecComp.CH4Pollution = (FuelType.Elec * 1.0e-6) * ElecValue;
4674 : }
4675 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
4676 54545 : Pollution.NatGasComp.CH4Pollution = 0.0;
4677 54545 : if (Pollution.NatGasCoef.CH4Sched == 0) {
4678 54545 : NatGasValue = Pollution.NatGasCoef.CH4 * 0.001;
4679 : } else {
4680 0 : NatGasValue = Pollution.NatGasCoef.CH4 * GetCurrentScheduleValue(state, Pollution.NatGasCoef.CH4Sched) * 0.001;
4681 : }
4682 54545 : Pollution.NatGasComp.CH4Pollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
4683 : }
4684 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
4685 8201 : Pollution.FuelOil1Comp.CH4Pollution = 0.0;
4686 8201 : if (Pollution.FuelOil1Coef.CH4Sched == 0) {
4687 8201 : FuelOil1Value = Pollution.FuelOil1Coef.CH4 * 0.001;
4688 : } else {
4689 0 : FuelOil1Value = Pollution.FuelOil1Coef.CH4 * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.CH4Sched) * 0.001;
4690 : }
4691 8201 : Pollution.FuelOil1Comp.CH4Pollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
4692 : }
4693 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
4694 0 : Pollution.FuelOil2Comp.CH4Pollution = 0.0;
4695 0 : if (Pollution.FuelOil2Coef.CH4Sched == 0) {
4696 0 : FuelOil2Value = Pollution.FuelOil2Coef.CH4 * 0.001;
4697 : } else {
4698 0 : FuelOil2Value = Pollution.FuelOil2Coef.CH4 * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.CH4Sched) * 0.001;
4699 : }
4700 0 : Pollution.FuelOil2Comp.CH4Pollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
4701 : }
4702 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
4703 0 : Pollution.CoalComp.CH4Pollution = 0.0;
4704 0 : if (Pollution.CoalCoef.CH4Sched == 0) {
4705 0 : CoalValue = Pollution.CoalCoef.CH4 * 0.001;
4706 : } else {
4707 0 : CoalValue = Pollution.CoalCoef.CH4 * GetCurrentScheduleValue(state, Pollution.CoalCoef.CH4Sched) * 0.001;
4708 : }
4709 0 : Pollution.CoalComp.CH4Pollution = (FuelType.Coal * 1.0e-6) * CoalValue;
4710 : }
4711 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
4712 0 : Pollution.GasolineComp.CH4Pollution = 0.0;
4713 0 : if (Pollution.GasolineCoef.CH4Sched == 0) {
4714 0 : GasolineValue = Pollution.GasolineCoef.CH4 * 0.001;
4715 : } else {
4716 0 : GasolineValue = Pollution.GasolineCoef.CH4 * GetCurrentScheduleValue(state, Pollution.GasolineCoef.CH4Sched) * 0.001;
4717 : }
4718 0 : Pollution.GasolineComp.CH4Pollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
4719 : }
4720 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
4721 8201 : Pollution.PropaneComp.CH4Pollution = 0.0;
4722 8201 : if (Pollution.PropaneCoef.CH4Sched == 0) {
4723 8201 : PropaneValue = Pollution.PropaneCoef.CH4 * 0.001;
4724 : } else {
4725 0 : PropaneValue = Pollution.PropaneCoef.CH4 * GetCurrentScheduleValue(state, Pollution.PropaneCoef.CH4Sched) * 0.001;
4726 : }
4727 8201 : Pollution.PropaneComp.CH4Pollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
4728 : }
4729 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
4730 715 : Pollution.DieselComp.CH4Pollution = 0.0;
4731 715 : if (Pollution.DieselCoef.CH4Sched == 0) {
4732 715 : DieselValue = Pollution.DieselCoef.CH4 * 0.001;
4733 : } else {
4734 0 : DieselValue = Pollution.DieselCoef.CH4 * GetCurrentScheduleValue(state, Pollution.DieselCoef.CH4Sched) * 0.001;
4735 : }
4736 715 : Pollution.DieselComp.CH4Pollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
4737 : }
4738 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
4739 376 : Pollution.OtherFuel1Comp.CH4Pollution = 0.0;
4740 376 : if (Pollution.OtherFuel1Coef.CH4Sched == 0) {
4741 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.CH4 * 0.001;
4742 : } else {
4743 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.CH4 * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.CH4Sched) * 0.001;
4744 : }
4745 376 : Pollution.OtherFuel1Comp.CH4Pollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
4746 : }
4747 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
4748 0 : Pollution.OtherFuel2Comp.CH4Pollution = 0.0;
4749 0 : if (Pollution.OtherFuel2Coef.CH4Sched == 0) {
4750 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.CH4 * 0.001;
4751 : } else {
4752 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.CH4 * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.CH4Sched) * 0.001;
4753 : }
4754 0 : Pollution.OtherFuel2Comp.CH4Pollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
4755 : }
4756 :
4757 1174158 : Pollution.CH4PollutTotal = Pollution.ElecComp.CH4Pollution + Pollution.NatGasComp.CH4Pollution + Pollution.FuelOil1Comp.CH4Pollution +
4758 1174158 : Pollution.FuelOil2Comp.CH4Pollution + Pollution.CoalComp.CH4Pollution + Pollution.GasolineComp.CH4Pollution +
4759 1174158 : Pollution.PropaneComp.CH4Pollution + Pollution.DieselComp.CH4Pollution + Pollution.OtherFuel1Comp.CH4Pollution +
4760 391386 : Pollution.OtherFuel1Comp.CH4Pollution;
4761 :
4762 391386 : ElecValue = 0.0;
4763 391386 : NatGasValue = 0.0;
4764 391386 : FuelOil1Value = 0.0;
4765 391386 : FuelOil2Value = 0.0;
4766 391386 : CoalValue = 0.0;
4767 391386 : GasolineValue = 0.0;
4768 391386 : PropaneValue = 0.0;
4769 391386 : DieselValue = 0.0;
4770 391386 : OtherFuel1Value = 0.0;
4771 391386 : OtherFuel2Value = 0.0;
4772 :
4773 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
4774 56872 : Pollution.ElecComp.COPollution = 0.0;
4775 56872 : if (Pollution.ElecCoef.COSched == 0) {
4776 56872 : ElecValue = Pollution.ElecCoef.CO * 0.001;
4777 : } else {
4778 0 : ElecValue = Pollution.ElecCoef.CO * GetCurrentScheduleValue(state, Pollution.ElecCoef.COSched) * 0.001;
4779 : }
4780 56872 : Pollution.ElecComp.COPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
4781 : }
4782 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
4783 54545 : Pollution.NatGasComp.COPollution = 0.0;
4784 54545 : if (Pollution.NatGasCoef.COSched == 0) {
4785 54545 : NatGasValue = Pollution.NatGasCoef.CO * 0.001;
4786 : } else {
4787 0 : NatGasValue = Pollution.NatGasCoef.CO * GetCurrentScheduleValue(state, Pollution.NatGasCoef.COSched) * 0.001;
4788 : }
4789 54545 : Pollution.NatGasComp.COPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
4790 : }
4791 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
4792 8201 : Pollution.FuelOil1Comp.COPollution = 0.0;
4793 8201 : if (Pollution.FuelOil1Coef.COSched == 0) {
4794 8201 : FuelOil1Value = Pollution.FuelOil1Coef.CO * 0.001;
4795 : } else {
4796 0 : FuelOil1Value = Pollution.FuelOil1Coef.CO * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.COSched) * 0.001;
4797 : }
4798 8201 : Pollution.FuelOil1Comp.COPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
4799 : }
4800 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
4801 0 : Pollution.FuelOil2Comp.COPollution = 0.0;
4802 0 : if (Pollution.FuelOil2Coef.COSched == 0) {
4803 0 : FuelOil2Value = Pollution.FuelOil2Coef.CO * 0.001;
4804 : } else {
4805 0 : FuelOil2Value = Pollution.FuelOil2Coef.CO * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.COSched) * 0.001;
4806 : }
4807 0 : Pollution.FuelOil2Comp.COPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
4808 : }
4809 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
4810 0 : Pollution.CoalComp.COPollution = 0.0;
4811 0 : if (Pollution.CoalCoef.COSched == 0) {
4812 0 : CoalValue = Pollution.CoalCoef.CO * 0.001;
4813 : } else {
4814 0 : CoalValue = Pollution.CoalCoef.CO * GetCurrentScheduleValue(state, Pollution.CoalCoef.COSched) * 0.001;
4815 : }
4816 0 : Pollution.CoalComp.COPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
4817 : }
4818 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
4819 0 : Pollution.GasolineComp.COPollution = 0.0;
4820 0 : if (Pollution.GasolineCoef.COSched == 0) {
4821 0 : GasolineValue = Pollution.GasolineCoef.CO * 0.001;
4822 : } else {
4823 0 : GasolineValue = Pollution.GasolineCoef.CO * GetCurrentScheduleValue(state, Pollution.GasolineCoef.COSched) * 0.001;
4824 : }
4825 0 : Pollution.GasolineComp.COPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
4826 : }
4827 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
4828 8201 : Pollution.PropaneComp.COPollution = 0.0;
4829 8201 : if (Pollution.PropaneCoef.COSched == 0) {
4830 8201 : PropaneValue = Pollution.PropaneCoef.CO * 0.001;
4831 : } else {
4832 0 : PropaneValue = Pollution.PropaneCoef.CO * GetCurrentScheduleValue(state, Pollution.PropaneCoef.COSched) * 0.001;
4833 : }
4834 8201 : Pollution.PropaneComp.COPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
4835 : }
4836 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
4837 715 : Pollution.DieselComp.COPollution = 0.0;
4838 715 : if (Pollution.DieselCoef.COSched == 0) {
4839 715 : DieselValue = Pollution.DieselCoef.CO * 0.001;
4840 : } else {
4841 0 : DieselValue = Pollution.DieselCoef.CO * GetCurrentScheduleValue(state, Pollution.DieselCoef.COSched) * 0.001;
4842 : }
4843 715 : Pollution.DieselComp.COPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
4844 : }
4845 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
4846 376 : Pollution.OtherFuel1Comp.COPollution = 0.0;
4847 376 : if (Pollution.OtherFuel1Coef.COSched == 0) {
4848 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.CO * 0.001;
4849 : } else {
4850 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.CO * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.COSched) * 0.001;
4851 : }
4852 376 : Pollution.OtherFuel1Comp.COPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
4853 : }
4854 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
4855 0 : Pollution.OtherFuel2Comp.COPollution = 0.0;
4856 0 : if (Pollution.OtherFuel2Coef.COSched == 0) {
4857 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.CO * 0.001;
4858 : } else {
4859 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.CO * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.COSched) * 0.001;
4860 : }
4861 0 : Pollution.OtherFuel2Comp.COPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
4862 : }
4863 :
4864 391386 : ElecValue = 0.0;
4865 391386 : NatGasValue = 0.0;
4866 391386 : FuelOil1Value = 0.0;
4867 391386 : FuelOil2Value = 0.0;
4868 391386 : CoalValue = 0.0;
4869 391386 : GasolineValue = 0.0;
4870 391386 : PropaneValue = 0.0;
4871 391386 : DieselValue = 0.0;
4872 391386 : OtherFuel1Value = 0.0;
4873 391386 : OtherFuel2Value = 0.0;
4874 :
4875 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
4876 56872 : Pollution.ElecComp.N2OPollution = 0.0;
4877 56872 : if (Pollution.ElecCoef.N2OSched == 0) {
4878 56872 : ElecValue = Pollution.ElecCoef.N2O * 0.001;
4879 : } else {
4880 0 : ElecValue = Pollution.ElecCoef.N2O * GetCurrentScheduleValue(state, Pollution.ElecCoef.N2OSched) * 0.001;
4881 : }
4882 56872 : Pollution.ElecComp.N2OPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
4883 : }
4884 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
4885 54545 : Pollution.NatGasComp.N2OPollution = 0.0;
4886 54545 : if (Pollution.NatGasCoef.N2OSched == 0) {
4887 54545 : NatGasValue = Pollution.NatGasCoef.N2O * 0.001;
4888 : } else {
4889 0 : NatGasValue = Pollution.NatGasCoef.N2O * GetCurrentScheduleValue(state, Pollution.NatGasCoef.N2OSched) * 0.001;
4890 : }
4891 54545 : Pollution.NatGasComp.N2OPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
4892 : }
4893 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
4894 8201 : Pollution.FuelOil1Comp.N2OPollution = 0.0;
4895 8201 : if (Pollution.FuelOil1Coef.N2OSched == 0) {
4896 8201 : FuelOil1Value = Pollution.FuelOil1Coef.N2O * 0.001;
4897 : } else {
4898 0 : FuelOil1Value = Pollution.FuelOil1Coef.N2O * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.N2OSched) * 0.001;
4899 : }
4900 8201 : Pollution.FuelOil1Comp.N2OPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
4901 : }
4902 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
4903 0 : Pollution.FuelOil2Comp.N2OPollution = 0.0;
4904 0 : if (Pollution.FuelOil2Coef.N2OSched == 0) {
4905 0 : FuelOil2Value = Pollution.FuelOil2Coef.N2O * 0.001;
4906 : } else {
4907 0 : FuelOil2Value = Pollution.FuelOil2Coef.N2O * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.N2OSched) * 0.001;
4908 : }
4909 0 : Pollution.FuelOil2Comp.N2OPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
4910 : }
4911 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
4912 0 : Pollution.CoalComp.N2OPollution = 0.0;
4913 0 : if (Pollution.CoalCoef.N2OSched == 0) {
4914 0 : CoalValue = Pollution.CoalCoef.N2O * 0.001;
4915 : } else {
4916 0 : CoalValue = Pollution.CoalCoef.N2O * GetCurrentScheduleValue(state, Pollution.CoalCoef.N2OSched) * 0.001;
4917 : }
4918 0 : Pollution.CoalComp.N2OPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
4919 : }
4920 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
4921 0 : Pollution.GasolineComp.N2OPollution = 0.0;
4922 0 : if (Pollution.GasolineCoef.N2OSched == 0) {
4923 0 : GasolineValue = Pollution.GasolineCoef.N2O * 0.001;
4924 : } else {
4925 0 : GasolineValue = Pollution.GasolineCoef.N2O * GetCurrentScheduleValue(state, Pollution.GasolineCoef.N2OSched) * 0.001;
4926 : }
4927 0 : Pollution.GasolineComp.N2OPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
4928 : }
4929 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
4930 8201 : Pollution.PropaneComp.N2OPollution = 0.0;
4931 8201 : if (Pollution.PropaneCoef.N2OSched == 0) {
4932 8201 : PropaneValue = Pollution.PropaneCoef.N2O * 0.001;
4933 : } else {
4934 0 : PropaneValue = Pollution.PropaneCoef.N2O * GetCurrentScheduleValue(state, Pollution.PropaneCoef.N2OSched) * 0.001;
4935 : }
4936 8201 : Pollution.PropaneComp.N2OPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
4937 : }
4938 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
4939 715 : Pollution.DieselComp.N2OPollution = 0.0;
4940 715 : if (Pollution.DieselCoef.N2OSched == 0) {
4941 715 : DieselValue = Pollution.DieselCoef.N2O * 0.001;
4942 : } else {
4943 0 : DieselValue = Pollution.DieselCoef.N2O * GetCurrentScheduleValue(state, Pollution.DieselCoef.N2OSched) * 0.001;
4944 : }
4945 715 : Pollution.DieselComp.N2OPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
4946 : }
4947 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
4948 376 : Pollution.OtherFuel1Comp.N2OPollution = 0.0;
4949 376 : if (Pollution.OtherFuel1Coef.N2OSched == 0) {
4950 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.N2O * 0.001;
4951 : } else {
4952 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.N2O * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.N2OSched) * 0.001;
4953 : }
4954 376 : Pollution.OtherFuel1Comp.N2OPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
4955 : }
4956 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
4957 0 : Pollution.OtherFuel2Comp.N2OPollution = 0.0;
4958 0 : if (Pollution.OtherFuel2Coef.N2OSched == 0) {
4959 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.N2O * 0.001;
4960 : } else {
4961 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.N2O * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.N2OSched) * 0.001;
4962 : }
4963 0 : Pollution.OtherFuel2Comp.N2OPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
4964 : }
4965 :
4966 1174158 : Pollution.N2OPollutTotal = Pollution.ElecComp.N2OPollution + Pollution.NatGasComp.N2OPollution + Pollution.FuelOil1Comp.N2OPollution +
4967 1174158 : Pollution.FuelOil2Comp.N2OPollution + Pollution.CoalComp.N2OPollution + Pollution.GasolineComp.N2OPollution +
4968 1174158 : Pollution.PropaneComp.N2OPollution + Pollution.DieselComp.N2OPollution + Pollution.OtherFuel1Comp.N2OPollution +
4969 391386 : Pollution.OtherFuel2Comp.N2OPollution;
4970 :
4971 391386 : ElecValue = 0.0;
4972 391386 : NatGasValue = 0.0;
4973 391386 : FuelOil1Value = 0.0;
4974 391386 : FuelOil2Value = 0.0;
4975 391386 : CoalValue = 0.0;
4976 391386 : GasolineValue = 0.0;
4977 391386 : PropaneValue = 0.0;
4978 391386 : DieselValue = 0.0;
4979 391386 : OtherFuel1Value = 0.0;
4980 391386 : OtherFuel2Value = 0.0;
4981 :
4982 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
4983 56872 : Pollution.ElecComp.SO2Pollution = 0.0;
4984 56872 : if (Pollution.ElecCoef.SO2Sched == 0) {
4985 56872 : ElecValue = Pollution.ElecCoef.SO2 * 0.001;
4986 : } else {
4987 0 : ElecValue = Pollution.ElecCoef.SO2 * GetCurrentScheduleValue(state, Pollution.ElecCoef.SO2Sched) * 0.001;
4988 : }
4989 56872 : Pollution.ElecComp.SO2Pollution = (FuelType.Elec * 1.0e-6) * ElecValue;
4990 : }
4991 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
4992 54545 : Pollution.NatGasComp.SO2Pollution = 0.0;
4993 54545 : if (Pollution.NatGasCoef.SO2Sched == 0) {
4994 54545 : NatGasValue = Pollution.NatGasCoef.SO2 * 0.001;
4995 : } else {
4996 0 : NatGasValue = Pollution.NatGasCoef.SO2 * GetCurrentScheduleValue(state, Pollution.NatGasCoef.SO2Sched) * 0.001;
4997 : }
4998 54545 : Pollution.NatGasComp.SO2Pollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
4999 : }
5000 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5001 8201 : Pollution.FuelOil1Comp.SO2Pollution = 0.0;
5002 8201 : if (Pollution.FuelOil1Coef.SO2Sched == 0) {
5003 8201 : FuelOil1Value = Pollution.FuelOil1Coef.SO2 * 0.001;
5004 : } else {
5005 0 : FuelOil1Value = Pollution.FuelOil1Coef.SO2 * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.SO2Sched) * 0.001;
5006 : }
5007 8201 : Pollution.FuelOil1Comp.SO2Pollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5008 : }
5009 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5010 0 : Pollution.FuelOil2Comp.SO2Pollution = 0.0;
5011 0 : if (Pollution.FuelOil2Coef.SO2Sched == 0) {
5012 0 : FuelOil2Value = Pollution.FuelOil2Coef.SO2 * 0.001;
5013 : } else {
5014 0 : FuelOil2Value = Pollution.FuelOil2Coef.SO2 * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.SO2Sched) * 0.001;
5015 : }
5016 0 : Pollution.FuelOil2Comp.SO2Pollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5017 : }
5018 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5019 0 : Pollution.CoalComp.SO2Pollution = 0.0;
5020 0 : if (Pollution.CoalCoef.SO2Sched == 0) {
5021 0 : CoalValue = Pollution.CoalCoef.SO2 * 0.001;
5022 : } else {
5023 0 : CoalValue = Pollution.CoalCoef.SO2 * GetCurrentScheduleValue(state, Pollution.CoalCoef.SO2Sched) * 0.001;
5024 : }
5025 0 : Pollution.CoalComp.SO2Pollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5026 : }
5027 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5028 0 : Pollution.GasolineComp.SO2Pollution = 0.0;
5029 0 : if (Pollution.GasolineCoef.SO2Sched == 0) {
5030 0 : GasolineValue = Pollution.GasolineCoef.SO2 * 0.001;
5031 : } else {
5032 0 : GasolineValue = Pollution.GasolineCoef.SO2 * GetCurrentScheduleValue(state, Pollution.GasolineCoef.SO2Sched) * 0.001;
5033 : }
5034 0 : Pollution.GasolineComp.SO2Pollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5035 : }
5036 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5037 8201 : Pollution.PropaneComp.SO2Pollution = 0.0;
5038 8201 : if (Pollution.PropaneCoef.SO2Sched == 0) {
5039 8201 : PropaneValue = Pollution.PropaneCoef.SO2 * 0.001;
5040 : } else {
5041 0 : PropaneValue = Pollution.PropaneCoef.SO2 * GetCurrentScheduleValue(state, Pollution.PropaneCoef.SO2Sched) * 0.001;
5042 : }
5043 8201 : Pollution.PropaneComp.SO2Pollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5044 : }
5045 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5046 715 : Pollution.DieselComp.SO2Pollution = 0.0;
5047 715 : if (Pollution.DieselCoef.SO2Sched == 0) {
5048 715 : DieselValue = Pollution.DieselCoef.SO2 * 0.001;
5049 : } else {
5050 0 : DieselValue = Pollution.DieselCoef.SO2 * GetCurrentScheduleValue(state, Pollution.DieselCoef.SO2Sched) * 0.001;
5051 : }
5052 715 : Pollution.DieselComp.SO2Pollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5053 : }
5054 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5055 376 : Pollution.OtherFuel1Comp.SO2Pollution = 0.0;
5056 376 : if (Pollution.OtherFuel1Coef.SO2Sched == 0) {
5057 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.SO2 * 0.001;
5058 : } else {
5059 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.SO2 * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.SO2Sched) * 0.001;
5060 : }
5061 376 : Pollution.OtherFuel1Comp.SO2Pollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5062 : }
5063 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5064 0 : Pollution.OtherFuel2Comp.SO2Pollution = 0.0;
5065 0 : if (Pollution.OtherFuel2Coef.SO2Sched == 0) {
5066 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.SO2 * 0.001;
5067 : } else {
5068 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.SO2 * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.SO2Sched) * 0.001;
5069 : }
5070 0 : Pollution.OtherFuel2Comp.SO2Pollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5071 : }
5072 :
5073 391386 : ElecValue = 0.0;
5074 391386 : NatGasValue = 0.0;
5075 391386 : FuelOil1Value = 0.0;
5076 391386 : FuelOil2Value = 0.0;
5077 391386 : CoalValue = 0.0;
5078 391386 : GasolineValue = 0.0;
5079 391386 : PropaneValue = 0.0;
5080 391386 : DieselValue = 0.0;
5081 391386 : OtherFuel1Value = 0.0;
5082 391386 : OtherFuel2Value = 0.0;
5083 :
5084 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5085 56872 : Pollution.ElecComp.PMPollution = 0.0;
5086 56872 : if (Pollution.ElecCoef.PMSched == 0) {
5087 56872 : ElecValue = Pollution.ElecCoef.PM * 0.001;
5088 : } else {
5089 0 : ElecValue = Pollution.ElecCoef.PM * GetCurrentScheduleValue(state, Pollution.ElecCoef.PMSched) * 0.001;
5090 : }
5091 56872 : Pollution.ElecComp.PMPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5092 : }
5093 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5094 54545 : Pollution.NatGasComp.PMPollution = 0.0;
5095 54545 : if (Pollution.NatGasCoef.PMSched == 0) {
5096 54545 : NatGasValue = Pollution.NatGasCoef.PM * 0.001;
5097 : } else {
5098 0 : NatGasValue = Pollution.NatGasCoef.PM * GetCurrentScheduleValue(state, Pollution.NatGasCoef.PMSched) * 0.001;
5099 : }
5100 54545 : Pollution.NatGasComp.PMPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5101 : }
5102 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5103 8201 : Pollution.FuelOil1Comp.PMPollution = 0.0;
5104 8201 : if (Pollution.FuelOil1Coef.PMSched == 0) {
5105 8201 : FuelOil1Value = Pollution.FuelOil1Coef.PM * 0.001;
5106 : } else {
5107 0 : FuelOil1Value = Pollution.FuelOil1Coef.PM * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.PMSched) * 0.001;
5108 : }
5109 8201 : Pollution.FuelOil1Comp.PMPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5110 : }
5111 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5112 0 : Pollution.FuelOil2Comp.PMPollution = 0.0;
5113 0 : if (Pollution.FuelOil2Coef.PMSched == 0) {
5114 0 : FuelOil2Value = Pollution.FuelOil2Coef.PM * 0.001;
5115 : } else {
5116 0 : FuelOil2Value = Pollution.FuelOil2Coef.PM * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.PMSched) * 0.001;
5117 : }
5118 0 : Pollution.FuelOil2Comp.PMPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5119 : }
5120 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5121 0 : Pollution.CoalComp.PMPollution = 0.0;
5122 0 : if (Pollution.CoalCoef.PMSched == 0) {
5123 0 : CoalValue = Pollution.CoalCoef.PM * 0.001;
5124 : } else {
5125 0 : CoalValue = Pollution.CoalCoef.PM * GetCurrentScheduleValue(state, Pollution.CoalCoef.PMSched) * 0.001;
5126 : }
5127 0 : Pollution.CoalComp.PMPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5128 : }
5129 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5130 0 : Pollution.GasolineComp.PMPollution = 0.0;
5131 0 : if (Pollution.GasolineCoef.PMSched == 0) {
5132 0 : GasolineValue = Pollution.GasolineCoef.PM * 0.001;
5133 : } else {
5134 0 : GasolineValue = Pollution.GasolineCoef.PM * GetCurrentScheduleValue(state, Pollution.GasolineCoef.PMSched) * 0.001;
5135 : }
5136 0 : Pollution.GasolineComp.PMPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5137 : }
5138 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5139 8201 : Pollution.PropaneComp.PMPollution = 0.0;
5140 8201 : if (Pollution.PropaneCoef.PMSched == 0) {
5141 8201 : PropaneValue = Pollution.PropaneCoef.PM * 0.001;
5142 : } else {
5143 0 : PropaneValue = Pollution.PropaneCoef.PM * GetCurrentScheduleValue(state, Pollution.PropaneCoef.PMSched) * 0.001;
5144 : }
5145 8201 : Pollution.PropaneComp.PMPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5146 : }
5147 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5148 715 : Pollution.DieselComp.PMPollution = 0.0;
5149 715 : if (Pollution.DieselCoef.PMSched == 0) {
5150 715 : DieselValue = Pollution.DieselCoef.PM * 0.001;
5151 : } else {
5152 0 : DieselValue = Pollution.DieselCoef.PM * GetCurrentScheduleValue(state, Pollution.DieselCoef.PMSched) * 0.001;
5153 : }
5154 715 : Pollution.DieselComp.PMPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5155 : }
5156 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5157 376 : Pollution.OtherFuel1Comp.PMPollution = 0.0;
5158 376 : if (Pollution.OtherFuel1Coef.PMSched == 0) {
5159 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.PM * 0.001;
5160 : } else {
5161 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.PM * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.PMSched) * 0.001;
5162 : }
5163 376 : Pollution.OtherFuel1Comp.PMPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5164 : }
5165 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5166 0 : Pollution.OtherFuel2Comp.PMPollution = 0.0;
5167 0 : if (Pollution.OtherFuel2Coef.PMSched == 0) {
5168 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.PM * 0.001;
5169 : } else {
5170 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.PM * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.PMSched) * 0.001;
5171 : }
5172 0 : Pollution.OtherFuel2Comp.PMPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5173 : }
5174 :
5175 391386 : ElecValue = 0.0;
5176 391386 : NatGasValue = 0.0;
5177 391386 : FuelOil1Value = 0.0;
5178 391386 : FuelOil2Value = 0.0;
5179 391386 : CoalValue = 0.0;
5180 391386 : GasolineValue = 0.0;
5181 391386 : PropaneValue = 0.0;
5182 391386 : DieselValue = 0.0;
5183 391386 : OtherFuel1Value = 0.0;
5184 391386 : OtherFuel2Value = 0.0;
5185 :
5186 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5187 56872 : Pollution.ElecComp.PM10Pollution = 0.0;
5188 56872 : if (Pollution.ElecCoef.PM10Sched == 0) {
5189 56872 : ElecValue = Pollution.ElecCoef.PM10 * 0.001;
5190 : } else {
5191 0 : ElecValue = Pollution.ElecCoef.PM10 * GetCurrentScheduleValue(state, Pollution.ElecCoef.PM10Sched) * 0.001;
5192 : }
5193 56872 : Pollution.ElecComp.PM10Pollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5194 : }
5195 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5196 54545 : Pollution.NatGasComp.PM10Pollution = 0.0;
5197 54545 : if (Pollution.NatGasCoef.PM10Sched == 0) {
5198 54545 : NatGasValue = Pollution.NatGasCoef.PM10 * 0.001;
5199 : } else {
5200 0 : NatGasValue = Pollution.NatGasCoef.PM10 * GetCurrentScheduleValue(state, Pollution.NatGasCoef.PM10Sched) * 0.001;
5201 : }
5202 54545 : Pollution.NatGasComp.PM10Pollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5203 : }
5204 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5205 8201 : Pollution.FuelOil1Comp.PM10Pollution = 0.0;
5206 8201 : if (Pollution.FuelOil1Coef.PM10Sched == 0) {
5207 8201 : FuelOil1Value = Pollution.FuelOil1Coef.PM10 * 0.001;
5208 : } else {
5209 0 : FuelOil1Value = Pollution.FuelOil1Coef.PM10 * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.PM10Sched) * 0.001;
5210 : }
5211 8201 : Pollution.FuelOil1Comp.PM10Pollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5212 : }
5213 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5214 0 : Pollution.FuelOil2Comp.PM10Pollution = 0.0;
5215 0 : if (Pollution.FuelOil2Coef.PM10Sched == 0) {
5216 0 : FuelOil2Value = Pollution.FuelOil2Coef.PM10 * 0.001;
5217 : } else {
5218 0 : FuelOil2Value = Pollution.FuelOil2Coef.PM10 * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.PM10Sched) * 0.001;
5219 : }
5220 0 : Pollution.FuelOil2Comp.PM10Pollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5221 : }
5222 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5223 0 : Pollution.CoalComp.PM10Pollution = 0.0;
5224 0 : if (Pollution.CoalCoef.PM10Sched == 0) {
5225 0 : CoalValue = Pollution.CoalCoef.PM10 * 0.001;
5226 : } else {
5227 0 : CoalValue = Pollution.CoalCoef.PM10 * GetCurrentScheduleValue(state, Pollution.CoalCoef.PM10Sched) * 0.001;
5228 : }
5229 0 : Pollution.CoalComp.PM10Pollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5230 : }
5231 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5232 0 : Pollution.GasolineComp.PM10Pollution = 0.0;
5233 0 : if (Pollution.GasolineCoef.PM10Sched == 0) {
5234 0 : GasolineValue = Pollution.GasolineCoef.PM10 * 0.001;
5235 : } else {
5236 0 : GasolineValue = Pollution.GasolineCoef.PM10 * GetCurrentScheduleValue(state, Pollution.GasolineCoef.PM10Sched) * 0.001;
5237 : }
5238 0 : Pollution.GasolineComp.PM10Pollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5239 : }
5240 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5241 8201 : Pollution.PropaneComp.PM10Pollution = 0.0;
5242 8201 : if (Pollution.PropaneCoef.PM10Sched == 0) {
5243 8201 : PropaneValue = Pollution.PropaneCoef.PM10 * 0.001;
5244 : } else {
5245 0 : PropaneValue = Pollution.PropaneCoef.PM10 * GetCurrentScheduleValue(state, Pollution.PropaneCoef.PM10Sched) * 0.001;
5246 : }
5247 8201 : Pollution.PropaneComp.PM10Pollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5248 : }
5249 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5250 715 : Pollution.DieselComp.PM10Pollution = 0.0;
5251 715 : if (Pollution.DieselCoef.PM10Sched == 0) {
5252 715 : DieselValue = Pollution.DieselCoef.PM10 * 0.001;
5253 : } else {
5254 0 : DieselValue = Pollution.DieselCoef.PM10 * GetCurrentScheduleValue(state, Pollution.DieselCoef.PM10Sched) * 0.001;
5255 : }
5256 715 : Pollution.DieselComp.PM10Pollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5257 : }
5258 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5259 376 : Pollution.OtherFuel1Comp.PM10Pollution = 0.0;
5260 376 : if (Pollution.OtherFuel1Coef.PM10Sched == 0) {
5261 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.PM10 * 0.001;
5262 : } else {
5263 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.PM10 * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.PM10Sched) * 0.001;
5264 : }
5265 376 : Pollution.OtherFuel1Comp.PM10Pollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5266 : }
5267 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5268 0 : Pollution.OtherFuel2Comp.PM10Pollution = 0.0;
5269 0 : if (Pollution.OtherFuel2Coef.PM10Sched == 0) {
5270 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.PM10 * 0.001;
5271 : } else {
5272 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.PM10 * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.PM10Sched) * 0.001;
5273 : }
5274 0 : Pollution.OtherFuel2Comp.PM10Pollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5275 : }
5276 :
5277 391386 : ElecValue = 0.0;
5278 391386 : NatGasValue = 0.0;
5279 391386 : FuelOil1Value = 0.0;
5280 391386 : FuelOil2Value = 0.0;
5281 391386 : CoalValue = 0.0;
5282 391386 : GasolineValue = 0.0;
5283 391386 : PropaneValue = 0.0;
5284 391386 : DieselValue = 0.0;
5285 391386 : OtherFuel1Value = 0.0;
5286 391386 : OtherFuel2Value = 0.0;
5287 :
5288 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5289 56872 : Pollution.ElecComp.PM25Pollution = 0.0;
5290 56872 : if (Pollution.ElecCoef.PM25Sched == 0) {
5291 56872 : ElecValue = Pollution.ElecCoef.PM25 * 0.001;
5292 : } else {
5293 0 : ElecValue = Pollution.ElecCoef.PM25 * GetCurrentScheduleValue(state, Pollution.ElecCoef.PM25Sched) * 0.001;
5294 : }
5295 56872 : Pollution.ElecComp.PM25Pollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5296 : }
5297 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5298 54545 : Pollution.NatGasComp.PM25Pollution = 0.0;
5299 54545 : if (Pollution.NatGasCoef.PM25Sched == 0) {
5300 54545 : NatGasValue = Pollution.NatGasCoef.PM25 * 0.001;
5301 : } else {
5302 0 : NatGasValue = Pollution.NatGasCoef.PM25 * GetCurrentScheduleValue(state, Pollution.NatGasCoef.PM25Sched) * 0.001;
5303 : }
5304 54545 : Pollution.NatGasComp.PM25Pollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5305 : }
5306 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5307 8201 : Pollution.FuelOil1Comp.PM25Pollution = 0.0;
5308 8201 : if (Pollution.FuelOil1Coef.PM25Sched == 0) {
5309 8201 : FuelOil1Value = Pollution.FuelOil1Coef.PM25 * 0.001;
5310 : } else {
5311 0 : FuelOil1Value = Pollution.FuelOil1Coef.PM25 * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.PM25Sched) * 0.001;
5312 : }
5313 8201 : Pollution.FuelOil1Comp.PM25Pollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5314 : }
5315 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5316 0 : Pollution.FuelOil2Comp.PM25Pollution = 0.0;
5317 0 : if (Pollution.FuelOil2Coef.PM25Sched == 0) {
5318 0 : FuelOil2Value = Pollution.FuelOil2Coef.PM25 * 0.001;
5319 : } else {
5320 0 : FuelOil2Value = Pollution.FuelOil2Coef.PM25 * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.PM25Sched) * 0.001;
5321 : }
5322 0 : Pollution.FuelOil2Comp.PM25Pollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5323 : }
5324 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5325 0 : Pollution.CoalComp.PM25Pollution = 0.0;
5326 0 : if (Pollution.CoalCoef.PM25Sched == 0) {
5327 0 : CoalValue = Pollution.CoalCoef.PM25 * 0.001;
5328 : } else {
5329 0 : CoalValue = Pollution.CoalCoef.PM25 * GetCurrentScheduleValue(state, Pollution.CoalCoef.PM25Sched) * 0.001;
5330 : }
5331 0 : Pollution.CoalComp.PM25Pollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5332 : }
5333 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5334 0 : Pollution.GasolineComp.PM25Pollution = 0.0;
5335 0 : if (Pollution.GasolineCoef.PM25Sched == 0) {
5336 0 : GasolineValue = Pollution.GasolineCoef.PM25 * 0.001;
5337 : } else {
5338 0 : GasolineValue = Pollution.GasolineCoef.PM25 * GetCurrentScheduleValue(state, Pollution.GasolineCoef.PM25Sched) * 0.001;
5339 : }
5340 0 : Pollution.GasolineComp.PM25Pollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5341 : }
5342 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5343 8201 : Pollution.PropaneComp.PM25Pollution = 0.0;
5344 8201 : if (Pollution.PropaneCoef.PM25Sched == 0) {
5345 8201 : PropaneValue = Pollution.PropaneCoef.PM25 * 0.001;
5346 : } else {
5347 0 : PropaneValue = Pollution.PropaneCoef.PM25 * GetCurrentScheduleValue(state, Pollution.PropaneCoef.PM25Sched) * 0.001;
5348 : }
5349 8201 : Pollution.PropaneComp.PM25Pollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5350 : }
5351 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5352 715 : Pollution.DieselComp.PM25Pollution = 0.0;
5353 715 : if (Pollution.DieselCoef.PM25Sched == 0) {
5354 715 : DieselValue = Pollution.DieselCoef.PM25 * 0.001;
5355 : } else {
5356 0 : DieselValue = Pollution.DieselCoef.PM25 * GetCurrentScheduleValue(state, Pollution.DieselCoef.PM25Sched) * 0.001;
5357 : }
5358 715 : Pollution.DieselComp.PM25Pollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5359 : }
5360 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5361 376 : Pollution.OtherFuel1Comp.PM25Pollution = 0.0;
5362 376 : if (Pollution.OtherFuel1Coef.PM25Sched == 0) {
5363 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.PM25 * 0.001;
5364 : } else {
5365 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.PM25 * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.PM25Sched) * 0.001;
5366 : }
5367 376 : Pollution.OtherFuel1Comp.PM25Pollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5368 : }
5369 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5370 0 : Pollution.OtherFuel2Comp.PM25Pollution = 0.0;
5371 0 : if (Pollution.OtherFuel2Coef.PM25Sched == 0) {
5372 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.PM25 * 0.001;
5373 : } else {
5374 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.PM25 * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.PM25Sched) * 0.001;
5375 : }
5376 0 : Pollution.OtherFuel2Comp.PM25Pollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5377 : }
5378 :
5379 391386 : ElecValue = 0.0;
5380 391386 : NatGasValue = 0.0;
5381 391386 : FuelOil1Value = 0.0;
5382 391386 : FuelOil2Value = 0.0;
5383 391386 : CoalValue = 0.0;
5384 391386 : GasolineValue = 0.0;
5385 391386 : PropaneValue = 0.0;
5386 391386 : DieselValue = 0.0;
5387 391386 : OtherFuel1Value = 0.0;
5388 391386 : OtherFuel2Value = 0.0;
5389 :
5390 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5391 56872 : Pollution.ElecComp.NH3Pollution = 0.0;
5392 56872 : if (Pollution.ElecCoef.NH3Sched == 0) {
5393 56872 : ElecValue = Pollution.ElecCoef.NH3 * 0.001;
5394 : } else {
5395 0 : ElecValue = Pollution.ElecCoef.NH3 * GetCurrentScheduleValue(state, Pollution.ElecCoef.NH3Sched) * 0.001;
5396 : }
5397 56872 : Pollution.ElecComp.NH3Pollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5398 : }
5399 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5400 54545 : Pollution.NatGasComp.NH3Pollution = 0.0;
5401 54545 : if (Pollution.NatGasCoef.NH3Sched == 0) {
5402 54545 : NatGasValue = Pollution.NatGasCoef.NH3 * 0.001;
5403 : } else {
5404 0 : NatGasValue = Pollution.NatGasCoef.NH3 * GetCurrentScheduleValue(state, Pollution.NatGasCoef.NH3Sched) * 0.001;
5405 : }
5406 54545 : Pollution.NatGasComp.NH3Pollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5407 : }
5408 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5409 8201 : Pollution.FuelOil1Comp.NH3Pollution = 0.0;
5410 8201 : if (Pollution.FuelOil1Coef.NH3Sched == 0) {
5411 8201 : FuelOil1Value = Pollution.FuelOil1Coef.NH3 * 0.001;
5412 : } else {
5413 0 : FuelOil1Value = Pollution.FuelOil1Coef.NH3 * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.NH3Sched) * 0.001;
5414 : }
5415 8201 : Pollution.FuelOil1Comp.NH3Pollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5416 : }
5417 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5418 0 : Pollution.FuelOil2Comp.NH3Pollution = 0.0;
5419 0 : if (Pollution.FuelOil2Coef.NH3Sched == 0) {
5420 0 : FuelOil2Value = Pollution.FuelOil2Coef.NH3 * 0.001;
5421 : } else {
5422 0 : FuelOil2Value = Pollution.FuelOil2Coef.NH3 * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.NH3Sched) * 0.001;
5423 : }
5424 0 : Pollution.FuelOil2Comp.NH3Pollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5425 : }
5426 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5427 0 : Pollution.CoalComp.NH3Pollution = 0.0;
5428 0 : if (Pollution.CoalCoef.NH3Sched == 0) {
5429 0 : CoalValue = Pollution.CoalCoef.NH3 * 0.001;
5430 : } else {
5431 0 : CoalValue = Pollution.CoalCoef.NH3 * GetCurrentScheduleValue(state, Pollution.CoalCoef.NH3Sched) * 0.001;
5432 : }
5433 0 : Pollution.CoalComp.NH3Pollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5434 : }
5435 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5436 0 : Pollution.GasolineComp.NH3Pollution = 0.0;
5437 0 : if (Pollution.GasolineCoef.NH3Sched == 0) {
5438 0 : GasolineValue = Pollution.GasolineCoef.NH3 * 0.001;
5439 : } else {
5440 0 : GasolineValue = Pollution.GasolineCoef.NH3 * GetCurrentScheduleValue(state, Pollution.GasolineCoef.NH3Sched) * 0.001;
5441 : }
5442 0 : Pollution.GasolineComp.NH3Pollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5443 : }
5444 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5445 8201 : Pollution.PropaneComp.NH3Pollution = 0.0;
5446 8201 : if (Pollution.PropaneCoef.NH3Sched == 0) {
5447 8201 : PropaneValue = Pollution.PropaneCoef.NH3 * 0.001;
5448 : } else {
5449 0 : PropaneValue = Pollution.PropaneCoef.NH3 * GetCurrentScheduleValue(state, Pollution.PropaneCoef.NH3Sched) * 0.001;
5450 : }
5451 8201 : Pollution.PropaneComp.NH3Pollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5452 : }
5453 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5454 715 : Pollution.DieselComp.NH3Pollution = 0.0;
5455 715 : if (Pollution.DieselCoef.NH3Sched == 0) {
5456 715 : DieselValue = Pollution.DieselCoef.NH3 * 0.001;
5457 : } else {
5458 0 : DieselValue = Pollution.DieselCoef.NH3 * GetCurrentScheduleValue(state, Pollution.DieselCoef.NH3Sched) * 0.001;
5459 : }
5460 715 : Pollution.DieselComp.NH3Pollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5461 : }
5462 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5463 376 : Pollution.OtherFuel1Comp.NH3Pollution = 0.0;
5464 376 : if (Pollution.OtherFuel1Coef.NH3Sched == 0) {
5465 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.NH3 * 0.001;
5466 : } else {
5467 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.NH3 * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.NH3Sched) * 0.001;
5468 : }
5469 376 : Pollution.OtherFuel1Comp.NH3Pollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5470 : }
5471 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5472 0 : Pollution.OtherFuel2Comp.NH3Pollution = 0.0;
5473 0 : if (Pollution.OtherFuel2Coef.NH3Sched == 0) {
5474 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NH3 * 0.001;
5475 : } else {
5476 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NH3 * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.NH3Sched) * 0.001;
5477 : }
5478 0 : Pollution.OtherFuel2Comp.NH3Pollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5479 : }
5480 :
5481 391386 : ElecValue = 0.0;
5482 391386 : NatGasValue = 0.0;
5483 391386 : FuelOil1Value = 0.0;
5484 391386 : FuelOil2Value = 0.0;
5485 391386 : CoalValue = 0.0;
5486 391386 : GasolineValue = 0.0;
5487 391386 : PropaneValue = 0.0;
5488 391386 : DieselValue = 0.0;
5489 391386 : OtherFuel1Value = 0.0;
5490 391386 : OtherFuel2Value = 0.0;
5491 :
5492 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5493 56872 : Pollution.ElecComp.NMVOCPollution = 0.0;
5494 56872 : if (Pollution.ElecCoef.NMVOCSched == 0) {
5495 56872 : ElecValue = Pollution.ElecCoef.NMVOC * 0.001;
5496 : } else {
5497 0 : ElecValue = Pollution.ElecCoef.NMVOC * GetCurrentScheduleValue(state, Pollution.ElecCoef.NMVOCSched) * 0.001;
5498 : }
5499 56872 : Pollution.ElecComp.NMVOCPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5500 : }
5501 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5502 54545 : Pollution.NatGasComp.NMVOCPollution = 0.0;
5503 54545 : if (Pollution.NatGasCoef.NMVOCSched == 0) {
5504 54545 : NatGasValue = Pollution.NatGasCoef.NMVOC * 0.001;
5505 : } else {
5506 0 : NatGasValue = Pollution.NatGasCoef.NMVOC * GetCurrentScheduleValue(state, Pollution.NatGasCoef.NMVOCSched) * 0.001;
5507 : }
5508 54545 : Pollution.NatGasComp.NMVOCPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5509 : }
5510 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5511 8201 : Pollution.FuelOil1Comp.NMVOCPollution = 0.0;
5512 8201 : if (Pollution.FuelOil1Coef.NMVOCSched == 0) {
5513 8201 : FuelOil1Value = Pollution.FuelOil1Coef.NMVOC * 0.001;
5514 : } else {
5515 0 : FuelOil1Value = Pollution.FuelOil1Coef.NMVOC * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.NMVOCSched) * 0.001;
5516 : }
5517 8201 : Pollution.FuelOil1Comp.NMVOCPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5518 : }
5519 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5520 0 : Pollution.FuelOil2Comp.NMVOCPollution = 0.0;
5521 0 : if (Pollution.FuelOil2Coef.NMVOCSched == 0) {
5522 0 : FuelOil2Value = Pollution.FuelOil2Coef.NMVOC * 0.001;
5523 : } else {
5524 0 : FuelOil2Value = Pollution.FuelOil2Coef.NMVOC * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.NMVOCSched) * 0.001;
5525 : }
5526 0 : Pollution.FuelOil2Comp.NMVOCPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5527 : }
5528 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5529 0 : Pollution.CoalComp.NMVOCPollution = 0.0;
5530 0 : if (Pollution.CoalCoef.NMVOCSched == 0) {
5531 0 : CoalValue = Pollution.CoalCoef.NMVOC * 0.001;
5532 : } else {
5533 0 : CoalValue = Pollution.CoalCoef.NMVOC * GetCurrentScheduleValue(state, Pollution.CoalCoef.NMVOCSched) * 0.001;
5534 : }
5535 0 : Pollution.CoalComp.NMVOCPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5536 : }
5537 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5538 0 : Pollution.GasolineComp.NMVOCPollution = 0.0;
5539 0 : if (Pollution.GasolineCoef.NMVOCSched == 0) {
5540 0 : GasolineValue = Pollution.GasolineCoef.NMVOC * 0.001;
5541 : } else {
5542 0 : GasolineValue = Pollution.GasolineCoef.NMVOC * GetCurrentScheduleValue(state, Pollution.GasolineCoef.NMVOCSched) * 0.001;
5543 : }
5544 0 : Pollution.GasolineComp.NMVOCPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5545 : }
5546 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5547 8201 : Pollution.PropaneComp.NMVOCPollution = 0.0;
5548 8201 : if (Pollution.PropaneCoef.NMVOCSched == 0) {
5549 8201 : PropaneValue = Pollution.PropaneCoef.NMVOC * 0.001;
5550 : } else {
5551 0 : PropaneValue = Pollution.PropaneCoef.NMVOC * GetCurrentScheduleValue(state, Pollution.PropaneCoef.NMVOCSched) * 0.001;
5552 : }
5553 8201 : Pollution.PropaneComp.NMVOCPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5554 : }
5555 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5556 715 : Pollution.DieselComp.NMVOCPollution = 0.0;
5557 715 : if (Pollution.DieselCoef.NMVOCSched == 0) {
5558 715 : DieselValue = Pollution.DieselCoef.NMVOC * 0.001;
5559 : } else {
5560 0 : DieselValue = Pollution.DieselCoef.NMVOC * GetCurrentScheduleValue(state, Pollution.DieselCoef.NMVOCSched) * 0.001;
5561 : }
5562 715 : Pollution.DieselComp.NMVOCPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5563 : }
5564 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5565 376 : Pollution.OtherFuel1Comp.NMVOCPollution = 0.0;
5566 376 : if (Pollution.OtherFuel1Coef.NMVOCSched == 0) {
5567 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.NMVOC * 0.001;
5568 : } else {
5569 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.NMVOC * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.NMVOCSched) * 0.001;
5570 : }
5571 376 : Pollution.OtherFuel1Comp.NMVOCPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5572 : }
5573 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5574 0 : Pollution.OtherFuel2Comp.NMVOCPollution = 0.0;
5575 0 : if (Pollution.OtherFuel2Coef.NMVOCSched == 0) {
5576 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NMVOC * 0.001;
5577 : } else {
5578 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NMVOC * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.NMVOCSched) * 0.001;
5579 : }
5580 0 : Pollution.OtherFuel2Comp.NMVOCPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5581 : }
5582 :
5583 391386 : ElecValue = 0.0;
5584 391386 : NatGasValue = 0.0;
5585 391386 : FuelOil1Value = 0.0;
5586 391386 : FuelOil2Value = 0.0;
5587 391386 : CoalValue = 0.0;
5588 391386 : GasolineValue = 0.0;
5589 391386 : PropaneValue = 0.0;
5590 391386 : DieselValue = 0.0;
5591 391386 : OtherFuel1Value = 0.0;
5592 391386 : OtherFuel2Value = 0.0;
5593 :
5594 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5595 56872 : Pollution.ElecComp.HgPollution = 0.0;
5596 56872 : if (Pollution.ElecCoef.HgSched == 0) {
5597 56872 : ElecValue = Pollution.ElecCoef.Hg * 0.001;
5598 : } else {
5599 0 : ElecValue = Pollution.ElecCoef.Hg * GetCurrentScheduleValue(state, Pollution.ElecCoef.HgSched) * 0.001;
5600 : }
5601 56872 : Pollution.ElecComp.HgPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5602 : }
5603 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5604 54545 : Pollution.NatGasComp.HgPollution = 0.0;
5605 54545 : if (Pollution.NatGasCoef.HgSched == 0) {
5606 54545 : NatGasValue = Pollution.NatGasCoef.Hg * 0.001;
5607 : } else {
5608 0 : NatGasValue = Pollution.NatGasCoef.Hg * GetCurrentScheduleValue(state, Pollution.NatGasCoef.HgSched) * 0.001;
5609 : }
5610 54545 : Pollution.NatGasComp.HgPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5611 : }
5612 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5613 8201 : Pollution.FuelOil1Comp.HgPollution = 0.0;
5614 8201 : if (Pollution.FuelOil1Coef.HgSched == 0) {
5615 8201 : FuelOil1Value = Pollution.FuelOil1Coef.Hg * 0.001;
5616 : } else {
5617 0 : FuelOil1Value = Pollution.FuelOil1Coef.Hg * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.HgSched) * 0.001;
5618 : }
5619 8201 : Pollution.FuelOil1Comp.HgPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5620 : }
5621 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5622 0 : Pollution.FuelOil2Comp.HgPollution = 0.0;
5623 0 : if (Pollution.FuelOil2Coef.HgSched == 0) {
5624 0 : FuelOil2Value = Pollution.FuelOil2Coef.Hg * 0.001;
5625 : } else {
5626 0 : FuelOil2Value = Pollution.FuelOil2Coef.Hg * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.HgSched) * 0.001;
5627 : }
5628 0 : Pollution.FuelOil2Comp.HgPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5629 : }
5630 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5631 0 : Pollution.CoalComp.HgPollution = 0.0;
5632 0 : if (Pollution.CoalCoef.HgSched == 0) {
5633 0 : CoalValue = Pollution.CoalCoef.Hg * 0.001;
5634 : } else {
5635 0 : CoalValue = Pollution.CoalCoef.Hg * GetCurrentScheduleValue(state, Pollution.CoalCoef.HgSched) * 0.001;
5636 : }
5637 0 : Pollution.CoalComp.HgPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5638 : }
5639 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5640 0 : Pollution.GasolineComp.HgPollution = 0.0;
5641 0 : if (Pollution.GasolineCoef.HgSched == 0) {
5642 0 : GasolineValue = Pollution.GasolineCoef.Hg * 0.001;
5643 : } else {
5644 0 : GasolineValue = Pollution.GasolineCoef.Hg * GetCurrentScheduleValue(state, Pollution.GasolineCoef.HgSched) * 0.001;
5645 : }
5646 0 : Pollution.GasolineComp.HgPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5647 : }
5648 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5649 8201 : Pollution.PropaneComp.HgPollution = 0.0;
5650 8201 : if (Pollution.PropaneCoef.HgSched == 0) {
5651 8201 : PropaneValue = Pollution.PropaneCoef.Hg * 0.001;
5652 : } else {
5653 0 : PropaneValue = Pollution.PropaneCoef.Hg * GetCurrentScheduleValue(state, Pollution.PropaneCoef.HgSched) * 0.001;
5654 : }
5655 8201 : Pollution.PropaneComp.HgPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5656 : }
5657 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5658 715 : Pollution.DieselComp.HgPollution = 0.0;
5659 715 : if (Pollution.DieselCoef.HgSched == 0) {
5660 715 : DieselValue = Pollution.DieselCoef.Hg * 0.001;
5661 : } else {
5662 0 : DieselValue = Pollution.DieselCoef.Hg * GetCurrentScheduleValue(state, Pollution.DieselCoef.HgSched) * 0.001;
5663 : }
5664 715 : Pollution.DieselComp.HgPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5665 : }
5666 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5667 376 : Pollution.OtherFuel1Comp.HgPollution = 0.0;
5668 376 : if (Pollution.OtherFuel1Coef.HgSched == 0) {
5669 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.Hg * 0.001;
5670 : } else {
5671 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.Hg * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.HgSched) * 0.001;
5672 : }
5673 376 : Pollution.OtherFuel1Comp.HgPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5674 : }
5675 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5676 0 : Pollution.OtherFuel2Comp.HgPollution = 0.0;
5677 0 : if (Pollution.OtherFuel2Coef.HgSched == 0) {
5678 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.Hg * 0.001;
5679 : } else {
5680 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.Hg * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.HgSched) * 0.001;
5681 : }
5682 0 : Pollution.OtherFuel2Comp.HgPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5683 : }
5684 :
5685 391386 : ElecValue = 0.0;
5686 391386 : NatGasValue = 0.0;
5687 391386 : FuelOil1Value = 0.0;
5688 391386 : FuelOil2Value = 0.0;
5689 391386 : CoalValue = 0.0;
5690 391386 : GasolineValue = 0.0;
5691 391386 : PropaneValue = 0.0;
5692 391386 : DieselValue = 0.0;
5693 391386 : OtherFuel1Value = 0.0;
5694 391386 : OtherFuel2Value = 0.0;
5695 :
5696 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5697 56872 : Pollution.ElecComp.PbPollution = 0.0;
5698 56872 : if (Pollution.ElecCoef.PbSched == 0) {
5699 56872 : ElecValue = Pollution.ElecCoef.Pb * 0.001;
5700 : } else {
5701 0 : ElecValue = Pollution.ElecCoef.Pb * GetCurrentScheduleValue(state, Pollution.ElecCoef.PbSched) * 0.001;
5702 : }
5703 56872 : Pollution.ElecComp.PbPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5704 : }
5705 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5706 54545 : Pollution.NatGasComp.PbPollution = 0.0;
5707 54545 : if (Pollution.NatGasCoef.PbSched == 0) {
5708 54545 : NatGasValue = Pollution.NatGasCoef.Pb * 0.001;
5709 : } else {
5710 0 : NatGasValue = Pollution.NatGasCoef.Pb * GetCurrentScheduleValue(state, Pollution.NatGasCoef.PbSched) * 0.001;
5711 : }
5712 54545 : Pollution.NatGasComp.PbPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5713 : }
5714 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5715 8201 : Pollution.FuelOil1Comp.PbPollution = 0.0;
5716 8201 : if (Pollution.FuelOil1Coef.PbSched == 0) {
5717 8201 : FuelOil1Value = Pollution.FuelOil1Coef.Pb * 0.001;
5718 : } else {
5719 0 : FuelOil1Value = Pollution.FuelOil1Coef.Pb * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.PbSched) * 0.001;
5720 : }
5721 8201 : Pollution.FuelOil1Comp.PbPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5722 : }
5723 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5724 0 : Pollution.FuelOil2Comp.PbPollution = 0.0;
5725 0 : if (Pollution.FuelOil2Coef.PbSched == 0) {
5726 0 : FuelOil2Value = Pollution.FuelOil2Coef.Pb * 0.001;
5727 : } else {
5728 0 : FuelOil2Value = Pollution.FuelOil2Coef.Pb * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.PbSched) * 0.001;
5729 : }
5730 0 : Pollution.FuelOil2Comp.PbPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5731 : }
5732 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5733 0 : Pollution.CoalComp.PbPollution = 0.0;
5734 0 : if (Pollution.CoalCoef.PbSched == 0) {
5735 0 : CoalValue = Pollution.CoalCoef.Pb * 0.001;
5736 : } else {
5737 0 : CoalValue = Pollution.CoalCoef.Pb * GetCurrentScheduleValue(state, Pollution.CoalCoef.PbSched) * 0.001;
5738 : }
5739 0 : Pollution.CoalComp.PbPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5740 : }
5741 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5742 0 : Pollution.GasolineComp.PbPollution = 0.0;
5743 0 : if (Pollution.GasolineCoef.PbSched == 0) {
5744 0 : GasolineValue = Pollution.GasolineCoef.Pb * 0.001;
5745 : } else {
5746 0 : GasolineValue = Pollution.GasolineCoef.Pb * GetCurrentScheduleValue(state, Pollution.GasolineCoef.PbSched) * 0.001;
5747 : }
5748 0 : Pollution.GasolineComp.PbPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5749 : }
5750 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5751 8201 : Pollution.PropaneComp.PbPollution = 0.0;
5752 8201 : if (Pollution.PropaneCoef.PbSched == 0) {
5753 8201 : PropaneValue = Pollution.PropaneCoef.Pb * 0.001;
5754 : } else {
5755 0 : PropaneValue = Pollution.PropaneCoef.Pb * GetCurrentScheduleValue(state, Pollution.PropaneCoef.PbSched) * 0.001;
5756 : }
5757 8201 : Pollution.PropaneComp.PbPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5758 : }
5759 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5760 715 : Pollution.DieselComp.PbPollution = 0.0;
5761 715 : if (Pollution.DieselCoef.PbSched == 0) {
5762 715 : DieselValue = Pollution.DieselCoef.Pb * 0.001;
5763 : } else {
5764 0 : DieselValue = Pollution.DieselCoef.Pb * GetCurrentScheduleValue(state, Pollution.DieselCoef.PbSched) * 0.001;
5765 : }
5766 715 : Pollution.DieselComp.PbPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5767 : }
5768 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5769 376 : Pollution.OtherFuel1Comp.PbPollution = 0.0;
5770 376 : if (Pollution.OtherFuel1Coef.PbSched == 0) {
5771 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.Pb * 0.001;
5772 : } else {
5773 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.Pb * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.PbSched) * 0.001;
5774 : }
5775 376 : Pollution.OtherFuel1Comp.PbPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5776 : }
5777 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5778 0 : Pollution.OtherFuel2Comp.PbPollution = 0.0;
5779 0 : if (Pollution.OtherFuel2Coef.PbSched == 0) {
5780 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.Pb * 0.001;
5781 : } else {
5782 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.Pb * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.PbSched) * 0.001;
5783 : }
5784 0 : Pollution.OtherFuel2Comp.PbPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5785 : }
5786 :
5787 391386 : ElecValue = 0.0;
5788 391386 : NatGasValue = 0.0;
5789 391386 : FuelOil1Value = 0.0;
5790 391386 : FuelOil2Value = 0.0;
5791 391386 : CoalValue = 0.0;
5792 391386 : GasolineValue = 0.0;
5793 391386 : PropaneValue = 0.0;
5794 391386 : DieselValue = 0.0;
5795 391386 : OtherFuel1Value = 0.0;
5796 391386 : OtherFuel2Value = 0.0;
5797 :
5798 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5799 56872 : Pollution.ElecComp.WaterPollution = 0.0;
5800 56872 : if (Pollution.ElecCoef.WaterSched == 0) {
5801 56872 : ElecValue = Pollution.ElecCoef.Water;
5802 : } else {
5803 0 : ElecValue = Pollution.ElecCoef.Water * GetCurrentScheduleValue(state, Pollution.ElecCoef.WaterSched);
5804 : }
5805 56872 : Pollution.ElecComp.WaterPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5806 : }
5807 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5808 54545 : Pollution.NatGasComp.WaterPollution = 0.0;
5809 54545 : if (Pollution.NatGasCoef.WaterSched == 0) {
5810 54545 : NatGasValue = Pollution.NatGasCoef.Water;
5811 : } else {
5812 0 : NatGasValue = Pollution.NatGasCoef.Water * GetCurrentScheduleValue(state, Pollution.NatGasCoef.WaterSched);
5813 : }
5814 54545 : Pollution.NatGasComp.WaterPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5815 : }
5816 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5817 8201 : Pollution.FuelOil1Comp.WaterPollution = 0.0;
5818 8201 : if (Pollution.FuelOil1Coef.WaterSched == 0) {
5819 8201 : FuelOil1Value = Pollution.FuelOil1Coef.Water;
5820 : } else {
5821 0 : FuelOil1Value = Pollution.FuelOil1Coef.Water * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.WaterSched);
5822 : }
5823 8201 : Pollution.FuelOil1Comp.WaterPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5824 : }
5825 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5826 0 : Pollution.FuelOil2Comp.WaterPollution = 0.0;
5827 0 : if (Pollution.FuelOil2Coef.WaterSched == 0) {
5828 0 : FuelOil2Value = Pollution.FuelOil2Coef.Water;
5829 : } else {
5830 0 : FuelOil2Value = Pollution.FuelOil2Coef.Water * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.WaterSched);
5831 : }
5832 0 : Pollution.FuelOil2Comp.WaterPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5833 : }
5834 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5835 0 : Pollution.CoalComp.WaterPollution = 0.0;
5836 0 : if (Pollution.CoalCoef.WaterSched == 0) {
5837 0 : CoalValue = Pollution.CoalCoef.Water;
5838 : } else {
5839 0 : CoalValue = Pollution.CoalCoef.Water * GetCurrentScheduleValue(state, Pollution.CoalCoef.WaterSched);
5840 : }
5841 0 : Pollution.CoalComp.WaterPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5842 : }
5843 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5844 0 : Pollution.GasolineComp.WaterPollution = 0.0;
5845 0 : if (Pollution.GasolineCoef.WaterSched == 0) {
5846 0 : GasolineValue = Pollution.GasolineCoef.Water;
5847 : } else {
5848 0 : GasolineValue = Pollution.GasolineCoef.Water * GetCurrentScheduleValue(state, Pollution.GasolineCoef.WaterSched);
5849 : }
5850 0 : Pollution.GasolineComp.WaterPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5851 : }
5852 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5853 8201 : Pollution.PropaneComp.WaterPollution = 0.0;
5854 8201 : if (Pollution.PropaneCoef.WaterSched == 0) {
5855 8201 : PropaneValue = Pollution.PropaneCoef.Water;
5856 : } else {
5857 0 : PropaneValue = Pollution.PropaneCoef.Water * GetCurrentScheduleValue(state, Pollution.PropaneCoef.WaterSched);
5858 : }
5859 8201 : Pollution.PropaneComp.WaterPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5860 : }
5861 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5862 715 : Pollution.DieselComp.WaterPollution = 0.0;
5863 715 : if (Pollution.DieselCoef.WaterSched == 0) {
5864 715 : DieselValue = Pollution.DieselCoef.Water;
5865 : } else {
5866 0 : DieselValue = Pollution.DieselCoef.Water * GetCurrentScheduleValue(state, Pollution.DieselCoef.WaterSched);
5867 : }
5868 715 : Pollution.DieselComp.WaterPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5869 : }
5870 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5871 376 : Pollution.OtherFuel1Comp.WaterPollution = 0.0;
5872 376 : if (Pollution.OtherFuel1Coef.WaterSched == 0) {
5873 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.Water;
5874 : } else {
5875 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.Water * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.WaterSched);
5876 : }
5877 376 : Pollution.OtherFuel1Comp.WaterPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5878 : }
5879 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5880 0 : Pollution.OtherFuel2Comp.WaterPollution = 0.0;
5881 0 : if (Pollution.OtherFuel2Coef.WaterSched == 0) {
5882 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.Water;
5883 : } else {
5884 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.Water * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.WaterSched);
5885 : }
5886 0 : Pollution.OtherFuel2Comp.WaterPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5887 : }
5888 :
5889 391386 : ElecValue = 0.0;
5890 391386 : NatGasValue = 0.0;
5891 391386 : FuelOil1Value = 0.0;
5892 391386 : FuelOil2Value = 0.0;
5893 391386 : CoalValue = 0.0;
5894 391386 : GasolineValue = 0.0;
5895 391386 : PropaneValue = 0.0;
5896 391386 : DieselValue = 0.0;
5897 391386 : OtherFuel1Value = 0.0;
5898 391386 : OtherFuel2Value = 0.0;
5899 :
5900 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
5901 56872 : Pollution.ElecComp.NucHiPollution = 0.0;
5902 56872 : if (Pollution.ElecCoef.NucHiSched == 0) {
5903 56872 : ElecValue = Pollution.ElecCoef.NucHi * 0.001;
5904 : } else {
5905 0 : ElecValue = Pollution.ElecCoef.NucHi * GetCurrentScheduleValue(state, Pollution.ElecCoef.NucHiSched) * 0.001;
5906 : }
5907 56872 : Pollution.ElecComp.NucHiPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
5908 : }
5909 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
5910 54545 : Pollution.NatGasComp.NucHiPollution = 0.0;
5911 54545 : if (Pollution.NatGasCoef.NucHiSched == 0) {
5912 54545 : NatGasValue = Pollution.NatGasCoef.NucHi * 0.001;
5913 : } else {
5914 0 : NatGasValue = Pollution.NatGasCoef.NucHi * GetCurrentScheduleValue(state, Pollution.NatGasCoef.NucHiSched) * 0.001;
5915 : }
5916 54545 : Pollution.NatGasComp.NucHiPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
5917 : }
5918 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
5919 8201 : Pollution.FuelOil1Comp.NucHiPollution = 0.0;
5920 8201 : if (Pollution.FuelOil1Coef.NucHiSched == 0) {
5921 8201 : FuelOil1Value = Pollution.FuelOil1Coef.NucHi * 0.001;
5922 : } else {
5923 0 : FuelOil1Value = Pollution.FuelOil1Coef.NucHi * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.NucHiSched) * 0.001;
5924 : }
5925 8201 : Pollution.FuelOil1Comp.NucHiPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
5926 : }
5927 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
5928 0 : Pollution.FuelOil2Comp.NucHiPollution = 0.0;
5929 0 : if (Pollution.FuelOil2Coef.NucHiSched == 0) {
5930 0 : FuelOil2Value = Pollution.FuelOil2Coef.NucHi * 0.001;
5931 : } else {
5932 0 : FuelOil2Value = Pollution.FuelOil2Coef.NucHi * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.NucHiSched) * 0.001;
5933 : }
5934 0 : Pollution.FuelOil2Comp.NucHiPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
5935 : }
5936 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
5937 0 : Pollution.CoalComp.NucHiPollution = 0.0;
5938 0 : if (Pollution.CoalCoef.NucHiSched == 0) {
5939 0 : CoalValue = Pollution.CoalCoef.NucHi * 0.001;
5940 : } else {
5941 0 : CoalValue = Pollution.CoalCoef.NucHi * GetCurrentScheduleValue(state, Pollution.CoalCoef.NucHiSched) * 0.001;
5942 : }
5943 0 : Pollution.CoalComp.NucHiPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
5944 : }
5945 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
5946 0 : Pollution.GasolineComp.NucHiPollution = 0.0;
5947 0 : if (Pollution.GasolineCoef.NucHiSched == 0) {
5948 0 : GasolineValue = Pollution.GasolineCoef.NucHi * 0.001;
5949 : } else {
5950 0 : GasolineValue = Pollution.GasolineCoef.NucHi * GetCurrentScheduleValue(state, Pollution.GasolineCoef.NucHiSched) * 0.001;
5951 : }
5952 0 : Pollution.GasolineComp.NucHiPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
5953 : }
5954 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
5955 8201 : Pollution.PropaneComp.NucHiPollution = 0.0;
5956 8201 : if (Pollution.PropaneCoef.NucHiSched == 0) {
5957 8201 : PropaneValue = Pollution.PropaneCoef.NucHi * 0.001;
5958 : } else {
5959 0 : PropaneValue = Pollution.PropaneCoef.NucHi * GetCurrentScheduleValue(state, Pollution.PropaneCoef.NucHiSched) * 0.001;
5960 : }
5961 8201 : Pollution.PropaneComp.NucHiPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
5962 : }
5963 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
5964 715 : Pollution.DieselComp.NucHiPollution = 0.0;
5965 715 : if (Pollution.DieselCoef.NucHiSched == 0) {
5966 715 : DieselValue = Pollution.DieselCoef.NucHi * 0.001;
5967 : } else {
5968 0 : DieselValue = Pollution.DieselCoef.NucHi * GetCurrentScheduleValue(state, Pollution.DieselCoef.NucHiSched) * 0.001;
5969 : }
5970 715 : Pollution.DieselComp.NucHiPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
5971 : }
5972 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
5973 376 : Pollution.OtherFuel1Comp.NucHiPollution = 0.0;
5974 376 : if (Pollution.OtherFuel1Coef.NucHiSched == 0) {
5975 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.NucHi * 0.001;
5976 : } else {
5977 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.NucHi * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.NucHiSched) * 0.001;
5978 : }
5979 376 : Pollution.OtherFuel1Comp.NucHiPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
5980 : }
5981 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
5982 0 : Pollution.OtherFuel2Comp.NucHiPollution = 0.0;
5983 0 : if (Pollution.OtherFuel2Coef.NucHiSched == 0) {
5984 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NucHi * 0.001;
5985 : } else {
5986 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NucHi * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.NucHiSched) * 0.001;
5987 : }
5988 0 : Pollution.OtherFuel2Comp.NucHiPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
5989 : }
5990 :
5991 391386 : ElecValue = 0.0;
5992 391386 : NatGasValue = 0.0;
5993 391386 : FuelOil1Value = 0.0;
5994 391386 : FuelOil2Value = 0.0;
5995 391386 : CoalValue = 0.0;
5996 391386 : GasolineValue = 0.0;
5997 391386 : PropaneValue = 0.0;
5998 391386 : DieselValue = 0.0;
5999 391386 : OtherFuel1Value = 0.0;
6000 391386 : OtherFuel2Value = 0.0;
6001 :
6002 391386 : if (Pollution.ElecCoef.FuelFactorUsed) {
6003 56872 : Pollution.ElecComp.NucLoPollution = 0.0;
6004 56872 : if (Pollution.ElecCoef.NucLoSched == 0) {
6005 56872 : ElecValue = Pollution.ElecCoef.NucLo;
6006 : } else {
6007 0 : ElecValue = Pollution.ElecCoef.NucLo * GetCurrentScheduleValue(state, Pollution.ElecCoef.NucLoSched);
6008 : }
6009 56872 : Pollution.ElecComp.NucLoPollution = (FuelType.Elec * 1.0e-6) * ElecValue;
6010 : }
6011 391386 : if (Pollution.NatGasCoef.FuelFactorUsed) {
6012 54545 : Pollution.NatGasComp.NucLoPollution = 0.0;
6013 54545 : if (Pollution.NatGasCoef.NucLoSched == 0) {
6014 54545 : NatGasValue = Pollution.NatGasCoef.NucLo;
6015 : } else {
6016 0 : NatGasValue = Pollution.NatGasCoef.NucLo * GetCurrentScheduleValue(state, Pollution.NatGasCoef.NucLoSched);
6017 : }
6018 54545 : Pollution.NatGasComp.NucLoPollution = (FuelType.NatGas * 1.0e-6) * NatGasValue;
6019 : }
6020 391386 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
6021 8201 : Pollution.FuelOil1Comp.NucLoPollution = 0.0;
6022 8201 : if (Pollution.FuelOil1Coef.NucLoSched == 0) {
6023 8201 : FuelOil1Value = Pollution.FuelOil1Coef.NucLo;
6024 : } else {
6025 0 : FuelOil1Value = Pollution.FuelOil1Coef.NucLo * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.NucLoSched);
6026 : }
6027 8201 : Pollution.FuelOil1Comp.NucLoPollution = (FuelType.FuelOil1 * 1.0e-6) * FuelOil1Value;
6028 : }
6029 391386 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
6030 0 : Pollution.FuelOil2Comp.NucLoPollution = 0.0;
6031 0 : if (Pollution.FuelOil2Coef.NucLoSched == 0) {
6032 0 : FuelOil2Value = Pollution.FuelOil2Coef.NucLo;
6033 : } else {
6034 0 : FuelOil2Value = Pollution.FuelOil2Coef.NucLo * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.NucLoSched);
6035 : }
6036 0 : Pollution.FuelOil2Comp.NucLoPollution = (FuelType.FuelOil2 * 1.0e-6) * FuelOil2Value;
6037 : }
6038 391386 : if (Pollution.CoalCoef.FuelFactorUsed) {
6039 0 : Pollution.CoalComp.NucLoPollution = 0.0;
6040 0 : if (Pollution.CoalCoef.NucLoSched == 0) {
6041 0 : CoalValue = Pollution.CoalCoef.NucLo;
6042 : } else {
6043 0 : CoalValue = Pollution.CoalCoef.NucLo * GetCurrentScheduleValue(state, Pollution.CoalCoef.NucLoSched);
6044 : }
6045 0 : Pollution.CoalComp.NucLoPollution = (FuelType.Coal * 1.0e-6) * CoalValue;
6046 : }
6047 391386 : if (Pollution.GasolineCoef.FuelFactorUsed) {
6048 0 : Pollution.GasolineComp.NucLoPollution = 0.0;
6049 0 : if (Pollution.GasolineCoef.NucLoSched == 0) {
6050 0 : GasolineValue = Pollution.GasolineCoef.NucLo;
6051 : } else {
6052 0 : GasolineValue = Pollution.GasolineCoef.NucLo * GetCurrentScheduleValue(state, Pollution.GasolineCoef.NucLoSched);
6053 : }
6054 0 : Pollution.GasolineComp.NucLoPollution = (FuelType.Gasoline * 1.0e-6) * GasolineValue;
6055 : }
6056 391386 : if (Pollution.PropaneCoef.FuelFactorUsed) {
6057 8201 : Pollution.PropaneComp.NucLoPollution = 0.0;
6058 8201 : if (Pollution.PropaneCoef.NucLoSched == 0) {
6059 8201 : PropaneValue = Pollution.PropaneCoef.NucLo;
6060 : } else {
6061 0 : PropaneValue = Pollution.PropaneCoef.NucLo * GetCurrentScheduleValue(state, Pollution.PropaneCoef.NucLoSched);
6062 : }
6063 8201 : Pollution.PropaneComp.NucLoPollution = (FuelType.Propane * 1.0e-6) * PropaneValue;
6064 : }
6065 391386 : if (Pollution.DieselCoef.FuelFactorUsed) {
6066 715 : Pollution.DieselComp.NucLoPollution = 0.0;
6067 715 : if (Pollution.DieselCoef.NucLoSched == 0) {
6068 715 : DieselValue = Pollution.DieselCoef.NucLo;
6069 : } else {
6070 0 : DieselValue = Pollution.DieselCoef.NucLo * GetCurrentScheduleValue(state, Pollution.DieselCoef.NucLoSched);
6071 : }
6072 715 : Pollution.DieselComp.NucLoPollution = (FuelType.Diesel * 1.0e-6) * DieselValue;
6073 : }
6074 391386 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
6075 376 : Pollution.OtherFuel1Comp.NucLoPollution = 0.0;
6076 376 : if (Pollution.OtherFuel1Coef.NucLoSched == 0) {
6077 376 : OtherFuel1Value = Pollution.OtherFuel1Coef.NucLo;
6078 : } else {
6079 0 : OtherFuel1Value = Pollution.OtherFuel1Coef.NucLo * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.NucLoSched);
6080 : }
6081 376 : Pollution.OtherFuel1Comp.NucLoPollution = (FuelType.OtherFuel1 * 1.0e-6) * OtherFuel1Value;
6082 : }
6083 391386 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
6084 0 : Pollution.OtherFuel2Comp.NucLoPollution = 0.0;
6085 0 : if (Pollution.OtherFuel2Coef.NucLoSched == 0) {
6086 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NucLo;
6087 : } else {
6088 0 : OtherFuel2Value = Pollution.OtherFuel2Coef.NucLo * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.NucLoSched);
6089 : }
6090 0 : Pollution.OtherFuel2Comp.NucLoPollution = (FuelType.OtherFuel2 * 1.0e-6) * OtherFuel2Value;
6091 : }
6092 :
6093 391386 : Pollution.TotCarbonEquivFromN2O = Pollution.N2OPollutTotal * Pollution.CarbonEquivN2O;
6094 391386 : Pollution.TotCarbonEquivFromCH4 = Pollution.CH4PollutTotal * Pollution.CarbonEquivCH4;
6095 391386 : Pollution.TotCarbonEquivFromCO2 = Pollution.CO2PollutTotal * Pollution.CarbonEquivCO2;
6096 :
6097 391386 : ElecValue = 0.0;
6098 391386 : NatGasValue = 0.0;
6099 391386 : FuelOil1Value = 0.0;
6100 391386 : FuelOil2Value = 0.0;
6101 391386 : CoalValue = 0.0;
6102 391386 : GasolineValue = 0.0;
6103 391386 : PropaneValue = 0.0;
6104 391386 : DieselValue = 0.0;
6105 391386 : OtherFuel1Value = 0.0;
6106 391386 : OtherFuel2Value = 0.0;
6107 :
6108 391386 : if (Pollution.ElecCoef.SourceSched != 0) {
6109 227 : Pollution.ElecComp.Source = FuelType.Elec * Pollution.ElecCoef.Source * GetCurrentScheduleValue(state, Pollution.ElecCoef.SourceSched);
6110 227 : Pollution.ElecPurchComp.Source =
6111 227 : FuelType.ElecPurch * Pollution.ElecCoef.Source * GetCurrentScheduleValue(state, Pollution.ElecCoef.SourceSched);
6112 227 : Pollution.ElecSurplusSoldComp.Source =
6113 227 : FuelType.ElecSold * Pollution.ElecCoef.Source * GetCurrentScheduleValue(state, Pollution.ElecCoef.SourceSched);
6114 : } else {
6115 391159 : Pollution.ElecComp.Source = FuelType.Elec * Pollution.ElecCoef.Source;
6116 391159 : Pollution.ElecPurchComp.Source = FuelType.ElecPurch * Pollution.ElecCoef.Source;
6117 391159 : Pollution.ElecSurplusSoldComp.Source = FuelType.ElecSold * Pollution.ElecCoef.Source;
6118 : }
6119 391386 : if (Pollution.NatGasCoef.SourceSched != 0) {
6120 : // does not include district heating or steam
6121 227 : Pollution.NatGasComp.Source =
6122 227 : FuelType.NatGasFacility * Pollution.NatGasCoef.Source * GetCurrentScheduleValue(state, Pollution.NatGasCoef.SourceSched);
6123 : } else {
6124 391159 : Pollution.NatGasComp.Source = FuelType.NatGasFacility * Pollution.NatGasCoef.Source;
6125 : }
6126 391386 : if (Pollution.FuelOil1Coef.SourceSched != 0) {
6127 0 : Pollution.FuelOil1Comp.Source =
6128 0 : FuelType.FuelOil1 * Pollution.FuelOil1Coef.Source * GetCurrentScheduleValue(state, Pollution.FuelOil1Coef.SourceSched);
6129 : } else {
6130 391386 : Pollution.FuelOil1Comp.Source = FuelType.FuelOil1 * Pollution.FuelOil1Coef.Source;
6131 : }
6132 391386 : if (Pollution.FuelOil2Coef.SourceSched != 0) {
6133 0 : Pollution.FuelOil2Comp.Source =
6134 0 : FuelType.FuelOil2 * Pollution.FuelOil2Coef.Source * GetCurrentScheduleValue(state, Pollution.FuelOil2Coef.SourceSched);
6135 : } else {
6136 391386 : Pollution.FuelOil1Comp.Source = FuelType.FuelOil2 * Pollution.FuelOil2Coef.Source;
6137 : }
6138 391386 : if (Pollution.CoalCoef.SourceSched != 0) {
6139 0 : Pollution.CoalComp.Source = FuelType.Coal * Pollution.CoalCoef.Source * GetCurrentScheduleValue(state, Pollution.CoalCoef.SourceSched);
6140 : } else {
6141 391386 : Pollution.CoalComp.Source = FuelType.Coal * Pollution.CoalCoef.Source;
6142 : }
6143 391386 : if (Pollution.GasolineCoef.SourceSched != 0) {
6144 0 : Pollution.GasolineComp.Source =
6145 0 : FuelType.Gasoline * Pollution.GasolineCoef.Source * GetCurrentScheduleValue(state, Pollution.GasolineCoef.SourceSched);
6146 : } else {
6147 391386 : Pollution.GasolineComp.Source = FuelType.Gasoline * Pollution.GasolineCoef.Source;
6148 : }
6149 391386 : if (Pollution.PropaneCoef.SourceSched != 0) {
6150 0 : Pollution.PropaneComp.Source =
6151 0 : FuelType.Propane * Pollution.PropaneCoef.Source * GetCurrentScheduleValue(state, Pollution.PropaneCoef.SourceSched);
6152 : } else {
6153 391386 : Pollution.PropaneComp.Source = FuelType.Propane * Pollution.PropaneCoef.Source;
6154 : }
6155 391386 : if (Pollution.DieselCoef.SourceSched != 0) {
6156 0 : Pollution.DieselComp.Source =
6157 0 : FuelType.Diesel * Pollution.DieselCoef.Source * GetCurrentScheduleValue(state, Pollution.DieselCoef.SourceSched);
6158 : } else {
6159 391386 : Pollution.DieselComp.Source = FuelType.Diesel * Pollution.DieselCoef.Source;
6160 : }
6161 391386 : if (Pollution.OtherFuel1Coef.SourceSched != 0) {
6162 0 : Pollution.OtherFuel1Comp.Source =
6163 0 : FuelType.OtherFuel1 * Pollution.OtherFuel1Coef.Source * GetCurrentScheduleValue(state, Pollution.OtherFuel1Coef.SourceSched);
6164 : } else {
6165 391386 : Pollution.OtherFuel1Comp.Source = FuelType.OtherFuel1 * Pollution.OtherFuel1Coef.Source;
6166 : }
6167 391386 : if (Pollution.OtherFuel2Coef.SourceSched != 0) {
6168 0 : Pollution.OtherFuel2Comp.Source =
6169 0 : FuelType.OtherFuel2 * Pollution.OtherFuel2Coef.Source * GetCurrentScheduleValue(state, Pollution.OtherFuel2Coef.SourceSched);
6170 : } else {
6171 391386 : Pollution.OtherFuel2Comp.Source = FuelType.OtherFuel2 * Pollution.OtherFuel2Coef.Source;
6172 : }
6173 391386 : }
6174 :
6175 391386 : void ReadEnergyMeters(EnergyPlusData &state)
6176 : {
6177 : // SUBROUTINE INFORMATION:
6178 : // AUTHOR Richard Liesen
6179 : // DATE WRITTEN 1998
6180 : // MODIFIED na
6181 : // RE-ENGINEERED December 2003 RJL
6182 :
6183 : // PURPOSE OF THIS SUBROUTINE:
6184 : // Read Energy Results from the meters
6185 : // This routine reads the meters for the energy used
6186 :
6187 : // Using/Aliasing
6188 391386 : auto &FracTimeStepZone = state.dataHVACGlobal->FracTimeStepZone;
6189 :
6190 : // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
6191 391386 : auto &Pollution = state.dataPollutionModule->Pollution;
6192 391386 : auto &FuelType = state.dataPollutionModule->FuelType;
6193 :
6194 782772 : FuelType.ElecFacility = GetInstantMeterValue(state, FuelType.ElecFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6195 391386 : GetInstantMeterValue(state, FuelType.ElecFacilityIndex, OutputProcessor::TimeStepType::System);
6196 782772 : FuelType.DieselFacility = GetInstantMeterValue(state, FuelType.DieselFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6197 391386 : GetInstantMeterValue(state, FuelType.DieselFacilityIndex, OutputProcessor::TimeStepType::System);
6198 391386 : FuelType.PurchCoolFacility =
6199 782772 : GetInstantMeterValue(state, FuelType.PurchCoolFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6200 391386 : GetInstantMeterValue(state, FuelType.PurchCoolFacilityIndex, OutputProcessor::TimeStepType::System);
6201 391386 : FuelType.PurchHeatFacility =
6202 782772 : GetInstantMeterValue(state, FuelType.PurchHeatFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6203 391386 : GetInstantMeterValue(state, FuelType.PurchHeatFacilityIndex, OutputProcessor::TimeStepType::System);
6204 782772 : FuelType.NatGasFacility = GetInstantMeterValue(state, FuelType.NatGasFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6205 391386 : GetInstantMeterValue(state, FuelType.NatGasFacilityIndex, OutputProcessor::TimeStepType::System);
6206 782772 : FuelType.GasolineFacility = GetInstantMeterValue(state, FuelType.GasolineFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6207 391386 : GetInstantMeterValue(state, FuelType.GasolineFacilityIndex, OutputProcessor::TimeStepType::System);
6208 782772 : FuelType.CoalFacility = GetInstantMeterValue(state, FuelType.CoalFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6209 391386 : GetInstantMeterValue(state, FuelType.CoalFacilityIndex, OutputProcessor::TimeStepType::System);
6210 782772 : FuelType.FuelOil1Facility = GetInstantMeterValue(state, FuelType.FuelOil1FacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6211 391386 : GetInstantMeterValue(state, FuelType.FuelOil1FacilityIndex, OutputProcessor::TimeStepType::System);
6212 782772 : FuelType.FuelOil2Facility = GetInstantMeterValue(state, FuelType.FuelOil2FacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6213 391386 : GetInstantMeterValue(state, FuelType.FuelOil2FacilityIndex, OutputProcessor::TimeStepType::System);
6214 782772 : FuelType.PropaneFacility = GetInstantMeterValue(state, FuelType.PropaneFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6215 391386 : GetInstantMeterValue(state, FuelType.PropaneFacilityIndex, OutputProcessor::TimeStepType::System);
6216 391386 : FuelType.OtherFuel1Facility =
6217 782772 : GetInstantMeterValue(state, FuelType.OtherFuel1FacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6218 391386 : GetInstantMeterValue(state, FuelType.OtherFuel1FacilityIndex, OutputProcessor::TimeStepType::System);
6219 391386 : FuelType.OtherFuel2Facility =
6220 782772 : GetInstantMeterValue(state, FuelType.OtherFuel2FacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6221 391386 : GetInstantMeterValue(state, FuelType.OtherFuel2FacilityIndex, OutputProcessor::TimeStepType::System);
6222 391386 : FuelType.ElecProducedFacility =
6223 782772 : GetInstantMeterValue(state, FuelType.ElecProducedFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6224 391386 : GetInstantMeterValue(state, FuelType.ElecProducedFacilityIndex, OutputProcessor::TimeStepType::System);
6225 782772 : FuelType.SteamFacility = GetInstantMeterValue(state, FuelType.SteamFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6226 391386 : GetInstantMeterValue(state, FuelType.SteamFacilityIndex, OutputProcessor::TimeStepType::System);
6227 391386 : FuelType.ElecPurchasedFacility =
6228 782772 : GetInstantMeterValue(state, FuelType.ElecPurchasedFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6229 391386 : GetInstantMeterValue(state, FuelType.ElecPurchasedFacilityIndex, OutputProcessor::TimeStepType::System);
6230 391386 : FuelType.ElecSurplusSoldFacility =
6231 782772 : GetInstantMeterValue(state, FuelType.ElecSurplusSoldFacilityIndex, OutputProcessor::TimeStepType::Zone) * FracTimeStepZone +
6232 391386 : GetInstantMeterValue(state, FuelType.ElecSurplusSoldFacilityIndex, OutputProcessor::TimeStepType::System);
6233 :
6234 : // Now these fuel types have to be sorted and summed into categories that we have pollution factors for.
6235 : // The Off-Site Electricity is the total needed by the facility minus the amount generated on-site.
6236 : // The on-site pollutants will end up being other fuel types used by the generators.
6237 : // If the difference between the 2 electric quantities is <0.0 then it will be zero for that time step.
6238 : // We will also add the District Cooling here with a rough conversion from Energy using the User
6239 : // defined COP.
6240 391386 : FuelType.Elec = FuelType.ElecFacility - FuelType.ElecProducedFacility + FuelType.PurchCoolFacility / Pollution.PurchCoolCOP;
6241 391386 : if (FuelType.Elec <= 0.0) FuelType.Elec = 0.0;
6242 :
6243 : // The Natural Gas fuel type will be summed from the meters with the District Heating using an efficiency.
6244 391386 : FuelType.NatGas =
6245 391386 : FuelType.NatGasFacility + FuelType.PurchHeatFacility / Pollution.PurchHeatEffic + FuelType.SteamFacility / Pollution.SteamConvEffic;
6246 :
6247 : // The Distillate Oil or Fuel Oil #1
6248 391386 : FuelType.FuelOil1 = FuelType.FuelOil1Facility;
6249 :
6250 : // The Residual Oil or Fuel Oil #2
6251 391386 : FuelType.FuelOil2 = FuelType.FuelOil2Facility;
6252 :
6253 : // The Gasoline fuel type will be summed
6254 391386 : FuelType.Gasoline = FuelType.GasolineFacility;
6255 :
6256 : // The Natural Gas fuel type will be summed with the Nat gas and Propane fuel types from the meters and the Purchased
6257 391386 : FuelType.Propane = FuelType.PropaneFacility;
6258 :
6259 : // The Coal fuel type will be assigned Coal
6260 391386 : FuelType.Coal = FuelType.CoalFacility;
6261 :
6262 : // The Diesel fuel type will be summed
6263 391386 : FuelType.Diesel = FuelType.DieselFacility;
6264 :
6265 : // The OtherFuel1 fuel type will be summed
6266 391386 : FuelType.OtherFuel1 = FuelType.OtherFuel1Facility;
6267 :
6268 : // The OtherFuel2 fuel type will be summed
6269 391386 : FuelType.OtherFuel2 = FuelType.OtherFuel2Facility;
6270 :
6271 391386 : FuelType.ElecPurch = FuelType.ElecPurchasedFacility;
6272 :
6273 391386 : FuelType.ElecSold = FuelType.ElecSurplusSoldFacility;
6274 391386 : }
6275 :
6276 : // *****************************************************************************
6277 : // Utility Routines to allow access to data inside this module.
6278 : // *****************************************************************************
6279 :
6280 9997 : void GetFuelFactorInfo(EnergyPlusData &state,
6281 : std::string const &fuelName, // input fuel name (standard from Tabular reports)
6282 : bool &fuelFactorUsed, // return value true if user has entered this fuel
6283 : Real64 &fuelSourceFactor, // if used, the source factor
6284 : bool &fuelFactorScheduleUsed, // if true, schedules for this fuel are used
6285 : int &ffScheduleIndex // if schedules for this fuel are used, return schedule index
6286 : )
6287 : {
6288 :
6289 : // SUBROUTINE INFORMATION:
6290 : // AUTHOR Linda Lawrie
6291 : // DATE WRITTEN July 2008
6292 : // MODIFIED na
6293 : // RE-ENGINEERED na
6294 :
6295 : // PURPOSE OF THIS SUBROUTINE:
6296 : // This routine allows access to data inside this module from other modules (specifically the
6297 : // output tabular reports.
6298 :
6299 : // METHODOLOGY EMPLOYED:
6300 : // na
6301 :
6302 : // REFERENCES:
6303 : // na
6304 :
6305 : // USE STATEMENTS:
6306 : // na
6307 :
6308 : // Locals
6309 : // SUBROUTINE ARGUMENT DEFINITIONS:
6310 :
6311 : // SUBROUTINE PARAMETER DEFINITIONS:
6312 : // na
6313 :
6314 : // INTERFACE BLOCK SPECIFICATIONS:
6315 : // na
6316 :
6317 : // DERIVED TYPE DEFINITIONS:
6318 : // na
6319 :
6320 : // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
6321 : // na
6322 :
6323 9997 : if (state.dataPollutionModule->GetInputFlagPollution) {
6324 0 : GetPollutionFactorInput(state);
6325 0 : state.dataPollutionModule->GetInputFlagPollution = false;
6326 : }
6327 9997 : auto &Pollution = state.dataPollutionModule->Pollution;
6328 :
6329 9997 : fuelFactorUsed = false;
6330 9997 : fuelSourceFactor = 0.0;
6331 9997 : fuelFactorScheduleUsed = false;
6332 9997 : ffScheduleIndex = 0;
6333 :
6334 : {
6335 9997 : auto const &SELECT_CASE_var(fuelName);
6336 :
6337 9997 : if ((SELECT_CASE_var == "NaturalGas") || (SELECT_CASE_var == "Gas")) {
6338 769 : if (Pollution.NatGasCoef.FuelFactorUsed) {
6339 76 : fuelFactorUsed = true;
6340 76 : fuelSourceFactor = Pollution.NatGasCoef.Source;
6341 76 : if (Pollution.NatGasCoef.SourceSched == 0) {
6342 75 : fuelFactorScheduleUsed = false;
6343 : } else {
6344 1 : fuelFactorScheduleUsed = true;
6345 1 : ffScheduleIndex = Pollution.NatGasCoef.SourceSched;
6346 : }
6347 : } else {
6348 693 : fuelSourceFactor = 1.084;
6349 : }
6350 :
6351 9228 : } else if (SELECT_CASE_var == "Electricity") {
6352 769 : if (Pollution.ElecCoef.FuelFactorUsed) {
6353 83 : fuelFactorUsed = true;
6354 83 : fuelSourceFactor = Pollution.ElecCoef.Source;
6355 83 : if (Pollution.ElecCoef.SourceSched == 0) {
6356 82 : fuelFactorScheduleUsed = false;
6357 : } else {
6358 1 : fuelFactorScheduleUsed = true;
6359 1 : ffScheduleIndex = Pollution.ElecCoef.SourceSched;
6360 : }
6361 : } else {
6362 686 : fuelSourceFactor = 3.167;
6363 : }
6364 :
6365 8459 : } else if (SELECT_CASE_var == "FuelOilNo2") {
6366 769 : if (Pollution.FuelOil2Coef.FuelFactorUsed) {
6367 0 : fuelFactorUsed = true;
6368 0 : fuelSourceFactor = Pollution.FuelOil2Coef.Source;
6369 0 : if (Pollution.FuelOil2Coef.SourceSched == 0) {
6370 0 : fuelFactorScheduleUsed = false;
6371 : } else {
6372 0 : fuelFactorScheduleUsed = true;
6373 0 : ffScheduleIndex = Pollution.FuelOil2Coef.SourceSched;
6374 : }
6375 : } else {
6376 769 : fuelSourceFactor = 1.05;
6377 : }
6378 :
6379 7690 : } else if (SELECT_CASE_var == "FuelOilNo1") {
6380 769 : if (Pollution.FuelOil1Coef.FuelFactorUsed) {
6381 21 : fuelFactorUsed = true;
6382 21 : fuelSourceFactor = Pollution.FuelOil1Coef.Source;
6383 21 : if (Pollution.FuelOil1Coef.SourceSched == 0) {
6384 21 : fuelFactorScheduleUsed = false;
6385 : } else {
6386 0 : fuelFactorScheduleUsed = true;
6387 0 : ffScheduleIndex = Pollution.FuelOil1Coef.SourceSched;
6388 : }
6389 : } else {
6390 748 : fuelSourceFactor = 1.05;
6391 : }
6392 :
6393 6921 : } else if (SELECT_CASE_var == "Coal") {
6394 769 : if (Pollution.CoalCoef.FuelFactorUsed) {
6395 0 : fuelFactorUsed = true;
6396 0 : fuelSourceFactor = Pollution.CoalCoef.Source;
6397 0 : if (Pollution.CoalCoef.SourceSched == 0) {
6398 0 : fuelFactorScheduleUsed = false;
6399 : } else {
6400 0 : fuelFactorScheduleUsed = true;
6401 0 : ffScheduleIndex = Pollution.CoalCoef.SourceSched;
6402 : }
6403 : } else {
6404 769 : fuelSourceFactor = 1.05;
6405 : }
6406 :
6407 6152 : } else if (SELECT_CASE_var == "Gasoline") {
6408 769 : if (Pollution.GasolineCoef.FuelFactorUsed) {
6409 0 : fuelFactorUsed = true;
6410 0 : fuelSourceFactor = Pollution.GasolineCoef.Source;
6411 0 : if (Pollution.GasolineCoef.SourceSched == 0) {
6412 0 : fuelFactorScheduleUsed = false;
6413 : } else {
6414 0 : fuelFactorScheduleUsed = true;
6415 0 : ffScheduleIndex = Pollution.GasolineCoef.SourceSched;
6416 : }
6417 : } else {
6418 769 : fuelSourceFactor = 1.05;
6419 : }
6420 :
6421 5383 : } else if (SELECT_CASE_var == "Propane") {
6422 769 : if (Pollution.PropaneCoef.FuelFactorUsed) {
6423 21 : fuelFactorUsed = true;
6424 21 : fuelSourceFactor = Pollution.PropaneCoef.Source;
6425 21 : if (Pollution.PropaneCoef.SourceSched == 0) {
6426 21 : fuelFactorScheduleUsed = false;
6427 : } else {
6428 0 : fuelFactorScheduleUsed = true;
6429 0 : ffScheduleIndex = Pollution.PropaneCoef.SourceSched;
6430 : }
6431 : } else {
6432 748 : fuelSourceFactor = 1.05;
6433 : }
6434 :
6435 4614 : } else if (SELECT_CASE_var == "Diesel") {
6436 769 : if (Pollution.DieselCoef.FuelFactorUsed) {
6437 2 : fuelFactorUsed = true;
6438 2 : fuelSourceFactor = Pollution.DieselCoef.Source;
6439 2 : if (Pollution.DieselCoef.SourceSched == 0) {
6440 2 : fuelFactorScheduleUsed = false;
6441 : } else {
6442 0 : fuelFactorScheduleUsed = true;
6443 0 : ffScheduleIndex = Pollution.DieselCoef.SourceSched;
6444 : }
6445 : } else {
6446 767 : fuelSourceFactor = 1.05;
6447 : }
6448 :
6449 3845 : } else if (SELECT_CASE_var == "OtherFuel1") {
6450 769 : if (Pollution.OtherFuel1Coef.FuelFactorUsed) {
6451 1 : fuelFactorUsed = true;
6452 1 : fuelSourceFactor = Pollution.OtherFuel1Coef.Source;
6453 1 : if (Pollution.OtherFuel1Coef.SourceSched == 0) {
6454 1 : fuelFactorScheduleUsed = false;
6455 : } else {
6456 0 : fuelFactorScheduleUsed = true;
6457 0 : ffScheduleIndex = Pollution.OtherFuel1Coef.SourceSched;
6458 : }
6459 : } else {
6460 768 : fuelSourceFactor = 1.0;
6461 : }
6462 :
6463 3076 : } else if (SELECT_CASE_var == "OtherFuel2") {
6464 769 : if (Pollution.OtherFuel2Coef.FuelFactorUsed) {
6465 0 : fuelFactorUsed = true;
6466 0 : fuelSourceFactor = Pollution.OtherFuel2Coef.Source;
6467 0 : if (Pollution.OtherFuel2Coef.SourceSched == 0) {
6468 0 : fuelFactorScheduleUsed = false;
6469 : } else {
6470 0 : fuelFactorScheduleUsed = true;
6471 0 : ffScheduleIndex = Pollution.OtherFuel2Coef.SourceSched;
6472 : }
6473 : } else {
6474 769 : fuelSourceFactor = 1.0;
6475 : }
6476 :
6477 2307 : } else if (SELECT_CASE_var == "DistrictHeating") {
6478 769 : if (Pollution.NatGasCoef.FuelFactorUsed) {
6479 76 : fuelFactorUsed = true;
6480 76 : fuelSourceFactor = Pollution.NatGasCoef.Source / Pollution.PurchHeatEffic;
6481 76 : if (Pollution.NatGasCoef.SourceSched == 0) {
6482 75 : fuelFactorScheduleUsed = false;
6483 : } else {
6484 1 : fuelFactorScheduleUsed = true;
6485 1 : ffScheduleIndex = Pollution.NatGasCoef.SourceSched;
6486 : }
6487 : } else {
6488 693 : fuelSourceFactor = 1.084 / Pollution.PurchHeatEffic;
6489 : }
6490 :
6491 1538 : } else if (SELECT_CASE_var == "DistrictCooling") {
6492 769 : if (Pollution.ElecCoef.FuelFactorUsed) {
6493 83 : fuelFactorUsed = true;
6494 83 : fuelSourceFactor = Pollution.ElecCoef.Source / Pollution.PurchCoolCOP;
6495 83 : if (Pollution.ElecCoef.SourceSched == 0) {
6496 82 : fuelFactorScheduleUsed = false;
6497 : } else {
6498 1 : fuelFactorScheduleUsed = true;
6499 1 : ffScheduleIndex = Pollution.ElecCoef.SourceSched;
6500 : }
6501 : } else {
6502 686 : fuelSourceFactor = 3.167 / Pollution.PurchCoolCOP;
6503 : }
6504 :
6505 769 : } else if (SELECT_CASE_var == "Steam") {
6506 769 : fuelSourceFactor = 0.3 / Pollution.SteamConvEffic;
6507 :
6508 : } else {
6509 : }
6510 : }
6511 9997 : }
6512 :
6513 769 : void GetEnvironmentalImpactFactorInfo(EnergyPlusData &state,
6514 : Real64 &efficiencyDistrictHeating, // if entered, the efficiency of District Heating
6515 : Real64 &efficiencyDistrictCooling, // if entered, the efficiency of District Cooling
6516 : Real64 &sourceFactorSteam // if entered, the source factor for Steam
6517 : )
6518 : {
6519 :
6520 : // SUBROUTINE INFORMATION:
6521 : // AUTHOR Linda Lawrie
6522 : // DATE WRITTEN August 2008
6523 : // MODIFIED na
6524 : // RE-ENGINEERED na
6525 :
6526 : // PURPOSE OF THIS SUBROUTINE:
6527 : // This routine allows access to data inside this module from other modules (specifically the
6528 : // output tabular reports.
6529 :
6530 : // METHODOLOGY EMPLOYED:
6531 : // na
6532 :
6533 : // REFERENCES:
6534 : // na
6535 :
6536 : // USE STATEMENTS:
6537 : // na
6538 :
6539 : // Locals
6540 : // SUBROUTINE ARGUMENT DEFINITIONS:
6541 : // Each of the arguments must be entered in the EnvironmentalImpactFactors object
6542 :
6543 769 : if (state.dataPollutionModule->GetInputFlagPollution) {
6544 0 : GetPollutionFactorInput(state);
6545 0 : state.dataPollutionModule->GetInputFlagPollution = false;
6546 : }
6547 :
6548 769 : if (state.dataPollutionModule->NumEnvImpactFactors > 0) {
6549 72 : efficiencyDistrictHeating = state.dataPollutionModule->Pollution.PurchHeatEffic;
6550 72 : efficiencyDistrictCooling = state.dataPollutionModule->Pollution.PurchCoolCOP;
6551 72 : sourceFactorSteam = state.dataPollutionModule->Pollution.SteamConvEffic;
6552 : }
6553 769 : }
6554 :
6555 2313 : } // namespace EnergyPlus::PollutionModule
|