Main Content

Orifice (MA)

R2026b

Orifice in a moist air network

Since R2025a

  • Block icon

Libraries:
Simscape / Fluids / Moist Air / Valves & Orifices

Description

The Orifice (MA) block models pressure loss due to a constant or variable area orifice in a moist air network. The block calculates fluid properties inside the valve from inlet conditions. There is no heat exchange between the fluid and the environment, and therefore phase change inside the orifice only occurs due to a pressure drop or a propagated phase change from another part of the model.

The orifice can be constant or variable. When the Orifice type parameter is Variable, the physical signal at port S sets the position of the control member, which opens and closes the orifice.

Orifice Parameterizations

The block behavior depends on the Orifice parametrization parameter:

  • Cv flow coefficient — The flow coefficient Cv determines the block parameterization. The flow coefficient measures the ease with which the moist air can flow when driven by a certain pressure differential.

  • Kv flow coefficient — The flow coefficient Kv, where Kv=0.865Cv, determines the block parameterization. The flow coefficient measures the ease with which the moist air can flow when driven by a certain pressure differential.

  • Sonic conductance — The sonic conductance of the resistive element at steady state determines the block parameterization. The sonic conductance measures the ease with which the moist air can flow when choked, which is a condition in which the flow velocity is at the local speed of sound. Choking occurs when the ratio between downstream and upstream pressures reaches a critical value known as the critical pressure ratio.

  • Orifice area — The size of the flow restriction determines the block parametrization.

Variable Orifice

When you set Orifice type to Variable and Opening characteristic to Linear, the block uses the input at port S to calculate the orifice opening,

λ=ε(1−fleak)(S−Smin)ΔS+fleak,

where S is the value of the signal at port S, and Smin and ΔS are the values of the Control member position at closed orifice and Control member travel between closed and open orifice parameters, respectively.

When you set Orifice type to Variable and Opening characteristic to Tabulated, the block interpolates the orifice characteristics from the Control member position vector parameter and the input at port S.

For a variable orifice, the flow rate in the orifice depends on the Opening characteristic parameter:

  • Linear — The measure of flow capacity is proportional to the control signal at port S. As the control signal increases, the measure of flow capacity scales from the specified minimum to the specified maximum.

    When you set Orifice parameterization to Cv flow coefficient or Kv flow coefficient, the block treats the parameter xT pressure differential ratio factor at choked flow as a constant independent of the control signal.

  • Tabulated — The block calculates the measure of flow capacity as a function of the control signal at port S. This function uses a one-dimensional lookup table.

    When you set Orifice parameterization to Cv flow coefficient or Kv flow coefficient, the block treats the parameter xT pressure differential ratio factor at choked flow as a function of the control signal.

Momentum Balance

The block equations depend on the Orifice parametrization parameter.

Cv Flow Coefficient Parameterization

When you set Orifice parametrization to Cv flow coefficient, the mass flow rate is

m˙=CvN6Y(pin−pout)vin,

where:

  • Cv is the flow coefficient.

  • N6 is a constant equal to 27.3 when mass flow rate is in kg/hr, pressure is in bar, and density is in kg/m3.

  • Y is the expansion factor.

  • pin is the inlet pressure.

  • pout is the outlet pressure.

  • vin is the inlet specific volume.

The expansion factor is

Y=1−pin−pout3pinFγxT,

where:

  • Fγ is the ratio of the isentropic exponent to 1.4.

  • xT is the value of the xT pressure differential ratio factor at choked flow parameter.

The block smoothly transitions to a linearized form of the equation when the pressure ratio, pout/pin, rises above the value of the Laminar flow pressure ratio parameter, Blam,

m˙=CvN6Ylam1pavg(1−Blam)vavg(pin−pout),

where:

Ylam=1−1−Blam3FγxT.

When the pressure ratio, pout/pin, falls below 1−FγxT, the orifice becomes choked and the block uses the equation

m˙=23CvN6FγxTpinvin.

Kv Flow Coefficient Parameterization

When you set Orifice parametrization to Kv flow coefficient, the block uses the same equations as the Cv flow coefficient parametrization, but replaces Cv with Kv using the relation Kv=0.865Cv.

Sonic Conductance Parameterization

