-
Notifications
You must be signed in to change notification settings - Fork 298
/
HalfSimpleCircuit_Q.mo
39 lines (38 loc) · 2.87 KB
/
HalfSimpleCircuit_Q.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
32
33
34
35
36
37
38
39
within DataReconciliationSimpleTests.Lib;
model HalfSimpleCircuit_Q
QLib.WaterSteam.BoundaryConditions.SourceQ sourceQ1(Q0=250)
annotation(Placement(visible=true, transformation(origin={-139,0}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=0)));
QLib.WaterSteam.BoundaryConditions.Sink sink2 annotation (Placement(visible=
true, transformation(
origin={49.059,20},
extent={{-10.0,-10.0},{10.0,10.0}},
rotation=0)));
QLib.WaterSteam.PressureLosses.PipePressureLoss pipePressureLoss1 annotation(Placement(visible=true, transformation(origin={-80,0}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=0)));
QLib.WaterSteam.Junctions.Splitter2 splitter21 annotation(Placement(visible=true, transformation(origin={-44.0534,-0.0}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=0)));
QLib.WaterSteam.PressureLosses.PipePressureLoss pipePressureLoss2 annotation(Placement(visible=true, transformation(origin={10,20}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=0)));
QLib.WaterSteam.PressureLosses.PipePressureLoss pipePressureLoss3 annotation(Placement(visible=true, transformation(origin={10.0,-20.0}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=0)));
QLib.InstrumentationAndControl.Blocks.Sources.Constante constante(k=0.5)
annotation (Placement(transformation(extent={{-70,20},{-60,30}})));
QLib.WaterSteam.BoundaryConditions.Sink sink3 annotation (Placement(visible=
true, transformation(
origin={49.059,-20},
extent={{-10.0,-10.0},{10.0,10.0}},
rotation=0)));
equation
connect(pipePressureLoss1.C2,splitter21.Ce) annotation(Line(visible=true, origin={-59.2678,-0.0}, points={{
-10.7322,0},{5.2144,0}}, color={0,0,255}));
connect(pipePressureLoss2.C1, splitter21.Cs1) annotation (Line(points={{0,20},{
-40.0534,20},{-40.0534,10}}, color={0,0,255}));
connect(pipePressureLoss3.C1, splitter21.Cs2) annotation (Line(points={{0,-20},
{-40.0534,-20},{-40.0534,-10}}, color={0,0,255}));
connect(pipePressureLoss1.C1,sourceQ1. C)
annotation (Line(points={{-90,0},{-129,0}}, color={0,0,255}));
connect(constante.y, splitter21.Ialpha1) annotation (Line(points={{-59.5,25},
{-50,25},{-50,6},{-43.0534,6}}, color={0,0,255}));
connect(pipePressureLoss2.C2, sink2.C)
annotation (Line(points={{20,20},{39.059,20}}, color={0,0,255}));
connect(pipePressureLoss3.C2, sink3.C)
annotation (Line(points={{20,-20},{39.059,-20}}, color={0,0,255}));
annotation(Diagram(coordinateSystem(extent={{-148.5,-105},{148.5,105}}, preserveAspectRatio=true, initialScale=0.1, grid={1,1})),
DymolaStoredErrors);
end HalfSimpleCircuit_Q;