Skip to content

Commit

Permalink
Asserts in internal wall
Browse files Browse the repository at this point in the history
non-vertical openings in internal wall ARE supported now - delete this assert. And two suggestions of asserts to check connections of internal floors/ceilings. Need to check.
  • Loading branch information
kldjonge committed Nov 5, 2024
1 parent 4f303e8 commit 0dc5daf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions IDEAS/Buildings/Components/InternalWall.mo
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,13 @@ initial equation
hfloor_b = propsBus_b.hfloor;
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<hfloor_b, getInstanceName()+ "is a floor, 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(hasCavity == false or IDEAS.Utilities.Math.Functions.isAngle(incInt, IDEAS.Types.Tilt.Wall), "In " + getInstanceName() + ": Cavities are only supported for vertical walls, but inc=" + String(incInt) + ". The model is not accurate.", level = AssertionLevel.warning);
connect(layMul.port_b, propsBus_b.surfRad) annotation(

assert(not
(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(not
(IDEAS.Utilities.Math.Functions.isAngle(inc,Modelica.Constants.pi) and hAbs_floor_a<hfloor_b), getInstanceName()+ "is a floor, 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);

connect(layMul.port_b, propsBus_b.surfRad) annotation (
Line(points = {{-10, 0}, {-18, 0}, {-18, 20.1}, {-100.1, 20.1}}, color = {191, 0, 0}, smooth = Smooth.None));
connect(propsBus_b.surfCon, intCon_b.port_b) annotation(
Line(points = {{-100.1, 20.1}, {-48, 20.1}, {-48, 0}, {-42, 0}}, color = {191, 0, 0}, smooth = Smooth.None));
Expand Down

0 comments on commit 0dc5daf

Please sign in to comment.