From 14b98ba526c311f8e4f08f52d9d122fbb852a218 Mon Sep 17 00:00:00 2001 From: jelgerjansen Date: Fri, 31 Jan 2025 15:04:59 +0100 Subject: [PATCH] Revert "Updated assert statements in InternalWall" This reverts commit 6ccbe0f709563ab85ce67613ce1f0cd0cbb8fafa. --- IDEAS/Buildings/Components/InternalWall.mo | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/IDEAS/Buildings/Components/InternalWall.mo b/IDEAS/Buildings/Components/InternalWall.mo index b4a896373..8002eb5a7 100644 --- a/IDEAS/Buildings/Components/InternalWall.mo +++ b/IDEAS/Buildings/Components/InternalWall.mo @@ -151,18 +151,11 @@ initial equation "TRefZon is the reference temperature for heat loss calculations of the zone connected to propsbus_a, TRef_b is the reference temperature for heat loss calculations of the zone connected to propsBus_b"; - if sim.interZonalAirFlowType == IDEAS.BoundaryConditions.Types.InterZonalAirFlow.None and hasCavity == true then - assert(IDEAS.Utilities.Math.Functions.isAngle(incInt, IDEAS.Types.Tilt.Wall), "In " + getInstanceName() + ": Cavities without airflow are only supported for vertical walls, but inc=" + String(incInt) + ". The model is not accurate.", level = AssertionLevel.warning); - end if; - - if sim.interZonalAirFlowType <> IDEAS.BoundaryConditions.Types.InterZonalAirFlow.None and IDEAS.Utilities.Math.Functions.isAngle(inc,0) then - assert(hAbs_floor_a IDEAS.BoundaryConditions.Types.InterZonalAirFlow.None and IDEAS.Utilities.Math.Functions.isAngle(inc,Modelica.Constants.pi) then - assert(hAbs_floor_a>hAbs_floor_b, getInstanceName()+ " is a floor, but the floor of the zone at probsbus_a (hfloor="+String(hAbs_floor_a) +") does not lie below the floor of zone at probsbus_b (hfloor="+String(hAbs_floor_b) +"), this should be fixed",level=AssertionLevel.error); - end if; - equation connect(constOne.y, crackOrOperableDoor.y); +//assert(IDEAS.Utilities.Math.Functions.isAngle(inc,0) and hAbs_floor_a>hfloor_b, getInstanceName()+ "is a ceiling, but the floor of the zone at probsbus_b lies above the floor of zone at probsbus_a, this is probably a mistake",level=AssertionLevel.warning); +//assert(IDEAS.Utilities.Math.Functions.isAngle(inc,Modelica.Constants.pi) and hAbs_floor_a