When you set Orifice parametrization to Sonic conductance, the mass flow rate is

m˙=CρrefpinTrefTin[1−(poutpin−Bcrit1−Bcrit)2]m,

where:

  • C is the sonic conductance.

  • Bcrit is the critical pressure ratio.

  • m is the value of the Subsonic index parameter.

  • Tref is the value of the ISO reference temperature parameter.

  • ρref is the value of the ISO reference density parameter.

  • Tin is the inlet temperature.

The block smoothly transitions to a linearized form of the equation when the pressure ratio, pout/pin, rises above the value of the Laminar flow pressure ratio parameter Blam,

m˙=CρrefTrefTavg[1−(Blam−Bcrit1−Bcrit)2]m(pin−pout1−Blam).

When the pressure ratio, pout/pin, falls below the critical pressure ratio, Bcrit, the orifice becomes choked and the block switches to the equation

m˙=CρrefpinTrefTin.

The Sonic conductance setting of the Orifice parameterization parameter is for pneumatic applications. If you use this setting for moist air with high levels of trace gasses or are modeling a fluid other than air, you may need to scale the sonic conductance by the square root of the mixture specific gravity.

Orifice Area Parameterization

When you set Orifice parametrization to Orifice area, the mass flow rate is

m˙=CdAorifice2γγ−1pin1vin(poutpin)2γ[1−(poutpin)γ−1γ1−(AorificeAport)2(poutpin)2γ],

where:

  • Cd is the value of the Discharge coefficient parameter.

  • γ is the isentropic exponent.

The block smoothly transitions to a linearized form of the equation when the pressure ratio, pout/pin, rises above the value of the Laminar flow pressure ratio parameter, Blam,

m˙=CdAorifice2γγ−1pavg2−γγ1vavgBlam2γ[1− Blamγ−1γ1−(AorificeAport)2Blam2γ](pinγ−1γ−poutγ−1γ1−Blamγ−1γ).

When the pressure ratio, pout/pin, falls below(2γ+1)γγ−1, the orifice becomes choked and the block uses the equation

m˙=CdAorifice2γγ+1pin1vin1(γ+12)2γ−1−(AorificeAport)2.

Mass Balance

The block conserves mass through the valve

m˙A+m˙B=0m˙wA+m˙wB=0m˙gA+m˙gB=0m˙dA+m˙dB=0

where ṁ is the mass flow rate and the subscript w denotes water vapor, the subscript g denotes trace gas, and the subscript d denotes water droplets.

Energy Balance

Energy is conserved in the orifice,

ΦA+ΦB=0,

where:

  • ΦA is the energy flow at port A.

  • ΦB is the energy flow at port B.

Assumptions and Limitations

  • There is no heat exchange between the valve and the environment.

Ports

Conserving

expand all

Moist air conserving port associated with the fluid entry or exit port.

Programmatic Use

Port: A

Moist air conserving port associated with the fluid entry or exit port.

Programmatic Use

Port: B

Input

expand all

Control member position that sets the orifice opening.

Dependencies

To enable this port, set Orifice type to Variable.

Programmatic Use

Port: S

Parameters

expand all

Type of orifice. When you set this parameter to Variable, the orifice area varies according to the input signal received at port S.

Programmatic Use

Parameter: orifice_type
Values: "foundation.enum.constant_variable.variable" | "foundation.enum.constant_variable.constant"

Method the block uses to calculate the mass flow rate from the pressure difference across the orifice or the pressure difference from the mass flow rate.

Programmatic Use

Parameter: orifice_parameterization
Values: "fluids.moist_air.valves_orifices.enum.OrificeParameterization.Cv" | "fluids.moist_air.valves_orifices.enum.OrificeParameterization.Kv" | "fluids.moist_air.valves_orifices.enum.OrificeParameterization.SonicConductance" | "fluids.moist_air.valves_orifices.enum.OrificeParameterization.Area"

Method by which to convert the control signal specified at port S to the chosen measure of flow capacity.

Dependencies

To enable this parameter, set Orifice type to Variable.

Programmatic Use

Parameter: opening_characteristic
Values: "fluids.moist_air.valves_orifices.enum.OpeningCharacteristics.Linear" | "fluids.moist_air.valves_orifices.enum.OpeningCharacteristics.Tabulated"

