modelOpening
Information
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_fluidStreamis height between the bottom and the top current lines -
His the geometrical height of the orifice -
dpis the static pressure difference between port_a.p and port_b.p -
dis the upstream density -
Velis fluid velocity -
m_flow_iis the mass flow rate through the layer index i -
Ais cross section of the orifice -
Cdis 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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Cd | 0.61 | discharge coefficient |
| Modelica.SIunits.CrossSection | A | 1 | Opening cross section |
| Modelica.SIunits.Height | H | 1 | Opening's Height |
| Integer | N | 5 | Number discrete layer along the height of the opening |
| Modelica.SIunits.Length | NotionalLength | 1e-4 | Opening's thickness |
| Dynamics | massDynamics | Dynamics.SteadyStateInitial | Formulation of mass balance |
| Modelica.SIunits.Velocity | Vel_start | 0.0 | Start value for velocity, if not steady state |
| Modelica.SIunits.Length | Alt_a | 1.0 | Altitude of port_a |
| Modelica.SIunits.Length | Alt_b | 1.0 | Altitude of port_b |
| Modelica.SIunits.Length | Alt_opening | 1.0 | Altitude at the opening center |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TAeZoSysPro.FluidDynamics.Interfaces.FlowPort_a | port_a | ||
| TAeZoSysPro.FluidDynamics.Interfaces.FlowPort_b | port_b |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Pressure | p_a | Pressure at port_a | |
| Modelica.SIunits.Pressure | p_b | Pressure at port_b | |
| Modelica.SIunits.PressureDifference[N] | dp_i | ||
| Modelica.SIunits.PressureDifference | dp | ||
| Modelica.SIunits.MassFlowRate[N] | m_flow_i | ||
| Modelica.SIunits.Velocity[N] | Vel | ||
| Modelica.SIunits.MassFlowRate | m_flow | Mass flow rate throught the opening | |
| Modelica.SIunits.Density[N] | d | ||
| Modelica.SIunits.IsentropicExponent | gamma | Isentropic exponent | |
| Modelica.SIunits.MachNumber | M | Mach number at the opening | |
| Medium.ThermodynamicState | state | ||
| Medium.ThermodynamicState | state_a | ||
| Medium.ThermodynamicState | state_b |
Contents
| Name | Description |
|---|---|