13 #ifndef AMO_TOOLS_SUITE_WASTEWATER_TREATMENT_H 14 #define AMO_TOOLS_SUITE_WASTEWATER_TREATMENT_H 21 struct CalculationsTable
55 BiomassProd(BiomassProd),
56 SludgeProd(SludgeProd),
58 IntentWaste(IntentWaste),
62 NRemovedMgl(NRemovedMgl),
67 TotalO2Rqd(TotalO2Rqd),
69 EstimatedEff(EstimatedEff),
76 CalculationsTable() =
default;
104 std::vector<double> getArray() {
105 std::vector<double> array{
140 double TotalAverageDailyFlowRate,
141 double VolumeInService,
142 double InfluentBOD5Concentration,
143 double InfluentBOD5MassLoading,
144 double SecWWOxidNLoad,
147 double SolidsRetentionTime,
150 double TSSSludgeProduction,
151 double TSSInActivatedSludgeEffluent,
152 double TotalOxygenRequirements,
153 double TotalOxygenReqWDenit,
154 double TotalOxygenSupplied,
155 double MixingIntensityInReactor,
157 double RASRecyclePercentage,
159 double RASTSSConcentration,
160 double TotalSludgeProduction,
161 double ReactorDetentionTime,
163 double EffluentCBOD5,
165 double EffluentAmmonia_N,
166 double EffluentNO3_N,
167 double EffluentNO3_N_W_Denit,
172 std::vector<CalculationsTable> calculationsTable) : TotalAverageDailyFlowRate(TotalAverageDailyFlowRate),
173 VolumeInService(VolumeInService),
174 InfluentBOD5Concentration(InfluentBOD5Concentration),
175 InfluentBOD5MassLoading(InfluentBOD5MassLoading),
176 SecWWOxidNLoad(SecWWOxidNLoad),
177 SecWWTSSLoad(SecWWTSSLoad),
179 SolidsRetentionTime(SolidsRetentionTime),
182 TSSSludgeProduction(TSSSludgeProduction),
183 TSSInActivatedSludgeEffluent(TSSInActivatedSludgeEffluent),
184 TotalOxygenRequirements(TotalOxygenRequirements),
185 TotalOxygenReqWDenit(TotalOxygenReqWDenit),
186 TotalOxygenSupplied(TotalOxygenSupplied),
187 MixingIntensityInReactor(MixingIntensityInReactor),
188 RASFlowRate(RASFlowRate),
189 RASRecyclePercentage(RASRecyclePercentage),
190 WASFlowRate(WASFlowRate),
191 RASTSSConcentration(RASTSSConcentration),
192 TotalSludgeProduction(TotalSludgeProduction),
193 ReactorDetentionTime(ReactorDetentionTime),
195 EffluentCBOD5(EffluentCBOD5),
196 EffluentTSS(EffluentTSS),
197 EffluentAmmonia_N(EffluentAmmonia_N),
198 EffluentNO3_N(EffluentNO3_N),
199 EffluentNO3_N_W_Denit(EffluentNO3_N_W_Denit),
203 calculationsTable(calculationsTable)
207 double TotalAverageDailyFlowRate;
208 double VolumeInService;
209 double InfluentBOD5Concentration;
210 double InfluentBOD5MassLoading;
211 double SecWWOxidNLoad;
214 double SolidsRetentionTime;
217 double TSSSludgeProduction;
218 double TSSInActivatedSludgeEffluent;
219 double TotalOxygenRequirements;
220 double TotalOxygenReqWDenit;
221 double TotalOxygenSupplied;
222 double MixingIntensityInReactor;
224 double RASRecyclePercentage;
226 double RASTSSConcentration;
227 double TotalSludgeProduction;
228 double ReactorDetentionTime;
230 double EffluentCBOD5;
232 double EffluentAmmonia_N;
233 double EffluentNO3_N;
234 double EffluentNO3_N_W_Denit;
239 std::vector<CalculationsTable> calculationsTable;
285 double InertInOrgTSS,
289 double FractionBiomass,
291 double HalfSaturation,
292 double MicrobialDecay,
293 double MaxUtilizationRate,
295 double TimeIncrement,
302 double OperatingTime,
305 double EnergyCostUnit)
306 : Temperature(Temperature),
311 OxidizableN(OxidizableN),
313 InfluentTSS(InfluentTSS),
314 InertInOrgTSS(InertInOrgTSS),
315 EffluentTSS(EffluentTSS),
318 FractionBiomass(FractionBiomass),
319 BiomassYeild(BiomassYeild),
320 HalfSaturation(HalfSaturation),
321 MicrobialDecay(MicrobialDecay),
322 MaxUtilizationRate(MaxUtilizationRate),
324 TimeIncrement(TimeIncrement),
325 OperatingDO(OperatingDO),
330 Elevation(Elevation),
331 OperatingTime(OperatingTime),
332 TypeAerators(TypeAerators),
334 EnergyCostUnit(EnergyCostUnit){};
347 double InertInOrgTSS;
351 double FractionBiomass;
353 double HalfSaturation;
354 double MicrobialDecay;
355 double MaxUtilizationRate;
357 double TimeIncrement;
365 double OperatingTime;
368 double EnergyCostUnit;
370 #endif //AMO_TOOLS_SUITE_WASTEWATER_TREATMENT_H WasteWater_Treatment(double Temperature, double So, double Volume, double FlowRate, double InertVSS, double OxidizableN, double Biomass, double InfluentTSS, double InertInOrgTSS, double EffluentTSS, double RASTSS, double MLSSpar, double FractionBiomass, double BiomassYeild, double HalfSaturation, double MicrobialDecay, double MaxUtilizationRate, double MaxDays, double TimeIncrement, double OperatingDO, double Alpha, double Beta, double SOTR, double Aeration, double Elevation, double OperatingTime, int TypeAerators, double Speed, double EnergyCostUnit)