Control member offset, or the value at S when the orifice is fully closed.

Dependencies

To enable this parameter, set Orifice type to Variable and Opening characteristic to Linear.

Programmatic Use

Parameter: S_min

Distance the control member travels between a closed and open orifice. When you set Opening orientation to Positive control member displacement opens 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. When you set Opening orientation to Negative control member displacement opens orifice, the orifice is fully open at the difference between 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 Opening characteristic to Linear.

Programmatic Use

Parameter: del_S

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

Dependencies

To enable this parameter, set Orifice type to Variable, and Opening characteristic to Linear.

Programmatic Use

Parameter: open_orientation
Values: "fluids.moist_air.valves_orifices.enum.OrificeOrientation.Positive" | "fluids.moist_air.valves_orifices.enum.OrificeOrientation.Negative"

Value of the constant Cv flow coefficient. This parameter measures the ease with which the vapor traverses the resistive element when driven by a pressure differential.

Dependencies

To enable this parameter, set Orifice type to Constant and Orifice parameterization to Cv flow coefficient.

Programmatic Use

Parameter: Cv_constant

Value of the Cv flow coefficient when the orifice is fully open and the area available for flow is at a maximum. This parameter measures the ease with which the vapor traverses the resistive element when driven by a pressure differential.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Cv flow coefficient, and Opening characteristic to Linear.

Programmatic Use

Parameter: Cv_max

Vector of control member positions for the tabulated orifice parameterizations. The vector elements correspond one-to-one to the values in the Orifice area vector, Cv flow coefficient vector, or Kv flow coefficient vector parameters.

Dependencies

To enable this parameter, set Orifice type to Variable and Opening characteristic to Tabulated.

Programmatic Use

Parameter: S_Cv_TLU

Parameter: S_Kv_TLU

Parameter: S_C_TLU

Parameter: S_orifice_area_TLU

Vector of Cv flow coefficients. Each coefficient corresponds to a value in the Control member position vector parameter. This parameter measures the ease with which the vapor traverses the resistive element when driven by a pressure differential. The size of the vector must be the same as the Control member position vector parameter.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Cv flow coefficient, and Opening characteristic to Tabulated.

Programmatic Use

Parameter: Cv_TLU

Ratio between the inlet pressure, pin, and the outlet pressure, pout, defined as (pin−pout)/pin where choking first occurs.

Dependencies

To enable this parameter, Orifice parameterization to Cv flow coefficient or Kv flow coefficient.

Programmatic Use

Parameter: xT_Cv

Parameter: xT_Kv

Value of the constant Kv flow coefficient. This parameter measures the ease with which the vapor traverses the resistive element when driven by a pressure differential.

Dependencies

To enable this parameter, set Orifice type to Constant and Orifice parameterization to Kv flow coefficient.

Programmatic Use

Parameter: Kv_constant

Value of the Kv flow coefficient when the orifice is fully open and the area available for flow is at a maximum. This parameter measures the ease with which the vapor traverses the resistive element when driven by a pressure differential.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Kv flow coefficient, and Opening characteristic to Linear.

Programmatic Use

Parameter: Kv_max

Vector of Kv flow coefficients. Each coefficient corresponds to a value in the Control member position vector parameter. This parameter measures the ease with which the vapor traverses the resistive element when driven by a pressure differential. The size of the vector must be the same as the Control member position vector parameter.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Kv flow coefficient, and Opening characteristic to Tabulated.

Programmatic Use

Parameter: Kv_TLU

Ratio, measured at the onset of choking, of the mass flow rate through the resistive element to the product of the upstream pressure and mass density at standard conditions as defined in ISO 8778. This parameter determines the maximum flow rate allowed at a given upstream pressure.

Dependencies

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

Programmatic Use

Parameter: C_constant

Value of the sonic conductance when the control signal specified at port S is 1 and cross-sectional area available for flow is at a maximum.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Sonic conductance, and Opening characteristic to Linear.

Programmatic Use

Parameter: C_max

Pressure ratio at which flow first begins to choke and the flow velocity reaches its maximum, given by the local speed of sound. The pressure ratio is the outlet pressure divided by inlet pressure.

