modelSimpleOpeningComp
Information
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)
-
cpis the specific heat capacity at constant pressure -
Tis the temperature -
Mis the Mach number -
cis the velocity of sound -
γis the isentropic exponent (cp/cv) -
pis the pressure -
dis the upstream density -
Velis fluid velocity -
m_flowis the mass flow rate through opening -
Ais cross section of the orifice -
Cdis the discharge coefficient
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Cd | 0.61 | discharge coefficient |
| Modelica.SIunits.CrossSection | A | 1 | Opening cross section |
| 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.PressureDifference | dp | ||
| Modelica.SIunits.Velocity | Vel | Velocity at the orifice | |
| Modelica.SIunits.Velocity | c | Sound velocity | |
| Modelica.SIunits.MassFlowRate | m_flow | Mass flow rate throught the opening | |
| Modelica.SIunits.Density | d | density at the orifice | |
| Modelica.SIunits.AbsolutePressure | p_a | ||
| Modelica.SIunits.AbsolutePressure | p_b | ||
| Modelica.SIunits.IsentropicExponent | gamma | isentropic exponent | |
| Modelica.SIunits.MachNumber | M | Mach number at the orifice | |
| Modelica.SIunits.Temperature | T | Temperature at the orifice | |
| Medium.ThermodynamicState | state_upstream | State of upstream flow | |
| Medium.ThermodynamicState | state_a | ||
| Medium.ThermodynamicState | state_b | States at ports |
Contents
| Name | Description |
|---|---|