Main Content

Orifice (IL)

Constant-area or variable-area orifice in an isothermal liquid system

Since R2020a

  • Orifice (IL) block

Libraries:
Simscape / Fluids / Isothermal Liquid / Valves & Orifices / Orifices

Description

The Orifice (IL) block models the flow through a local restriction with a constant or variable opening area. For variable orifices, a control member connected to port S sets the opening position. The opening area is parametrized either linearly or by lookup table.

For orifices that open and close based on the displacement of a central spool, see Spool Orifice (IL).

The block conserves mass such that

m˙A+m˙B=ρvAAA+ρvBAB=0.

This mass balance implies that there is an increase in velocity when there is a decrease in area, and a reduction in velocity when the flow discharges into a larger area. In accordance with the Bernoulli principle, this change in velocity results in a region of lower pressure in the orifice and a higher pressure in the expansion zone. The resulting increase in pressure, which is called pressure recovery, depends on the discharge coefficient of the orifice and the ratio of the orifice and port areas.

Constant Orifices

For constant orifices, the orifice area, Aorifice, does not change over the course of the simulation.

Using the Constant Area Parameterization

The block calculates the mass flow rate as

m˙=CdAorifice2ρ¯PRloss(1(AorificeAport)2)pApBCdAorifice2ρ¯PRloss(1(AorificeAport)2)pApB[(pApB)2+Δpcrit]1/4,

where:

  • Cd is the Discharge coefficient.

  • Aorifice is the instantaneous orifice open area.

  • Aport is the Cross-sectional area at ports A and B.

  • ρ¯ is the average fluid density.

PRloss and Δpcrit are calculated in the same manner for constant and variable orifices and are defined in the Pressure Loss and Critical Pressure sections below.

This approximation for m˙ and the Local Restriction (IL) block are the same.

Using the Tabulated data - Volumetric flow rate vs. pressure drop Parameterization

The volumetric flow rate is determined from the tabulated values of the pressure differential, Δp, which you can provide. If you provide only non-negative values for both the volumetric flow rate and pressure drop vectors, the block extrapolates the table to contain negative values. The volumetric flow rate is interpolated from this extended table.

If the Volumetric flow rate vector and Pressure drop vector parameters contain both negative and positive values but no 0, the block inserts an origin into the vectors to ensure the valve does not have nonzero flow rate when the pressure drop is 0, which is non-physical.

Variable Orifices

For variable orifices, setting Opening orientation to Positive control member displacement opens orifice opens the orifice when the signal at S is positive, while a Negative control member displacement opens orifice orientation opens the orifice when the signal at S is negative. In both cases, the signal is positive and the orifice opening is set by the magnitude of the signal.

Using the Linear - Area vs. control member position Parameterization

The orifice area Aorifice is based on the control member position and the ratio of orifice area and maximum control member position:

Aorifice=(AmaxAleak)ΔS(SSmin)ε+Aleak,

where:

  • Smin is the control member position when the orifice is fully closed.

  • ΔS is the Control member travel between closed and open orifice.

  • Amax is the Maximum orifice area.

  • Aleak is the Leakage area.

  • ε is the Opening orientation.

When the valve is in a near-open or near-closed position in the linear parameterization, you can maintain numerical robustness in your simulation by adjusting the Smoothing factor parameter. If the Smoothing factor parameter is nonzero, the block smoothly saturates the orifice area between Aleak and Amax. For more information, see Numerical Smoothing.

The volumetric flow rate is determined by the pressure-flow rate equation:

m˙=CdAorifice2ρ¯PRloss(1(AorificeA)2)Δp[Δp2+Δpcrit2]1/4,

where A is the Cross-sectional area at ports A and B.

Using the Tabulated data - Area vs. control member position Parameterization

When you use the Tabulated data - Area vs. control member position parameterization, the orifice area Aorifice is interpolated from the tabulated values of opening area and the control member position, ΔS, which you can provide. As with the Linear - Area vs. control member position parameterization, the volumetric flow rate is determined by the pressure-flow rate equation:

