modelOpening

Information

Opening

This components allows to model the mass flow rate through from either static boundary pressure difference or buoyancy effect through a vertical orifice in a wall spliting two ambiances.

To be considered as an orifice, the depth of the hole in the wall has to remain bellow the hydrodynamic entrance region (Distance between the entrance of the hole and the position where the dynamic boundary layers meet).

To compute the mass flow rate throught the opening, the Newton's laws of motion is applied between the inlet and the outlet of the opening. It is assumed full conversion of potential energy (static pressure) to kinetic energy (dynamique pressure) at steady state.

The static pressure from nodes are corrected from the altitude difference between the boundary node and the opening.

To take account of buoyancy, the orifice is split in N number of layers along the vertical axis over an height. The static pressure is corrected from the hydrostatic pressure:

As a reminder, the pressure drop is equal to the dynamic pressure. It is equivalent to have a pressure loss factor equation to one.

The second Newton's law of motion derives:

If massDynamics = Dynamics.SteadyState the inertial term is removed thus set to 0

To take account of the visquous and inertial forces that participates to curve the current lines from the inlet to the outlet, a discharge coefficient Cd is used. It is assumed to be constant and therefore independent of the flow regime.



Therefore, the relation to compute mass flow rate through the orifice derives:

Where:

  • H_fluidStream is height between the bottom and the top current lines
  • H is the geometrical height of the orifice
  • dp is the static pressure difference between port_a.p and port_b.p
  • d is the upstream density
  • Vel is fluid velocity
  • m_flow_i is the mass flow rate through the layer index i
  • A is cross section of the orifice
  • Cd is the discharge coefficient

To avoid infinite derivative at Vel_i=0, The square is replaced by the function regSquare2 of the MSL that replace the square by a polynomial expression to insure a finite derivative. The threshold to switch between the polynom and the square is defined by the parameter Vel_small

Parameters

TypeNameDefaultDescription
RealCd0.61discharge coefficient
Modelica.SIunits.CrossSectionA1Opening cross section
Modelica.SIunits.HeightH1Opening's Height
IntegerN5Number discrete layer along the height of the opening
Modelica.SIunits.LengthNotionalLength1e-4Opening's thickness
DynamicsmassDynamicsDynamics.SteadyStateInitialFormulation of mass balance
Modelica.SIunits.VelocityVel_start0.0Start value for velocity, if not steady state
Modelica.SIunits.LengthAlt_a1.0Altitude of port_a
Modelica.SIunits.LengthAlt_b1.0Altitude of port_b
Modelica.SIunits.LengthAlt_opening1.0Altitude at the opening center

Connectors

TypeNameDefaultDescription
TAeZoSysPro.FluidDynamics.Interfaces.FlowPort_aport_a
TAeZoSysPro.FluidDynamics.Interfaces.FlowPort_bport_b

Components

TypeNameDefaultDescription
Modelica.SIunits.Pressurep_aPressure at port_a
Modelica.SIunits.Pressurep_bPressure at port_b
Modelica.SIunits.PressureDifference[N]dp_i
Modelica.SIunits.PressureDifferencedp
Modelica.SIunits.MassFlowRate[N]m_flow_i
Modelica.SIunits.Velocity[N]Vel
Modelica.SIunits.MassFlowRatem_flowMass flow rate throught the opening
Modelica.SIunits.Density[N]d
Modelica.SIunits.IsentropicExponentgammaIsentropic exponent
Modelica.SIunits.MachNumberMMach number at the opening
Medium.ThermodynamicStatestate
Medium.ThermodynamicStatestate_a
Medium.ThermodynamicStatestate_b

Contents

NameDescription
Medium