@@ -396,7 +396,7 @@ partial model RectangularZoneTemplateInterface
396396 // open door modelling
397397 parameter Boolean hasCavityA = false
398398 "=true, to model open door or cavity in internal wall"
399- annotation(Dialog(tab="Face A" , group="Cavity or open door" , enable=(bouTypeA ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
399+ annotation(Dialog(tab="Face A" , group="Cavity or open door" , enable=(bouTypA ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
400400 parameter Modelica.Units.SI.Length hA(min = 0 ) = 2
401401 "Height of (rectangular) cavity in internal wall" annotation (Dialog(
402402 enable=hasCavityA,
@@ -409,7 +409,7 @@ partial model RectangularZoneTemplateInterface
409409 group="Cavity or open door" ));
410410 parameter Boolean hasCavityB = false
411411 "=true, to model open door or cavity in internal wall"
412- annotation(Dialog(tab="Face B" , group="Cavity or open door" , enable=(bouTypeB ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
412+ annotation(Dialog(tab="Face B" , group="Cavity or open door" , enable=(bouTypB ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
413413 parameter Modelica.Units.SI.Length hB(min = 0 ) = 2
414414 "Height of (rectangular) cavity in internal wall" annotation (Dialog(
415415 enable=hasCavityB,
@@ -422,7 +422,7 @@ partial model RectangularZoneTemplateInterface
422422 group="Cavity or open door" ));
423423 parameter Boolean hasCavityC = false
424424 "=true, to model open door or cavity in internal wall"
425- annotation(Dialog(tab="Face C" , group="Cavity or open door" , enable=(bouTypeC ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
425+ annotation(Dialog(tab="Face C" , group="Cavity or open door" , enable=(bouTypC ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
426426 parameter Modelica.Units.SI.Length hC(min = 0 ) = 2
427427 "Height of (rectangular) cavity in internal wall" annotation (Dialog(
428428 enable=hasCavityC,
@@ -435,7 +435,7 @@ partial model RectangularZoneTemplateInterface
435435 group="Cavity or open door" ));
436436 parameter Boolean hasCavityD = false
437437 "=true, to model open door or cavity in internal wall"
438- annotation(Dialog(tab="Face D" , group="Cavity or open door" , enable=(bouTypeD ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
438+ annotation(Dialog(tab="Face D" , group="Cavity or open door" , enable=(bouTypD ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
439439 parameter Modelica.Units.SI.Length hD(min = 0 ) = 2
440440 "Height of (rectangular) cavity in internal wall" annotation (Dialog(
441441 enable=hasCavityD,
@@ -448,7 +448,7 @@ partial model RectangularZoneTemplateInterface
448448 group="Cavity or open door" ));
449449 parameter Boolean hasCavityFlo = false
450450 "=true, to model open door or cavity in internal floor"
451- annotation(Dialog(tab="Floor" , group="Cavity or open door" , enable=(bouTypeFlo ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
451+ annotation(Dialog(tab="Floor" , group="Cavity or open door" , enable=(bouTypFlo ==IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall)));
452452 parameter Modelica.Units.SI.Length bFlo(min = 0 ) = 2
453453 "Breadth of (rectangular) cavity in internal floor" annotation (Dialog(
454454 enable=hasCavityFlo,
@@ -1099,6 +1099,9 @@ protected
10991099 final parameter Integer indWinD = indWinC + (if hasWinD then 1 else 0 );
11001100 final parameter Integer indWinCei = indWinD + (if hasWinCei then 1 else 0 );
11011101
1102+ final parameter Boolean hasCavity = hasCavityA or hasCavityB or hasCavityC or hasCavityD or hasCavityFlo
1103+ "Boolean to enable open door modelling parameters if the RectangularZone has a cavity" ;
1104+
11021105initial equation
11031106 assert (not bouTypA== IDEAS.Buildings.Components.Interfaces.BoundaryType.SlabOnGround,
11041107 "The value for bouTypA is not supported" );
@@ -1546,6 +1549,11 @@ components cannot be propagated.
15461549</html>" , revisions="<html>
15471550<ul>
15481551<li>
1552+ June 13, 2025, by Jelger Jansen:<br/>
1553+ Add parameter <code>hasCavity</code> as it is used in the enabling of some parameters and fix typo <code>bouTyp</code>.
1554+ See <a href=\" https://github.com/open-ideas/IDEAS/issues/1437\">#1437</a>.
1555+ </li>
1556+ <li>
15491557February 4, 2025, by Jelger Jansen:<br/>
15501558Added <code>Modelica.Units.</code> to one or multiple parameter(s) due to the removal of <code>import</code> in IDEAS/package.mo.
15511559See <a href=\" https://github.com/open-ideas/IDEAS/issues/1415\">#1415</a> .
0 commit comments