-
Notifications
You must be signed in to change notification settings - Fork 296
/
TSP_Splitter3.mo
31 lines (30 loc) · 2.23 KB
/
TSP_Splitter3.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
within DataReconciliationSimpleTests;
model TSP_Splitter3
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss singularPressureLoss1(Q(uncertain=Uncertainty.refine)) annotation(
Placement(visible = true, transformation(origin = {50, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss singularPressureLoss2(Q(uncertain=Uncertainty.refine)) annotation(
Placement(visible = true, transformation(origin = {-50, 30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
ThermoSysPro.WaterSteam.PressureLosses.SingularPressureLoss singularPressureLoss3(Q(uncertain=Uncertainty.refine)) annotation(
Placement(visible = true, transformation(origin = {-50, -30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
ThermoSysPro.WaterSteam.Junctions.Mixer2 mixer21 annotation(
Placement(visible = true, transformation(origin = {3, 0}, extent = {{-9, -10}, {9, 10}}, rotation = 0)));
SourceQ sourceQ2 annotation(
Placement(visible = true, transformation(origin = {-90, 30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
SinkP sinkP1 annotation(
Placement(visible = true, transformation(origin = {90, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
SourceP sourceP3 annotation(
Placement(visible = true, transformation(origin = {-90, -30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
connect(mixer21.Cs, singularPressureLoss1.C1) annotation(
Line(points = {{12, 0}, {40, 0}, {40, 0}, {40, 0}}, color = {0, 0, 255}));
connect(sourceQ2.C, singularPressureLoss2.C1) annotation(
Line(points = {{-80, 30}, {-60, 30}, {-60, 30}, {-60, 30}}, color = {0, 0, 255}));
connect(singularPressureLoss2.C2, mixer21.Ce1) annotation(
Line(points = {{-40, 30}, {0, 30}, {0, 10}, {0, 10}}, color = {0, 0, 255}));
connect(singularPressureLoss3.C2, mixer21.Ce2) annotation(
Line(points = {{-40, -30}, {0, -30}, {0, -10}, {0, -10}}, color = {0, 0, 255}));
connect(singularPressureLoss1.C2, sinkP1.C) annotation(
Line(points = {{60, 0}, {80, 0}, {80, 0}, {80, 0}}, color = {0, 0, 255}));
connect(sourceP3.C, singularPressureLoss3.C1) annotation(
Line(points = {{-80, -30}, {-60, -30}, {-60, -30}, {-60, -30}}, color = {0, 0, 255}));
end TSP_Splitter3;