modelSimpleOpeningComp

Information

SimpleOpeningComp

This components allows to model the mass flow rate of a compressible flow (Mach >0.3) through an orifice in a wall spliting two ambiances at different pressure. The flow regime is steady state.

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). In that case and due to visquous and inertial forces, the current line is not at right angles to the opening but curved. The flow is constricted in the orifice. Consequently, the cross-section of the fluid is not equal to the geometric section of the orifice. the ratio between the fluid passage section and the geometric section is called the discharge coefficient. It is assumed to be constant and therefore independent of the flow regime.

The flow upstream the orifice is assumed to behave like a Laval nozzle (Adiabatic and isentropic tranformation of a perfect gas).

From the perfect gas law and the isentropic transformation of a perfect gas.

The relations for the pression and density along a current line derive:

It is assumed that the pressure in the opening is the downstream node pressure. Knowing pressure ratio, the Mach number M is deduced. Therefore, le velocity is computed from the Mach number and the velocity of sound at the opening.

If the function to compute the velocity of sound gives weirds results (Because of a presence of condensing phase ...), the velocity can be determined from the relation bellow.
The conservation of the energy between the energy resulting from the work of the forces of pressure, internal energy and kinetic energy results in the relation of bernoulli:

It is equivalent to have a pressure loss factor equation to one. Therefore, the relation to compute mass flow rate through the orifice derives:

Where:

  • the index 0 reference to the generation conditions (side port_a if p_a > p_b and the reverse otherwise)
  • cp is the specific heat capacity at constant pressure
  • T is the temperature
  • M is the Mach number
  • c is the velocity of sound
  • γ is the isentropic exponent (cp/cv)
  • p is the pressure
  • d is the upstream density
  • Vel is fluid velocity
  • m_flow is the mass flow rate through opening
  • A is cross section of the orifice
  • Cd is the discharge coefficient

Parameters

TypeNameDefaultDescription
RealCd0.61discharge coefficient
Modelica.SIunits.CrossSectionA1Opening cross section
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.PressureDifferencedp
Modelica.SIunits.VelocityVelVelocity at the orifice
Modelica.SIunits.VelocitycSound velocity
Modelica.SIunits.MassFlowRatem_flowMass flow rate throught the opening
Modelica.SIunits.Densityddensity at the orifice
Modelica.SIunits.AbsolutePressurep_a
Modelica.SIunits.AbsolutePressurep_b
Modelica.SIunits.IsentropicExponentgammaisentropic exponent
Modelica.SIunits.MachNumberMMach number at the orifice
Modelica.SIunits.TemperatureTTemperature at the orifice
Medium.ThermodynamicStatestate_upstreamState of upstream flow
Medium.ThermodynamicStatestate_a
Medium.ThermodynamicStatestate_bStates at ports

Contents

NameDescription
Medium