MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
Loading...
Searching...
No Matches
HighToMediumSteamTurbineCalculator.h
1#pragma once
2
3#include <memory>
4
5#include <steamModeler/api/HeaderInput.h>
6#include <steamModeler/api/TurbineInput.h>
8#include <steamModeler/domain/HighToMediumSteamTurbineCalculationsDomain.h>
9#include <steamModeler/domain/TurbineFactory.h>
10#include <steamModeler/service/medium_pressure_header/SteamBalanceCheckerService.h>
11#include <steamModeler/service/RestarterService.h>
12#include <steamModeler/service/SteamBalanceException.h>
13#include <steamModeler/service/SteamReducer.h>
14#include <steamModeler/SteamSystemModelerTool.h>
16
18 public:
20 calc(const int headerCountInput, const SteamSystemModelerTool::FluidProperties& highPressureHeaderOutput,
21 const HeaderWithHighestPressure& highPressureHeaderInput, const CondensingTurbine& condensingTurbineInput,
22 const std::shared_ptr<Turbine>& condensingTurbine, const PressureTurbine& highToLowTurbineInput,
23 const std::shared_ptr<Turbine>& highToLowPressureTurbine,
24 const std::shared_ptr<Turbine>& highToLowPressureTurbineIdeal, const PressureTurbine& highToMediumTurbineInput,
25 const std::shared_ptr<HeaderNotHighestPressure>& mediumPressureHeaderInput,
26 const std::shared_ptr<HeaderNotHighestPressure>& lowPressureHeaderInput, const Boiler& boiler) const;
27
28 private:
29 TurbineFactory turbineFactory = TurbineFactory();
30 SteamBalanceCheckerService steamBalanceCheckerService = SteamBalanceCheckerService();
31
33 calc(const double availableMassFlow, const PressureTurbine& highToLowTurbineInput,
34 const std::shared_ptr<Turbine>& highToLowPressureTurbine,
35 const std::shared_ptr<Turbine>& highToLowPressureTurbineIdeal, const PressureTurbine& highToMediumTurbineInput,
36 const std::shared_ptr<HeaderNotHighestPressure>& mediumPressureHeaderInput,
37 const SteamSystemModelerTool::FluidProperties& highPressureHeaderOutput,
38 const std::shared_ptr<HeaderNotHighestPressure>& lowPressureHeaderInput, const Boiler& boiler) const;
39
41 calcFlowRange(const double availableMassFlow, const PressureTurbine& highToLowTurbineInput,
42 const std::shared_ptr<Turbine>& highToLowPressureTurbine,
43 const std::shared_ptr<Turbine>& highToLowPressureTurbineIdeal,
44 const PressureTurbine& highToMediumTurbineInput,
45 const SteamSystemModelerTool::FluidProperties& highPressureHeaderOutput,
46 const std::shared_ptr<HeaderNotHighestPressure>& mediumPressureHeaderInput,
47 const std::shared_ptr<HeaderNotHighestPressure>& lowPressureHeaderInput, const Boiler& boiler) const;
48
50 calcPowerRange(const double availableMassFlow, const PressureTurbine& highToLowTurbineInput,
51 const std::shared_ptr<Turbine>& highToLowPressureTurbine,
52 const std::shared_ptr<Turbine>& highToLowPressureTurbineIdeal,
53 const PressureTurbine& highToMediumTurbineInput,
54 const SteamSystemModelerTool::FluidProperties& highPressureHeaderOutput,
55 const std::shared_ptr<HeaderNotHighestPressure>& mediumPressureHeaderInput,
56 const std::shared_ptr<HeaderNotHighestPressure>& lowPressureHeaderInput, const Boiler& boiler) const;
57
59 const double availableMassFlow, const PressureTurbine& highToLowTurbineInput,
60 const std::shared_ptr<Turbine>& highToLowPressureTurbine,
61 const std::shared_ptr<Turbine>& highToLowPressureTurbineIdeal, const PressureTurbine& highToMediumTurbineInput,
62 const SteamSystemModelerTool::FluidProperties& highPressureHeaderOutput,
63 const std::shared_ptr<HeaderNotHighestPressure>& mediumPressureHeaderInput,
64 const std::shared_ptr<HeaderNotHighestPressure>& lowPressureHeaderInput, const Boiler& boiler) const;
65
67 calcSteamFlow(const double availableMassFlow, const PressureTurbine& highToLowTurbineInput,
68 const std::shared_ptr<Turbine>& highToLowPressureTurbine,
69 const std::shared_ptr<Turbine>& highToLowPressureTurbineIdeal,
70 const PressureTurbine& highToMediumTurbineInput,
71 const SteamSystemModelerTool::FluidProperties& highPressureHeaderOutput,
72 const std::shared_ptr<HeaderNotHighestPressure>& mediumPressureHeaderInput,
73 const std::shared_ptr<HeaderNotHighestPressure>& lowPressureHeaderInput, const Boiler& boiler) const;
74
76 calcBalanceHeader(const double availableMassFlow, const std::shared_ptr<Turbine>& highToLowPressureTurbine,
77 const std::shared_ptr<Turbine>& highToLowPressureTurbineIdeal,
78 const PressureTurbine& highToMediumTurbineInput,
79 const SteamSystemModelerTool::FluidProperties& highPressureHeaderOutput,
80 const std::shared_ptr<HeaderNotHighestPressure>& mediumPressureHeaderInput) const;
81
82 double calcAvailableMassFlow(const HeaderWithHighestPressure& highPressureHeaderInput,
83 const SteamSystemModelerTool::FluidProperties& highPressureHeaderOutput,
84 const CondensingTurbine& condensingTurbineInput,
85 const std::shared_ptr<Turbine>& condensingTurbine,
86 const PressureTurbine& highToLowTurbineInput,
87 const std::shared_ptr<Turbine>& highToLowPressureTurbine) const;
88};
89
Calculator for boiler.
Calculator for turbines for steam systems.