m˙=CdAorifice2ρ¯PRloss(1(AorificeA)2)Δp[Δp2+Δpcrit2]1/4,

where Aorifice is:

  • Amax, the last element of the Orifice area vector, if the opening is larger than the maximum specified opening.

  • Aleak, the first element of the Orifice area vector, if the orifice opening is less than the minimum opening.

  • Aorifice if the calculated area is between the limits of the Orifice area vector.

Aopen is a function of the control member position received at port S. The block queries between data points with linear interpolation and uses nearest extrapolation for points beyond the table boundaries.

Using the Tabulated data - Volumetric flow rate vs. control member position and pressure drop Parameterization

The Tabulated data - Volumetric flow rate vs. control member position and pressure drop parameterization interpolates the volumetric flow rate directly from a user-provided volumetric flow rate table, which is based on the control member position and pressure drop over the orifice. The block queries between data points with linear interpolation and uses linear extrapolation for points beyond the table boundaries.

This data can include negative pressure drops and negative opening values. If a negative pressure drop is included in the dataset, the volumetric flow rate will change direction. However, the flow rate will remain unchanged for negative opening values.

If the Pressure drop vector, dp parameter does not contain a 0 and the Volumetric flow rate table, q(s,dp) parameter does not contain a corresponding column of 0's, the block inserts them to ensure the valve does not have nonzero flow rate when the pressure drop is 0, which is non-physical.

Pressure Loss

Pressure loss describes the reduction of pressure in the valve due to a decrease in area. The pressure loss term, PRloss is calculated as:

PRloss=1(AorificeAport)2(1Cd2)CdAorificeAport1(AorificeAport)2(1Cd2)+CdAorificeAport.

Pressure recovery describes the positive pressure change in the valve due to an increase in area. If you do not wish to capture this increase in pressure, clear the Pressure recovery check box. In this case, PRloss is 1.

Critical Pressure

The critical pressure difference, Δpcrit, is the pressure differential associated with the Critical Reynolds number, Recrit, which is the point of transition between laminar and turbulent flow in the fluid:

Δpcrit=πρ¯8Aorifice(νRecritCd)2.

Faults

To model a fault, in the Faults section, click the Add fault hyperlink next to the fault that you want to model. Use the fault parameters to specify the fault properties. For more information about fault modeling, see Introduction to Simscape Faults.

The Opening area when faulted parameter has three fault options:

  • Closed — The orifice freezes at its smallest value, depending on the Orifice parameterization:

    • When Orifice parameterization is set to Linear - Area vs. control member position, the orifice freezes at the Leakage area.

    • When Orifice parameterization is set to Tabulated data - Area vs. control member position, the orifice freezes at the first element of the Orifice area vector.

    • When Orifice parameterization is set to Tabulated data - Volumetric flow rate vs. control member position and pressure drop, the orifice freezes at the first row of the Volumetric flow rate table, q(s,dp).

  • Open — The orifice freezes at its largest value, depending on the Orifice parameterization:

    • When Orifice parameterization is set to Linear - Area vs. control member position, the orifice freezes at the Maximum orifice area.

    • When Orifice parameterization is set to Tabulated data - Area vs. control member position, the orifice freezes at the last element of the Orifice area vector.

    • When Orifice parameterization is set to Tabulated data - Volumetric flow rate vs. control member position and pressure drop, the orifice freezes at the last row of the Volumetric flow rate table, q(s,dp).

  • Maintain at last value — The orifice seizes at the open area or volumetric flow rate when the trigger occurs.

Examples

Ports

Conserving

expand all

Liquid entry or exit point to the orifice.

Liquid entry or exit point to the orifice.

Input

expand all

Control member displacement that sets orifice opening.

Parameters

expand all

Parameters

