@@ -2,6 +2,9 @@ within BESMod.Systems.Ventilation.Control;
2
2
model SummerPIDByPass "Bypass the HEX in summer"
3
3
extends BaseClasses.PartialControl;
4
4
parameter Boolean use_bypass = true "=false to disable the bypass" ;
5
+ parameter Boolean use_minMax = true "=false to use min-max block" ;
6
+ parameter Boolean use_busForTSet = true "=false to use constant TSet" ;
7
+
5
8
6
9
Components.SummerByPass summerByPass
7
10
if use_bypass
@@ -11,11 +14,14 @@ model SummerPIDByPass "Bypass the HEX in summer"
11
14
annotation (Placement(transformation(extent={{-6,-54},{14,-34}})));
12
15
13
16
Modelica.Blocks.Math.MinMax minMaxMea(final nu= distributionParameters.nParallelDem)
17
+ if use_minMax
14
18
annotation (Placement(transformation(extent={{-88,32},{-68,52}})));
15
19
Modelica.Blocks.Sources.Constant constZero1(k= distributionParameters.TDem_nominal[
16
- 1 ])
20
+ 1 ]) if not use_busForTSet
17
21
"Bypass is not used"
18
22
annotation (Placement(transformation(extent={{-82,-30},{-62,-10}})));
23
+ Modelica.Blocks.Routing.RealPassThrough realPassThrough if use_busForTSet
24
+ annotation (Placement(transformation(extent={{-68,-62},{-48,-42}})));
19
25
equation
20
26
connect (summerByPass.TOda, weaBus.TDryBul) annotation (Line(points={{-35.2,26},
21
27
{-44,26},{-44,68},{1,68},{1,98}}, color={0,0,127}), Text(
@@ -43,8 +49,21 @@ equation
43
49
index=1,
44
50
extent={{-6,3},{-6,3}},
45
51
horizontalAlignment=TextAlignment.Right));
46
- connect (minMaxMea.yMax, summerByPass.TMea) annotation (Line(points={{-67,48},{
47
- -52,48},{-52,11},{-35.2,11}}, color={0,0,127}));
48
52
connect (summerByPass.TZoneSet, constZero1.y) annotation (Line(points={{-35.2,
49
53
-4},{-34,-4},{-34,-20},{-61,-20}}, color={0,0,127}));
54
+ connect (summerByPass.TMea, buiMeaBus.TZoneMea[1 ]) annotation (Line(points={{-35.2,
55
+ 11},{-35.2,10},{-52,10},{-52,48},{-60,48},{-60,79},{-102,79}}, color={
56
+ 0,0,127}), Text(
57
+ string="%second" ,
58
+ index=1,
59
+ extent={{-3,6},{-3,6}},
60
+ horizontalAlignment=TextAlignment.Right));
61
+ connect (realPassThrough.u, useProBus.TZoneSet[1 ]) annotation (Line(points={{-70,
62
+ -52},{-80,-52},{-80,-60},{-103,-60}}, color={0,0,127}), Text(
63
+ string="%second" ,
64
+ index=1,
65
+ extent={{-6,3},{-6,3}},
66
+ horizontalAlignment=TextAlignment.Right));
67
+ connect (realPassThrough.y, summerByPass.TZoneSet) annotation (Line(points={{-47,
68
+ -52},{-35.2,-52},{-35.2,-4}}, color={0,0,127}));
50
69
end SummerPIDByPass;
0 commit comments