modelDoorDiscretizedOperable

Door model using discretization along height coordinate

Extends from Annex60.Airflow.Multizone.BaseClasses.DoorDiscretized (Door model using discretization along height coordinate).

Information

This model describes the bi-directional air flow through an open door.

To compute the bi-directional flow, the door is discretize along the height coordinate, and uses an orifice equation to compute the flow for each compartment.

The door can be either open or closed, depending on the input signal y. Set y=0 if the door is closed, and y=1 if the door is open. Use the model Annex60.Airflow.Multizone.DoorDiscretizedOpen for a door that is always closed.

Parameters

TypeNameDefaultDescription
BooleanforceErrorControlOnFlow (from ErrorControl)trueFlag to force error control on m_flow. Set to true if interested in flow rate
Modelica.SIunits.VelocityvZer (from TwoWayFlowElement)0.001Minimum velocity to prevent zero flow. Recommended: 0.001
Modelica.SIunits.LengthwOpe (from TwoWayFlowElementBuoyancy)0.9|Geometry|Width of opening
Modelica.SIunits.LengthhOpe (from TwoWayFlowElementBuoyancy)2.1|Geometry|Height of opening
Modelica.SIunits.LengthhA (from TwoWayFlowElementBuoyancy)2.7/2|Geometry|Height of reference pressure zone A
Modelica.SIunits.LengthhB (from TwoWayFlowElementBuoyancy)2.7/2|Geometry|Height of reference pressure zone B
IntegernCom (from DoorDiscretized)10Number of compartments for the discretization
Modelica.SIunits.PressureDifferencedp_turbulent (from DoorDiscretized)0.01Pressure difference where laminar and turbulent flow relation coincide. Recommended: 0.01
RealCD (from DoorDiscretized)0.65|Orifice characteristics|Discharge coefficient
Modelica.SIunits.PressureDifferencedpCloRat4|Closed aperture rating conditions|Pressure drop at rating condition
RealCDCloRat1|Closed aperture rating conditions|Discharge coefficient
Modelica.SIunits.AreaLClo|Closed aperture|Effective leakage area
RealCDOpe0.65|Open aperture|Discharge coefficient
RealCDClo0.65|Closed aperture|Discharge coefficient
RealmOpe0.5|Open aperture|Flow exponent for door
RealmClo0.65|Closed aperture|Flow exponent for crack
Assumptions
BooleanallowFlowReversal1 (from PartialFourPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal for medium 1
BooleanallowFlowReversal2 (from PartialFourPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal for medium 2
Nominal condition
Modelica.SIunits.MassFlowRatem1_flow_nominal (from PartialFourPortInterface)Nominal mass flow rate
Modelica.SIunits.MassFlowRatem2_flow_nominal (from PartialFourPortInterface)Nominal mass flow rate
Advanced
Medium1.MassFlowRatem1_flow_small (from PartialFourPortInterface)1E-4*abs(m1_flow_nominal)Small mass flow rate for regularization of zero flow
Medium2.MassFlowRatem2_flow_small (from PartialFourPortInterface)1E-4*abs(m2_flow_nominal)Small mass flow rate for regularization of zero flow
Advanced › Diagnostics
Booleanshow_T (from PartialFourPortInterface)false= true, if actual temperature at port is computed

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a1 (from PartialFourPort)Fluid connector a1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_bport_b1 (from PartialFourPort)Fluid connector b1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_aport_a2 (from PartialFourPort)Fluid connector a2 (positive design flow direction is from port_a2 to port_b2)
Modelica.Fluid.Interfaces.FluidPort_bport_b2 (from PartialFourPort)Fluid connector b2 (positive design flow direction is from port_a2 to port_b2)
Modelica.Blocks.Interfaces.RealInputyOpening signal, 0=closed, 1=open

Components

TypeNameDefaultDescription
Medium1.MassFlowRatem1_flow (from PartialFourPortInterface)port_a1.m_flowMass flow rate from port_a1 to port_b1 (m1_flow > 0 is design flow direction)
Modelica.SIunits.PressureDifferencedp1 (from PartialFourPortInterface)port_a1.p - port_b1.pPressure difference between port_a1 and port_b1
Medium2.MassFlowRatem2_flow (from PartialFourPortInterface)port_a2.m_flowMass flow rate from port_a2 to port_b2 (m2_flow > 0 is design flow direction)
Modelica.SIunits.PressureDifferencedp2 (from PartialFourPortInterface)port_a2.p - port_b2.pPressure difference between port_a2 and port_b2
Medium1.ThermodynamicStatesta_a1 (from PartialFourPortInterface)Medium1.setState_phX(port_a1.p, noEvent(actualStream(port_a1.h_outflow)), noEvent(actualStream(port_a1.Xi_outflow)))Medium properties in port_a1
Medium1.ThermodynamicStatesta_b1 (from PartialFourPortInterface)Medium1.setState_phX(port_b1.p, noEvent(actualStream(port_b1.h_outflow)), noEvent(actualStream(port_b1.Xi_outflow)))Medium properties in port_b1
Medium2.ThermodynamicStatesta_a2 (from PartialFourPortInterface)Medium2.setState_phX(port_a2.p, noEvent(actualStream(port_a2.h_outflow)), noEvent(actualStream(port_a2.Xi_outflow)))Medium properties in port_a2
Medium2.ThermodynamicStatesta_b2 (from PartialFourPortInterface)Medium2.setState_phX(port_b2.p, noEvent(actualStream(port_b2.h_outflow)), noEvent(actualStream(port_b2.Xi_outflow)))Medium properties in port_b2
Modelica.SIunits.VolumeFlowRateVAB_flow (from TwoWayFlowElement)Volume flow rate from A to B if positive
Modelica.SIunits.VolumeFlowRateVBA_flow (from TwoWayFlowElement)Volume flow rate from B to A if positive
Modelica.SIunits.MassFlowRatemAB_flow (from TwoWayFlowElement)Mass flow rate from A to B if positive
Modelica.SIunits.MassFlowRatemBA_flow (from TwoWayFlowElement)Mass flow rate from B to A if positive
Modelica.SIunits.VelocityvAB (from TwoWayFlowElement)Average velocity from A to B
Modelica.SIunits.VelocityvBA (from TwoWayFlowElement)Average velocity from B to A
Modelica.SIunits.Densityrho_a1_inflow (from TwoWayFlowElement)Density of air flowing in from port_a1
Modelica.SIunits.Densityrho_a2_inflow (from TwoWayFlowElement)Density of air flowing in from port_a2
Modelica.SIunits.AreaA (from TwoWayFlowElement)Face area
Modelica.SIunits.PressureDifference[nCom]dpAB (from DoorDiscretized)Pressure difference between compartments
Modelica.SIunits.Velocity[nCom]v (from DoorDiscretized)Velocity in compartment from A to B
Modelica.SIunits.VelocityvTop (from DoorDiscretized)Velocity at top of opening from A to B
Modelica.SIunits.VelocityvBot (from DoorDiscretized)Velocity at bottom of opening from A to B

Revisions

  • April 11, 2016 by Michael Wetter:
    Corrected wrong hyperlink in documentation for issue 450.
  • January 22, 2016, by Michael Wetter:
    Corrected type declaration of pressure difference. This is for #404.
  • December 14, 2012 by Michael Wetter:
    Renamed protected parameters for consistency with the naming conventions.
  • December 6, 2011 by Michael Wetter:
    Changed the computation of the discharge coefficient to use the nominal density instead of the actual density. Computing sqrt(2/rho) sometimes causes warnings from the solver, as it seems to try negative values for the density during iterative solutions.
  • August 12, 2011 by Michael Wetter:
    Changed model to use the new function Buildings.Airflow.Multizone.BaseClasses.powerLawFixedM.
  • July 20, 2010 by Michael Wetter:
    Migrated model to Modelica 3.1 and integrated it into the Buildings library.
  • February 10, 2005 by Michael Wetter:
    Released first version.