Type of orifice, defined by the orifice area. When set to Variable, the orifice area varies according to the input signal received at port S.

Method of calculating orifice area over simulation. When Orifice type is set to Constant, there are two parameterization options.

  • Orifice area (default). The assigned area does not change over the simulation.

  • Tabulated data - Volumetric flow rate vs. pressure drop. The area remains constant, but the volumetric flow rate through the orifice can vary. This value is interpolated directly from the Volumetric flow rate vector and the Pressure drop vector dataset.

When the Orifice type is set to Variable, there are three parameterization options.

  • Linear - Area vs. control member position. Area is determined by a linear relationship to the control member position with respect to a fully open or fully closed orifice. The position is set by a varying physical signal at port S.

  • Tabulated data - Area vs. control member position. The opening area is interpolated from the Control member position vector and the Orifice area vector based on the control member position received at port S.

  • Tabulated data - Volumetric flow rate vs. control member position and pressure drop. The volumetric flow rate is directly interpolated from the user- provided Control member position vector, s, Pressure drop vector, dp, and Volumetric flow rate table, q(s,dp) parameters based on the control member position received at port S and the pressure drop across ports A and B.

Cross-sectional area of the orifice opening.

Dependencies

To enable this parameter, set Orifice type to Constant and Orifice parameterization to Orifice area.

Vector of pressure differential values for the tabulated parameterization of volumetric flow rate. The values in this vector correspond one-to-one to values in the Volumetric flow rate vector parameter. The pressure drop vector values are listed in ascending order. The volumetric flow rate is interpolated directly from the Volumetric flow rate vector, which depends on the Pressure drop vector parameter.

Dependencies

To enable this parameter, set Orifice type to Constant and Orifice parameterization to Tabulated data - Volumetric flow rate vs. pressure drop.

Vector of volumetric flow rate values for the tabulated parameterization of volumetric flow rate. The values in this vector correspond one-to-one to values in the Pressure drop vector. The volumetric flow rate is interpolated directly from the provided Volumetric flow rate vector, which depends on the Pressure drop vector parameter.

Dependencies

To enable this parameter, set Orifice type to Constant and Orifice parameterization to Tabulated data - Volumetric flow rate vs. pressure drop.

Initial control member offset when the variable orifice is fully closed.

Dependencies

To enable this parameter, set Orifice type to Variable.

Maximum distance the control member travels between closed and open orifice. The orifice is fully open at the sum of the Control member position at closed orifice and Control member travel between closed and open orifice,

Dependencies

To enable this parameter, set Orifice type to Variable and Orifice parameterization to Linear - Area vs. control member position.

Maximum orifice area experienced during simulation. When using Tabulated data - Area vs. control member position, the maximum orifice area is the last element of the Orifice area vector.

Dependencies

To enable this parameter, set Orifice type to Variable and Orifice parameterization to Linear - Area vs. control member position.

Sum of all gaps when the valve is in fully closed position. Any area smaller than this value is maintained at the specified leakage area. This parameter contributes to numerical stability by maintaining continuity in the flow.

Dependencies

To enable this parameter, set Orifice type to Variable and Orifice parameterization to Linear - Area vs. control member position.

.

Vector of control member positions for the tabulated parameterization of orifice area. The vector elements correspond one-to-one to the values in the Orifice area vector. The vector elements must be either strictly monotonically increasing or decreasing. The orifice opening area is interpolated from the Orifice area vector, which depends on the Control member position vector parameter.

Dependencies

To enable this parameter, set Orifice type to Variable and Orifice parameterization to Tabulated data - Area vs. control member position.

Vector of orifice area values for the tabulated parameterization of orifice area. The values in this vector correspond one-to-one with the elements in the Control member position vector. If the vector is increasing, the first element of this vector is the orifice leakage area and the last element is the maximum orifice area. If the vector is decreasing, the first element of this vector is the orifice maximum orifice area and the last element is the leakage area. The orifice opening area is interpolated from the Orifice area vector, which depends on the Control member position vector.