Dependencies

To enable this parameter, set either:

  • Orifice type to Constant and Orifice parameterization to Sonic conductance.

  • Orifice type to Variable, Orifice parameterization to Sonic conductance, and Opening characteristic to Linear.

Programmatic Use

Parameter: B_crit_constant

Parameter: B_crit_linear

Empirical value used to more accurately calculate the mass flow rate in the subsonic flow regime.

Dependencies

To enable this parameter, set Orifice parameterization to Sonic conductance.

Programmatic Use

Parameter: m

Temperature at standard reference atmosphere, defined as 293.15 K in ISO 8778.

You only need to adjust the ISO reference parameter values if you are using sonic conductance values that are obtained at difference reference values.

Dependencies

To enable this parameter, set Orifice parameterization to Sonic conductance.

Programmatic Use

Parameter: T_ref_C

Density at standard reference atmosphere, defined as 1.185 kg/m3 in ISO 8778.

You only need to adjust the ISO reference parameter values if you are using sonic conductance values that are obtained at difference reference values.

Dependencies

To enable this parameter, set Orifice parameterization to Sonic conductance.

Programmatic Use

Parameter: rho_ref_C

Vector of sonic conductances inside the resistive element. Each conductance corresponds to a value in the Control member position vector parameter. The size of the vector must be the same as the Control member position vector parameter.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Sonic conductance, and Opening characteristic to Tabulated.

Programmatic Use

Parameter: C_TLU

Vector of critical pressure ratios at which the flow first chokes, with each critical pressure ratio corresponding to a value in the Control member position vector parameter. The critical pressure ratio is the fraction of downstream-to-upstream pressures at which the flow velocity reaches the local speed of sound. The size of the vector must be the same as the Control member position vector parameter.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Sonic conductance, and Opening characteristic to Tabulated.

Programmatic Use

Parameter: B_crit_TLU

Cross-sectional area of the orifice opening.

Dependencies

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

Programmatic Use

Parameter: orifice_area_constant

Orifice area when it is fully open.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Orifice area, and Opening characteristic to Linear.

Programmatic Use

Parameter: orifice_area_max

Vector of orifice area values for the tabulated parameterization of the orifice area. The values in this vector correspond one-to-one with the elements in the Control member position vector parameter. The first element of this vector is the leakage area.

Dependencies

To enable this parameter, set Orifice type to Variable, Orifice parameterization to Orifice area, and Opening characteristic to Tabulated.

Programmatic Use

Parameter: orifice_area_TLU

Ratio of actual flow rate to ideal flow rate. This parameter accounts for real-world losses that are not captured in the orifice equation.

Dependencies

To enable this parameter, set Orifice parameterization to Orifice area.

Programmatic Use

Parameter: Cd

Ratio of the flow rate of the orifice when it is closed to when it is open.

Dependencies

To enable this parameter, set Orifice type to Variable and Opening characteristic to Linear.

Programmatic Use

Parameter: leakage_fraction

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 parameter to a nonzero value less than one to increase the stability of your simulation in these regions.

Dependencies

To enable this parameter, set Orifice type to Variable and Opening characteristic to Linear.

Programmatic Use

Parameter: smoothing_factor

Ratio of the orifice outlet pressure to orifice inlet pressure at which the fluid transitions between the laminar and turbulent regimes. The pressure loss corresponds to the mass flow rate linearly in laminar flows and quadratically in turbulent flows.

Programmatic Use

Parameter: B_lam

Area of the orifice ports A and B.

Programmatic Use

Parameter: area

References

[1] ISO 6358-3. "Pneumatic fluid power – Determination of flow-rate characteristics of components using compressible fluids – Part 3: Method for calculating steady-state flow rate characteristics of systems". 2014.

[2] IEC 60534-2-3. "Industrial-process control valves – Part 2-3: Flow capacity – Test procedures". 2015.

[3] ANSI/ISA-75.01.01. "Industrial-Process Control Valves – Part 2-1: Flow capacity – Sizing equations for fluid flow underinstalled conditions". 2012.

[4] P. Beater. Pneumatic Drives. Springer-Verlag Berlin Heidelberg. 2007.

Extended Capabilities

expand all

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

Version History

Introduced in R2025a