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
LowPressureHeaderCalculationsDomain.h
1#ifndef TOOLS_SUITE_LOWPRESSUREHEADERCALCULATIONSDOMAIN_H
2#define TOOLS_SUITE_LOWPRESSUREHEADERCALCULATIONSDOMAIN_H
3
4#include <memory>
5
6#include <steamModeler/PRV.h>
7#include <steamModeler/SteamSystemModelerTool.h>
8
9#include "LowPressureFlashedSteamIntoHeaderCalculatorDomain.h"
10
12 public:
13 std::shared_ptr<PrvWithoutDesuperheating> lowPressurePrv;
14 SteamSystemModelerTool::FluidProperties lowPressureHeaderOutput;
15 HeatLoss lowPressureHeaderHeatLoss;
16 SteamSystemModelerTool::FluidProperties lowPressureCondensate;
17 LowPressureFlashedSteamIntoHeaderCalculatorDomain lowPressureFlashedSteamIntoHeaderCalculatorDomain;
18
19 friend std::ostream& operator<<(std::ostream& stream, const LowPressureHeaderCalculationsDomain& domain) {
20 const std::shared_ptr<PrvWithoutDesuperheating>& prvWithoutPtr = domain.lowPressurePrv;
21
22 stream << "LowPressureHeaderCalculationsDomain[";
23
24 if (prvWithoutPtr->isWithDesuperheating()) {
25 std::shared_ptr<PrvWithDesuperheating> prvWithPtr =
26 std::static_pointer_cast<PrvWithDesuperheating>(prvWithoutPtr);
27 stream << "lowPressurePrv=" << prvWithPtr;
28 }
29 else {
30 stream << "lowPressurePrv=" << prvWithoutPtr;
31 }
32
33 stream << ", lowPressureHeaderOutput=" << domain.lowPressureHeaderOutput
34 << ", lowPressureHeaderHeatLoss=" << domain.lowPressureHeaderHeatLoss
35 << ", lowPressureCondensate=" << domain.lowPressureCondensate
36 << ", lowPressureFlashedSteamIntoHeaderCalculatorDomain="
37 << domain.lowPressureFlashedSteamIntoHeaderCalculatorDomain << "]";
38
39 return stream;
40 }
41
42 friend std::ostream& operator<<(std::ostream& stream,
43 const std::shared_ptr<LowPressureHeaderCalculationsDomain>& domain) {
44 if (domain == nullptr) {
45 stream << "LowPressureHeaderCalculationsDomain[nullptr]";
46 }
47 else {
48 stream << *domain;
49 }
50 return stream;
51 }
52};
53
54#endif // TOOLS_SUITE_LOWPRESSUREHEADERCALCULATIONSDOMAIN_H
Calculator for the steam properties after after a pressure drop for steam systems.