Skip to content

Commit

Permalink
only override dh toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
kldjonge committed Sep 27, 2024
1 parent 4f54203 commit 55c57dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion IDEAS/Airflow/Multizone/BaseClasses/DoorDiscretized.mo
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ partial model DoorDiscretized
Modelica.Units.SI.Velocity vBot "Velocity at bottom of opening from A to B";

protected
parameter Modelica.Units.SI.Length dh=hOpeVert/nCom "Height of each compartment";
parameter Modelica.Units.SI.Length dh=hOpe/nCom "Height of each compartment";

parameter Medium.ThermodynamicState sta_default=Medium.setState_pTX(
T=Medium.T_default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ partial model TwoWayFlowElementBuoyancy
parameter Modelica.Units.SI.Length hOpe=2.1 "Height of opening"
annotation (Dialog(group="Geometry"));

parameter Modelica.Units.SI.Angle inc=Modelica.Constants.pi/2 "inclination angle (vertical=pi/2)";
final parameter Modelica.Units.SI.Length hOpeVert=sin(inc)*hOpe "Height of opening projected to the vertical plane";

parameter Modelica.Units.SI.Length hA=2.7/2
"Height of reference pressure zone A" annotation (Dialog(group="Geometry"));
parameter Modelica.Units.SI.Length hB=2.7/2
Expand Down
1 change: 1 addition & 0 deletions IDEAS/Airflow/Multizone/CrackOrOperableDoor.mo
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ model CrackOrOperableDoor
useDefaultProperties = false) if not useDoor and interZonalAirFlowType == IDEAS.BoundaryConditions.Types.InterZonalAirFlow.TwoPorts "Pressure drop equation" annotation (
Placement(visible = true, transformation(origin = {0, -60}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
IDEAS.Airflow.Multizone.DoorDiscretizedOperable doo(
final dh=doo.dhOpe*sin(inc)/nCom,
redeclare package Medium = Medium,
inc=inc,
final hA=hA,
Expand Down

0 comments on commit 55c57dc

Please sign in to comment.