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