Main Content

Orifice (TL)

Constant-area or variable-area orifice in a thermal liquid system

Since R2022a

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

Description

The Orifice (TL) 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.

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 there is 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 parameter.

  • Aorifice is the instantaneous orifice open area.

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

  • ρ¯ is the average fluid density.

PRloss and Δpcrit are calculated in the same manner for constant and variable orifices.

This approximation for m˙ and the Local Resistance (TL) 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, when you set 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 at closed orifice parameter.

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

  • Amax is the Maximum orifice area parameter.

  • Aleak is the Leakage area parameter.

  • ε is the Opening orientation parameter.

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.

When the orifice 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 opening area between Aleak and Amax. For more information, see Numerical Smoothing.

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 parameter, if the physical signal at port S is larger than the last element of the Control member position vector parameter.

  • Aleak, the first element of the Orifice area vector parameter, if the physical signal at port S is smaller than the first element of the Control member position vector parameter.

  • The linearly interpolated value of the Orifice area vector parameter if the calculated area is between the limits of the first and last element of the Control member position vector parameter.

Aorifice 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 nearest extrapolation with respect to control member position and linear extrapolation with respect to pressure drop.

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.

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

Tabulated data - Mass flow rate vs. control member position and pressure drop — Calculate the mass flow rate directly from the control member position and the pressure drop across the valve. The relationship between the three variables can be nonlinear and it is given by the tabulated data in the Control member position vector, s, Pressure drop vector, dp, and Mass flow rate table, mdot(s,dp) block parameters:

m˙Tab=ρAvgρRefm˙(ΔS,Δp),

where m˙ is the tabulated form of the mass flow rate, a function of the control member position, h, and of the pressure drop across the orifice, Δp. The mass flow rate is adjusted for temperature and pressure by the ratio ρAvg/ρRef, where ρAvg is the average fluid density in the orifice and ρref is the reference density for the values of the Reference inflow temperature and Reference inflow pressure parameters.

Pressure Loss

Pressure loss describes the reduction of pressure in the valve due to a decrease in area. The block calculates the pressure loss term, PRloss 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 parameter, Recrit, which is the point of transition between laminar and turbulent flow in the fluid:

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

Energy Balance

The block treats the orifice as an adiabatic component. No heat exchange can occur between the fluid and the wall that surrounds it. No work is done on or by the fluid as it traverses from inlet to outlet. With these assumptions, energy can flow by advection only, through ports A and B. By the principle of conservation of energy, the sum of the port energy flows must always equal zero:

ϕA+ϕB=0,

where ϕ is defined as the energy flow rate into the orifice through one of the ports (A or B).

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).

    • When Orifice parameterization is set to Tabulated data - Mass flow rate vs. control member position and pressure drop, the orifice freezes at the first row of the Mass flow rate table, mdot(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).

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

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

Examples

Ports

Input

expand all

Instantaneous displacement of the valve control member.

Conserving

expand all

Thermal liquid conserving port associated with the opening through which the flow can enter or exit the valve.

Thermal liquid conserving port associated with the opening through which the flow can enter or exit the valve.

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.

  • Orifice area—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.

  • Tabulated data - Mass 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 Mass flow rate vector and the Pressure drop vector dataset.

When you set Orifice type to Variable, there are four 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.

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

Method by which to model the opening characteristics of the orifice. The default setting prescribes a linear relationship between the orifice opening area and the orifice opening. The alternative settings allow for a general, nonlinear relationship to be specified in tabulated form, in one case between the opening area and the orifice opening, in the other case between the mass flow rate and both the orifice opening and the pressure drop between the ports.

Dependencies

To enable this parameter, set Orifice type to Constant.

When you set Orifice type to Variable, there are four 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.

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

Dependencies

To enable this parameter, set Orifice type to Variable.

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 parameter, 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 parameter. The volumetric flow rate is interpolated directly from the provided Volumetric flow rate vector parameter, 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 mass 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 parameter. The mass flow rate is interpolated directly from the provided Mass flow rate vector parameter, which depends on the Pressure drop vector parameter.

Dependencies

To enable this parameter, set Orifice type to Constant and Orifice parameterization to Tabulated data - Mass 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 and set Orifice parameterization to Linear – Area vs. control member position.

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 parameters.

Dependencies

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

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 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 parameter.

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 parameter. 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 parameter. 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 parameter, 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.

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.

Dependencies

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

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 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 or Tabulated data - Mass 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.

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 or Tabulated data - Mass 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.

Mass 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 - Mass flow rate vs. control member position and pressure drop.

Nominal inlet temperature, with reference to absolute zero, at which to specify the tabulated data. This parameter is used to adjust the mass flow rate according to the temperature measured during simulation.

Dependencies

To enable this parameter, set Orifice parameterization to Tabulated data - Mass flow rate vs. opening and pressure drop.

Nominal inlet pressure, with reference to absolute zero, at which to specify the tabulated data. This parameter is used to adjust the mass flow rate according to the pressure measured during simulation.

Dependencies

To enable this parameter, set Orifice parameterization to Tabulated data - Mass flow rate vs. opening and pressure drop.

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.

Faults

Option to model a 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 R2022a

expand all