@@ -18,6 +18,9 @@ model Damper "Multiple-configuration damper"
1818 final parameter Modelica.Units.SI.PressureDifference dp_nominal=
1919 dat.dp_nominal
2020 "Damper pressure drop" ;
21+ final parameter Modelica.Units.SI.PressureDifference dpFixed_nominal=
22+ dat.dpFixed_nominal
23+ "Pressure drop of duct and resistances other than the damper in series, at nominal mass flow rate" ;
2124
2225 parameter Boolean use_strokeTime= true
2326 "Set to true to continuously open and close valve"
@@ -79,7 +82,7 @@ model Damper "Multiple-configuration damper"
7982 redeclare final package Medium = Medium,
8083 final m_flow_nominal= m_flow_nominal,
8184 final dpDamper_nominal= dp_nominal,
82- final dpFixed_nominal= dat. dpFixed_nominal,
85+ final dpFixed_nominal= dpFixed_nominal,
8386 final use_strokeTime= use_strokeTime,
8487 final strokeTime= strokeTime,
8588 final init= init,
@@ -90,12 +93,12 @@ model Damper "Multiple-configuration damper"
9093 final linearized= linearized) if typ == Buildings.Templates.Components.Types.Damper.Modulating
9194 or typ == Buildings.Templates.Components.Types.Damper.TwoPosition
9295 "Damper with exponential characteristic"
93- annotation (Placement(transformation(extent={{-10,-10 },{10, 10}})));
96+ annotation (Placement(transformation(extent={{-50,-30 },{-30,- 10}})));
9497 Buildings.Fluid.Actuators.Dampers.PressureIndependent ind(
9598 redeclare final package Medium = Medium,
9699 final m_flow_nominal= m_flow_nominal,
97100 final dpDamper_nominal= dp_nominal,
98- final dpFixed_nominal= dat. dpFixed_nominal,
101+ final dpFixed_nominal= dpFixed_nominal,
99102 final use_strokeTime= use_strokeTime,
100103 final strokeTime= strokeTime,
101104 final init= init,
@@ -105,12 +108,18 @@ model Damper "Multiple-configuration damper"
105108 final from_dp= from_dp)
106109 if typ== Buildings.Templates.Components.Types.Damper.PressureIndependent
107110 "Pressure independent damper"
108- annotation (Placement(transformation(extent={{50,-10},{70,10}})));
109- Buildings.Templates.Components.Routing.PassThroughFluid non(
110- redeclare final package Medium = Medium)
111+ annotation (Placement(transformation(extent={{30,-50},{50,-30}})));
112+ Buildings.Fluid.FixedResistances.PressureDrop non(
113+ redeclare final package Medium = Medium,
114+ final m_flow_nominal= m_flow_nominal,
115+ final dp_nominal= dpFixed_nominal,
116+ final allowFlowReversal= allowFlowReversal,
117+ final show_T= show_T,
118+ final from_dp= from_dp,
119+ final linearized= linearized)
111120 if typ== Buildings.Templates.Components.Types.Damper.None
112121 "No damper"
113- annotation (Placement(transformation(extent={{-80 ,-10},{-60 ,10}})));
122+ annotation (Placement(transformation(extent={{-10 ,-10},{10 ,10}})));
114123 Buildings.Controls.OBC.CDL.Conversions.BooleanToReal y1(final realTrue= 1 ,
115124 final realFalse= 0 )
116125 if typ == Buildings.Templates.Components.Types.Damper.TwoPosition
@@ -156,17 +165,21 @@ equation
156165 connect (y1_actual.u, ind.y_actual);
157166 /* Control point connection - stop */
158167 connect (port_a, non.port_a)
159- annotation (Line(points={{-100,0},{-80 ,0}}, color={0,127,255}));
168+ annotation (Line(points={{-100,0},{-10 ,0}}, color={0,127,255}));
160169 connect (non.port_b, port_b)
161- annotation (Line(points={{-60 ,0},{100,0}}, color={0,127,255}));
170+ annotation (Line(points={{10 ,0},{100,0}}, color={0,127,255}));
162171 connect (port_a,exp . port_a)
163- annotation (Line(points={{-100,0},{-10,0}}, color={0,127,255}));
172+ annotation (Line(points={{-100,0},{-80,0},{-80,-20},{-50,-20}},
173+ color={0,127,255}));
164174 connect (exp .port_b, port_b)
165- annotation (Line(points={{10,0},{100,0}}, color={0,127,255}));
175+ annotation (Line(points={{-30,-20},{80,-20},{80,0},{100,0}},
176+ color={0,127,255}));
166177 connect (port_a, ind.port_a)
167- annotation (Line(points={{-100,0},{50,0}}, color={0,127,255}));
178+ annotation (Line(points={{-100,0},{-80,0},{-80,-40},{30,-40}},
179+ color={0,127,255}));
168180 connect (ind.port_b, port_b)
169- annotation (Line(points={{70,0},{100,0}}, color={0,127,255}));
181+ annotation (Line(points={{50,-40},{80,-40},{80,0},{100,0}},
182+ color={0,127,255}));
170183 connect (bus.y1, y1.u) annotation (Line(
171184 points={{0,100},{0,60},{-80,60},{-80,52}},
172185 color={255,204,51},
@@ -290,6 +303,12 @@ Buildings.Templates.Components.Data.Damper</a>.
290303</html>" , revisions="<html>
291304<ul>
292305<li>
306+ May 7, 2025, by Antoine Gautier:<br/>
307+ Replaced direct fluid pass-through with fixed resistance.<br/>
308+ This is for
309+ <a href=\" https://github.com/lbl-srg/modelica-buildings/issues/4227\">#4227</a>.
310+ </li>
311+ <li>
293312September 27, 2023, by Antoine Gautier:<br/>
294313First implementation.
295314</li>
0 commit comments