Dependencies

To enable this parameter, set Orifice type to Variable and Orifice parameterization to Tabulated data - Area vs. control member position.

Cross-sectional area at the entry and exit ports A and B. This area is used in the pressure-flow rate equation that determines the mass flow rate through the orifice.

Dependencies

To enable this parameter, set either:

  • Orifice type to Variable and Orifice parameterization to either Linear - Area vs. control member position or Tabulated data - Area vs. control member position.

  • Orifice type to Constant and Orifice parameterization to Orifice area.

Direction of member displacement that opens a variable orifice. A positive orientation means that a positive signal at S opens the orifice. A negative orientation means that a negative signal at S opens the orifice.

Dependencies

To enable this parameter, set Orifice type to Variable.

Correction factor that accounts for discharge losses in theoretical flows.

Dependencies

To enable this parameter, set either:

  • Orifice type to Variable and Orifice parameterization to either Linear - Area vs. control member position or Tabulated data - Area vs. control member position.

  • Orifice type to Constant and Orifice parameterization to Orifice area.

Upper Reynolds number limit for laminar flow through the orifice.

Dependencies

To enable this parameter, set either:

  • Orifice type to Variable and Orifice parameterization to either Linear - Area vs. control member position or Tabulated data - Area vs. control member position.

  • Orifice type to Constant and Orifice parameterization to Orifice area.

Continuous smoothing factor that introduces a layer of gradual change to the flow response when the orifice is in near-open or near-closed positions. Set this value to a nonzero value less than one to increase the stability of your simulation in these regimes.

Whether to account for pressure increase when fluid flows from a region of smaller cross-sectional area to a region of larger cross-sectional area. This increase in pressure is not captured when you clear the Pressure recovery check box.

Dependencies

To enable this parameter, set either:

  • Orifice type to Variable and Orifice parameterization to either Linear - Area vs. control member position or Tabulated data - Area vs. control member position.

  • Orifice type to Constant and Orifice parameterization to Orifice area.

Vector of control member positions for tabulated parametrization of volumetric flow rate. The control member position vector forms an independent axis with the Pressure drop vector, dp parameter for the 2-D dependent Volumetric flow rate table, q(s,dp) parameter. A positive displacement corresponds to valve opening. The values are listed in ascending order and the first element must be 0. Linear interpolation is employed between table data points.

Dependencies

To enable this parameter, set Orifice type to Variable and Orifice parameterization to Tabulated data - Volumetric flow rate vs. control member position and pressure drop.

Vector of pressure drop values for tabulated parametrization of volumetric flow rate. The pressure drop vector forms an independent axis with the Control member position vector, s parameter for the 2-D dependent Volumetric flow rate table, q(s,dp) parameter. The values are listed in ascending order and must be greater than 0. Linear interpolation is employed between table data points.

Dependencies

To enable this parameter, set Orifice type to Variable and Orifice parameterization to Tabulated data - Volumetric flow rate vs. control member position and pressure drop.

M-by-N matrix of volumetric flow rates based on independent values of pressure drop and control member position. M and N are the sizes of the corresponding vectors:

  • M is the number of elements in the Pressure drop vector, dp parameter.

  • N is the number of elements in the Control member position vector, s parameter.

Dependencies

To enable this parameter, set Orifice type to Variable and Orifice parameterization to Tabulated data - Volumetric flow rate vs. control member position and pressure drop.

Faults

Option to model an orifice area fault in the block. When a fault occurs, the valve area normally set by the opening parameterization is set based on the value specified in the Opening area when faulted parameter. To add a fault, click the Add fault hyperlink.

Faulted orifice area. You can choose for the orifice to seize at the fully closed or fully open position, or at the valve area when the fault triggers.

Dependencies

To enable this parameter, click the Add fault hyperlink.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2020a

expand all