diff --git a/IDEAS/Airflow/Multizone/CrackOrOperableDoor.mo b/IDEAS/Airflow/Multizone/CrackOrOperableDoor.mo index 2cb9930e3..1c6b0b842 100644 --- a/IDEAS/Airflow/Multizone/CrackOrOperableDoor.mo +++ b/IDEAS/Airflow/Multizone/CrackOrOperableDoor.mo @@ -76,7 +76,7 @@ model CrackOrOperableDoor forceErrorControlOnFlow = false, mMea_flow_nominal = (if interZonalAirFlowType == IDEAS.BoundaryConditions.Types.InterZonalAirFlow.TwoPorts then LClo/2 else LClo)*CDClo*(2*dpCloRat/1.2)^mClo, m = mClo, - useDefaultProperties = false) if not useDoor "Pressure drop equation" annotation( + useDefaultProperties = false) if not useDoor or (useDoor and interZonalAirFlowType == IDEAS.BoundaryConditions.Types.InterZonalAirFlow.OnePort) "Pressure drop equation" annotation( Placement(visible = true, transformation(origin = {0, 60}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); IDEAS.Airflow.Multizone.ReversibleDensityColumn col_b1(redeclare package Medium = Medium, h=h_b1) if interZonalAirFlowType == IDEAS.BoundaryConditions.Types.InterZonalAirFlow.TwoPorts "Column for port b1" annotation( Placement(visible = true, transformation(origin = {0, 70}, extent = {{50, -10}, {70, 10}}, rotation = 0))); @@ -123,9 +123,9 @@ model CrackOrOperableDoor "Door constantly opened" annotation( Placement(visible = true, transformation(origin = {-54, -14}, extent = {{-6, -6}, {6, 6}}, rotation = 0))); initial equation - assert( not (interZonalAirFlowType <> IDEAS.BoundaryConditions.Types.InterZonalAirFlow.TwoPorts and useDoor), + assert( not (interZonalAirFlowType <> IDEAS.BoundaryConditions.Types.InterZonalAirFlow.TwoPorts and useDoor and use_y), "In " +getInstanceName() + ": Cannot use a controllable door unless interZonalAirFlowType == TwoPorts."); - + equation connect(col_a1.port_a, point_m_flow1.port_a) annotation( Line(points = {{-60, 80}, {-60, 84}, {-20, 84}, {-20, 60}, {-10, 60}}, color = {0, 127, 255})); @@ -170,7 +170,23 @@ equation connect(bou.ports[2], port_b2) annotation( Line(points = {{0, -80}, {-100, -80}, {-100, -60}}, color = {0, 127, 255})); -annotation( +annotation(Documentation(info=" +
+This models an open/closed door depending on the number of available fluid ports. +
++When only one port is available then an orrifice equation is used to approximate the closed door. +There is no support for open doors when using only a single fluid port. +
+", +revisions=" +