Skip to content

Commit 9feb231

Browse files
authored
Merge pull request #1411 from open-ideas/issue1402_translationWarning
Issue1402 translation warning
2 parents 8b3818d + db56abc commit 9feb231

File tree

8 files changed

+84
-31
lines changed

8 files changed

+84
-31
lines changed

IDEAS/Airflow/Multizone/CrackOrOperableDoor.mo

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ model CrackOrOperableDoor
151151
hOpe=hOpe,
152152
dpCloRat=dpCloRat,
153153
LClo=LClo,
154-
vZer=vZer*MFtrans*rho_default)
154+
vZer=MFtrans/(rho_default*doo.wOpe*doo.hOpe))
155155
if useDoor and interZonalAirFlowType == IDEAS.BoundaryConditions.Types.InterZonalAirFlow.TwoPorts annotation (
156156
Placement(visible = true, transformation(origin={-2,0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
157157
IDEAS.Fluid.Sources.Boundary_pT bou(
@@ -223,6 +223,11 @@ There is no support for open doors when using only a single fluid port.
223223
revisions="<html>
224224
<ul>
225225
<li>
226+
January 30, 2025, by Klaas De Jonge:<br/>
227+
Changed wrong parameter declaration <code>doo.vZer</code> to have compatible units.
228+
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1402\">#1402</a>.
229+
</li>
230+
<li>
226231
October 30, 2024, by Klaas De Jonge:<br/>
227232
Changes for column heights,used default density and transition point to laminar flow at low dp.
228233
</li>

IDEAS/BoundaryConditions/SolarIrradiation/RadSol.mo

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ model RadSol "Block that computes surface-dependent environment data"
33
extends Modelica.Blocks.Icons.Block;
44

55
parameter Real rho=0.2 "Ground reflectance";
6-
parameter Modelica.Units.SI.Angle inc(displayUnit="degree") "inclination";
7-
parameter Modelica.Units.SI.Angle azi(displayUnit="degree") "azimuth";
8-
parameter Modelica.Units.SI.Angle lat(displayUnit="degree") "latitude";
6+
parameter Modelica.Units.SI.Angle inc(displayUnit="deg") "inclination";
7+
parameter Modelica.Units.SI.Angle azi(displayUnit="deg") "azimuth";
8+
parameter Modelica.Units.SI.Angle lat(displayUnit="deg") "latitude";
99
parameter Boolean remDefVals = false "Remove default signal values";
1010
parameter Boolean outputAngles=true "Set to false when linearising only";
1111

@@ -141,6 +141,11 @@ equation
141141
Documentation(revisions="<html>
142142
<ul>
143143
<li>
144+
January 24, 2025, by Klaas De Jonge:<br/>
145+
Changed <code>displayUnit</code> angles from <code>degree</code> to <code>deg</code> to avoid warnings.
146+
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1402\">#1402</a>
147+
</li>
148+
<li>
144149
November 28, 2019, by Ian Beausoleil-Morrison:<br/>
145150
Add RealInput's for wind speed and wind direction.<br/>
146151
Instantiate extConvForcedCoeff.mo and place resulting coefficient for forced convection on SolBus.

IDEAS/Buildings/Components/Interfaces/PartialSurface.mo

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
within IDEAS.Buildings.Components.Interfaces;
22
partial model PartialSurface "Partial model for building envelope component"
3-
3+
44
outer IDEAS.BoundaryConditions.SimInfoManager sim
55
"Simulation information manager for climate data"
66
annotation (Placement(visible = true, transformation(origin = {50, 180}, extent = {{30, -100}, {50, -80}}, rotation = 0)));
@@ -26,7 +26,7 @@ partial model PartialSurface "Partial model for building envelope component"
2626
annotation (Dialog(group="Design power",tab="Advanced"));
2727
parameter Modelica.Units.SI.Temperature T_start=293.15
2828
"Start temperature for each of the layers"
29-
annotation (Dialog(tab="Dynamics", group="Initial condition"));
29+
annotation (Dialog(tab="Dynamics", group="Initial condition"));
3030
parameter Boolean linIntCon_a=sim.linIntCon
3131
"= true, if convective heat transfer should be linearised"
3232
annotation (Dialog(tab="Convection"));
@@ -52,15 +52,15 @@ partial model PartialSurface "Partial model for building envelope component"
5252
final parameter Modelica.Units.SI.Length hzone_a( fixed=false);//connected with propsbus in inital equation
5353
final parameter Modelica.Units.SI.Length hAbs_floor_a( fixed=false);
5454
parameter Modelica.Units.SI.Length hVertical=if IDEAS.Utilities.Math.Functions.isAngle(inc,IDEAS.Types.Tilt.Floor) or IDEAS.Utilities.Math.Functions.isAngle(inc,IDEAS.Types.Tilt.Ceiling) then 0 else hzone_a "Vertical surface height, height of the surface projected to the vertical, 0 for floors and ceilings" annotation(Evaluate=true);
55-
parameter Modelica.Units.SI.Length hRelSurfBot_a= if IDEAS.Utilities.Math.Functions.isAngle(inc,IDEAS.Types.Tilt.Ceiling) then hzone_a else 0 "Height between the lowest point of the surface (bottom) and the floor level of the zone connected at propsBus_a"annotation(Evaluate=true);
55+
parameter Modelica.Units.SI.Length hRelSurfBot_a= if IDEAS.Utilities.Math.Functions.isAngle(inc,IDEAS.Types.Tilt.Ceiling) then hzone_a else 0 "Height between the lowest point of the surface (bottom) and the floor level of the zone connected at propsBus_a"
56+
annotation(Evaluate=true);
5657
final parameter Modelica.Units.SI.Length Habs_surf=hAbs_floor_a+hRelSurfBot_a+(hVertical/2) "Absolute height of the middle of the surface, can be used to check the heights after initialisation";
5758

5859
IDEAS.Buildings.Components.Interfaces.ZoneBus propsBus_a(
5960
redeclare final package Medium = Medium,
6061
numIncAndAziInBus=sim.numIncAndAziInBus, outputAngles=sim.outputAngles,
6162
final use_port_1=sim.use_port_1,
62-
final use_port_2=sim.use_port_2)
63-
"If inc = Floor, then propsbus_a should be connected to the zone above this floor.
63+
final use_port_2=sim.use_port_2) "If inc = Floor, then propsbus_a should be connected to the zone above this floor.
6464
If inc = ceiling, then propsbus_a should be connected to the zone below this ceiling.
6565
If component is an outerWall, porpsBus_a should be connect to the zone."
6666
annotation (Placement(transformation(
@@ -106,6 +106,16 @@ partial model PartialSurface "Partial model for building envelope component"
106106
Placement(visible = true, transformation(origin = {30, -52}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
107107
Modelica.Blocks.Sources.RealExpression AExp(y = A) "Area expression" annotation(
108108
Placement(transformation(origin = {0, 20}, extent = {{-10, -10}, {10, 10}})));
109+
Modelica.Blocks.Routing.BooleanPassThrough use_custom_q50PassThrough
110+
annotation (Placement(transformation(
111+
extent={{-5,5},{5,-5}},
112+
rotation=90,
113+
origin={62,-20})));
114+
Modelica.Blocks.Routing.RealPassThrough v50PassThrough annotation (Placement(transformation(
115+
extent={{-5,-5},{5,5}},
116+
rotation=90,
117+
origin={50,-20})));
118+
109119
protected
110120
parameter Boolean add_door = true "Option to disable crackOrOperableDoor";
111121
final parameter Modelica.Units.SI.Angle aziInt=
@@ -170,6 +180,9 @@ model Q50_parameterToConnector "Converts parameter values into connectors for pr
170180
"Custom v50 value";
171181
parameter Boolean use_custom_q50=false
172182
"true if custom q50 value should be considered by the zone";
183+
parameter Integer nDum=2
184+
"Number of dummy connections";
185+
173186
Modelica.Blocks.Interfaces.RealInput q50_zone
174187
"Input for q50 value computed by the zone"
175188
annotation (Placement(transformation(extent={{-126,50},{-86,90}})));
@@ -180,7 +193,7 @@ model Q50_parameterToConnector "Converts parameter values into connectors for pr
180193
Modelica.Blocks.Interfaces.BooleanOutput using_custom_q50 = use_custom_q50
181194
"Output indicating whether a custom q50 value should be considered by the zone"
182195
annotation (Placement(transformation(extent={{-100,-30},{-120,-10}})));
183-
Modelica.Blocks.Interfaces.RealInput dummy_h[2]
196+
Modelica.Blocks.Interfaces.RealInput dummy_h[nDum]
184197
"Dummy connectors for hzone and hfloor"
185198
annotation (Placement(transformation(extent={{-126,14},{-86,54}})));
186199
annotation (Icon(graphics={Rectangle(
@@ -237,37 +250,44 @@ equation
237250
color={255,204,51},
238251
thickness=0.5));
239252
connect(setArea.areaPort, sim.areaPort);
240-
connect(q50_zone.v50, propsBusInt.v50) annotation (Line(points={{79,-58},{56,-58},
241-
{56,-20},{56.09,-20},{56.09,19.91}}, color={0,0,127}));
242253
connect(q50_zone.q50_zone, propsBusInt.q50_zone) annotation (Line(points={{79.4,
243254
-43},{79.4,-44},{56.09,-44},{56.09,19.91}}, color={0,0,127}));
244-
connect(q50_zone.using_custom_q50, propsBusInt.use_custom_q50) annotation (Line(points={{79,-52},
245-
{56.09,-52},{56.09,19.91}}, color={0,0,127}));
246255
connect(setArea.use_custom_n50, propsBusInt.use_custom_n50) annotation (Line(points={{79.4,
247256
-91},{79.4,-90.5},{56.09,-90.5},{56.09,19.91}}, color={255,0,255}));
248257
connect(setArea.v50, propsBus_a.v50) annotation (Line(points={{79.4,-83.2},{
249258
79.4,-82},{56,-82},{56,0},{100.1,0},{100.1,19.9}}, color={0,0,127}));
250-
connect(q50_zone.dummy_h[1], propsBusInt.hzone) annotation (Line(points={{79.4,
251-
-47.6},{80,-47.6},{80,-48},{56.09,-48},{56.09,19.91}}, color={0,0,127}));
252-
connect(q50_zone.dummy_h[2], propsBusInt.hfloor) annotation (Line(points={{79.4,
253-
-45.6},{80,-45.6},{80,-46},{56.09,-46},{56.09,19.91}}, color={0,0,127}));
259+
connect(q50_zone.dummy_h[1], propsBusInt.hzone);
260+
connect(q50_zone.dummy_h[2], propsBusInt.hfloor);
254261
if sim.use_port_1 then
255262
connect(crackOrOperableDoor.port_b1, propsBusInt.port_1) annotation(
256-
Line(points = {{40, -46}, {56, -46}, {56, 20}}, color = {0, 127, 255}));
263+
Line(points={{40,-46},{56.09,-46},{56.09,19.91}},
264+
color = {0, 127, 255}));
257265
end if;
258266
if sim.use_port_2 then
259267
connect(crackOrOperableDoor.port_a2, propsBusInt.port_2) annotation(
260-
Line(points = {{40, -58}, {56, -58}, {56, 20}}, color = {0, 127, 255}));
268+
Line(points={{40,-58},{56.09,-58},{56.09,19.91}},
269+
color = {0, 127, 255}));
261270
end if;
262271
connect(AExp.y, propsBusInt.area) annotation(
263-
Line(points = {{12, 20}, {56, 20}}, color = {0, 0, 127}));
272+
Line(points={{11,20},{34,20},{34,19.91},{56.09,19.91}},
273+
color = {0, 0, 127}));
274+
connect(q50_zone.v50, v50PassThrough.u) annotation (Line(points={{79,-58},{56,-58},{56,-30},{50,-30},{50,-26}}, color={0,0,127}));
275+
connect(v50PassThrough.y, propsBusInt.v50) annotation (Line(points={{50,-14.5},{50,-8},{56.09,-8},{56.09,19.91}}, color={0,0,127}));
276+
connect(q50_zone.using_custom_q50, use_custom_q50PassThrough.u) annotation (Line(points={{79,-52},{56,-52},{56,-30},{62,-30},{62,-26}}, color={255,0,255}));
277+
connect(use_custom_q50PassThrough.y, propsBusInt.use_custom_q50) annotation (Line(points={{62,-14.5},{62,-8},{56.09,-8},{56.09,19.91}}, color={255,0,255}));
264278
annotation (
265279
Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{
266280
100,100}})),
267281
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-50, -100}, {50, 100}})),
268282
Documentation(revisions="<html>
269283
<ul>
270284
<li>
285+
January 24, 2025, by Klaas De Jonge:<br/>
286+
Addition of BooleanPassThrough and RealPassThrough block for v50 and use_custom_q50 and
287+
parameter for number of dummy connections in <code>Q50_parameterToConnector</code> to avoid translation warnings.
288+
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1402\">#1402</a>
289+
</li>
290+
<li>
271291
November 7, 2024, by Anna Dell'Isola and Jelger Jansen:<br/>
272292
Add variable <code>TRefZon</code> to be used when calculating <code>QTra_design</code>.
273293
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1337\">#1337</a>

IDEAS/Buildings/Components/Interfaces/RectangularZoneTemplateInterface.mo

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,27 +300,27 @@ partial model RectangularZoneTemplateInterface
300300
choicesAllMatching=true,
301301
Placement(transformation(extent={{-228,-72},{-224,-68}})),
302302
Dialog(tab="Internal wall",group="Construction details", enable=hasInt));
303-
replaceable IDEAS.Buildings.Data.Glazing.Ins2 glazingA
303+
replaceable IDEAS.Buildings.Data.Glazing.Ins2Ar2020 glazingA
304304
constrainedby IDEAS.Buildings.Data.Interfaces.Glazing "Glazing type of window of face A"
305305
annotation (choicesAllMatching=true,
306306
Dialog(tab="Face A", group="Window details",
307307
enable = hasWinA));
308-
replaceable IDEAS.Buildings.Data.Glazing.Ins2 glazingB
308+
replaceable IDEAS.Buildings.Data.Glazing.Ins2Ar2020 glazingB
309309
constrainedby IDEAS.Buildings.Data.Interfaces.Glazing "Glazing type of window of face B"
310310
annotation (choicesAllMatching=true,
311311
Dialog(tab="Face B", group="Window details",
312312
enable = hasWinB));
313-
replaceable IDEAS.Buildings.Data.Glazing.Ins2 glazingC
313+
replaceable IDEAS.Buildings.Data.Glazing.Ins2Ar2020 glazingC
314314
constrainedby IDEAS.Buildings.Data.Interfaces.Glazing "Glazing type of window of face C"
315315
annotation (choicesAllMatching=true,
316316
Dialog(tab="Face C", group="Window details",
317317
enable = hasWinC));
318-
replaceable IDEAS.Buildings.Data.Glazing.Ins2 glazingD
318+
replaceable IDEAS.Buildings.Data.Glazing.Ins2Ar2020 glazingD
319319
constrainedby IDEAS.Buildings.Data.Interfaces.Glazing "Glazing type of window of face D"
320320
annotation (choicesAllMatching=true,
321321
Dialog(tab="Face D", group="Window details",
322322
enable = hasWinD));
323-
replaceable IDEAS.Buildings.Data.Glazing.Ins2 glazingCei
323+
replaceable IDEAS.Buildings.Data.Glazing.Ins2Ar2020 glazingCei
324324
constrainedby IDEAS.Buildings.Data.Interfaces.Glazing "Glazing type of window of ceiling"
325325
annotation (
326326
choicesAllMatching=true,
@@ -1546,7 +1546,13 @@ components cannot be propagated.
15461546
</html>", revisions="<html>
15471547
<ul>
15481548
<li>
1549-
March 27, 2024, by Lucas Verleyen:<br>
1549+
January 30, 2025, by Jelger Jansen:<br/>
1550+
Updated default window glazing type to avoid obsolete type warning.
1551+
See <a href=https://github.com/open-ideas/IDEAS/issues/1402>#1402</a>
1552+
and <a href=https://github.com/open-ideas/IDEAS/issues/1410>#1410</a>.
1553+
</li>
1554+
<li>
1555+
March 27, 2024, by Lucas Verleyen:<br/>
15501556
Added parameter <code>T_start_gro</code> for initial temperature of the ground (<code>layGro</code>).<br>
15511557
According to the changes in SlabOnGround.<br>
15521558
See <a href=https://github.com/open-ideas/IDEAS/issues/1292>#1292</a> for more information.

IDEAS/Buildings/Components/Interfaces/ZoneBusVarMultiplicator.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected
8989
annotation (Placement(transformation(extent={{8,-384},{-12,-364}})));
9090
Modelica.Blocks.Routing.RealPassThrough TRefZon
9191
"Reference zone temperature for calculation of design heat load"
92-
annotation (Placement(transformation(extent={{8,-356},{-12,-336}})));
92+
annotation (Placement(transformation(extent={{8,-450},{-12,-430}})));
9393

9494
equation
9595
connect(QTra_design.u, propsBus_a.QTra_design) annotation (Line(points={{-12,188},

IDEAS/Buildings/Components/InternalWall.mo

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ model InternalWall "interior opaque wall between two zones"
1010
Qgai(y=(if sim.openSystemConservationOfEnergy or not sim.computeConservationOfEnergy
1111
then 0 else sum(port_emb.Q_flow))),
1212
final QTra_design(fixed=false),
13-
q50_zone(v50_surf = 0),
13+
q50_zone(v50_surf=0, nDum=4),
1414
crackOrOperableDoor(
1515
h_a1=-0.5*hzone_b + 0.75*hVertical + hRelSurfBot_b,
1616
h_b2=-0.5*hzone_b + 0.25*hVertical + hRelSurfBot_b,
@@ -198,6 +198,8 @@ equation
198198
Line(points = {{-40, -70}, {-52, -70}, {-52, 20}, {-100, 20}}, color = {0, 127, 255}));
199199
connect(boundary3_a.ports[1], propsBusInt.port_3) annotation(
200200
Line(points = {{40, -70}, {56, -70}, {56, 20}}, color = {0, 127, 255}));
201+
connect(q50_zone.dummy_h[3], propsBus_b.hzone);
202+
connect(q50_zone.dummy_h[4], propsBus_b.hfloor);
201203
annotation (
202204
Icon(coordinateSystem(preserveAspectRatio=false,extent={{-60,-100},{60,100}}),
203205
graphics={
@@ -258,6 +260,11 @@ We assume that the value of <code>A</code> excludes the surface area of the cavi
258260
</html>", revisions = "<html>
259261
<ul>
260262
<li>
263+
January 24, 2025, by Klaas De Jonge:<br/>
264+
Add dummy connections for <code>hzone</code> and <code>hfloor</code> in <code>propsbus_b</code> to avoid translation warnings.
265+
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1402\">#1402</a>
266+
</li>
267+
<li>
261268
November 7, 2024, by Anna Dell'Isola and Jelger Jansen:<br/>
262269
Update calculation of transmission design losses.
263270
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1337\">#1337</a>

IDEAS/Buildings/Components/SlabOnGround.mo

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected
105105
Placement(transformation(origin = {0, -4}, extent = {{-28, -76}, {-8, -56}})));
106106

107107
initial equation
108-
QTra_design=UEqui*A*(TRefZon - weaBus.TGroundDes);
108+
QTra_design=UEqui*A*(TRefZon - TdesGround.y);
109109
equation
110110
connect(TdesGround.u, weaBus.TGroundDes);
111111
connect(periodicFlow.port, layMul.port_b) annotation (Line(points={{-20,22},{
@@ -193,6 +193,11 @@ zone that is surrounded by air at the ambient temperature.
193193
</html>", revisions="<html>
194194
<ul>
195195
<li>
196+
January 30, 2025, by Klaas De Jonge:<br/>
197+
Use <code>TdesGround.y</code> for calculating <code>QTra_design</code> to avoid causality warning.
198+
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1402\">#1402</a>.
199+
</li>
200+
<li>
196201
November 7, 2024, by Anna Dell'Isola and Jelger Jansen:<br/>
197202
Update calculation of transmission design losses.
198203
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1337\">#1337</a>

IDEAS/Buildings/Components/ZoneAirModels/BaseClasses/PartialAirModel.mo

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ partial model PartialAirModel "Partial for air models"
1010
parameter Integer nSurf "Number of connected surfaces";
1111
parameter Integer nSeg(min=1)=1 "Number of air segments";
1212
parameter Integer nPorts "Number of fluid port connections to zone air volume";
13-
parameter Modelica.Units.SI.Volume Vtot "Total zone air volume";
13+
parameter Modelica.Units.SI.Volume Vtot(min=Modelica.Constants.small) "Total zone air volume";
1414
parameter Boolean allowFlowReversal=true
1515
"= false to simplify equations, assuming, but not enforcing, no flow reversal"
1616
annotation(Dialog(tab="Advanced"));
@@ -80,6 +80,11 @@ protected
8080
-100},{100,100}})), Documentation(revisions="<html>
8181
<ul>
8282
<li>
83+
January 24, 2025, by Klaas De Jonge:<br/>
84+
Added minimum zone air volume to avoid division by zero warning.
85+
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1402\">#1402</a>.
86+
</li>
87+
<li>
8388
July 27, 2018 by Filip Jorissen:<br/>
8489
Added output for the CO2 concentration.
8590
See <a href=\"https://github.com/open-ideas/IDEAS/issues/868\">#868</a>.

0 commit comments

Comments
 (0)