Fan (G)

Fan in a gas network

  • Library:
  • Simscape / Fluids / Gas / Turbomachinery

  • Fan (G) block

Description

The Fan (G) block models a rotor mounted on a drive shaft in a gas network. Normal operation occurs when the gas flows from port A to B. Port R is associated with the fan shaft, and port C is associated with the fan casing. The shaft rotational velocity is reported relative to port C.

You can specify the rotational orientation of the fan that generates flow from port A to port B in the Mechanical orientation parameter. Rotation of the fan counter to this setting will not generate any flow.

Parameterization by Flow Rate

When Fan specification is set to 1D tabulated data - static pressure and total efficiency table vs. flow rate, the static pressure differential is linearly interpolated from the Volumetric flow rate vector based on the reference volumetric flow rate, qref, which is a function of the Reference shaft speed, ωref. The static pressure differential is calculated as:

Δp=ω2ωref2ρinρrefΔpref(qref),

where:

  • ρref is the Reference density associated with the tabulated data measurements.

  • ω is the rotor shaft speed, ωR - ωC.

  • ρin is the inlet gas density.

  • Δpref is the Static pressure rise vector, which depends on the reference Volumetric flow rate vector, qref:

    qref=m˙inρinωrefω.

The total efficiency is interpolated from the Total efficiency vector based on the reference volumetric flow rate:

ηT=ηT(qref).

Parameterization by Angular Velocity and Flow Rate

When Fan specification is set to 2D tabulated data - static pressure and total efficiency vs. angular speed and flow rate, the static pressure differential is linearly interpolated from the Static pressure rise table, Dp(omega,q), as a function of the volumetric flow rate, q, and the Shaft speed vector, omega, ω. The static pressure differential is calculated as:

Δp=ρinρrefΔpref(q,ω),

where the Flow rate vector, q, q, is calculated as q=m˙ρin.

The total fan efficiency is linearly interpolated from the Total efficiency table, Eta(omega,q) based on the volumetric flow rate and shaft angular velocity:

ηT=ηT(ω,q).

Parameterization by Angular Velocity and Pressure Differential

When Fan specification is set to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure, the volumetric flow rate is linearly interpolated from the Flow rate table, q(omega,Dp), as a function of the shaft speed, ω, and the reference Static pressure rise vector, Dp, Δpref. The mass flow rate is calculated as:

m˙=ρrefqref(ω,Δpref),

where the reference static pressure rise is calculated as:

Δpref=(ρrefρin)Δp.

and where Δp is the static pressure differential over the fan, pB- pA.

The total efficiency is interpolated from the Total efficiency table, Eta(omega,Dp) based on the shaft speed and reference static pressure differential:

ηT=ηT(ω,Δpref).

When the operating region on your fan map is not rectangular, you can parameterize fan performance by the ratio of the operational to the maximum pressure rise over the fan. When Fan specification is set to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure ratio, the volumetric flow rate is linearly interpolated from the Flow rate table, q(omega,Dp/DpMax), as a function of the Shaft speed vector omega, ω, and the Static pressure rise ratio vector, Dp/DpMax, ΔprefΔpmax.

The mass flow rate is calculated as:

m˙=ρrefΔqref(ω,ΔprefΔpmax),

where:

  • Δpmax is the maximum pressure differential over the fan at a given shaft speed, or the Maximum pressure rise vector. It depends on the Shaft speed vector for maximum pressure rise vector, ωmax.

  • ΔprefΔpmax is the Static pressure rise ratio vector, Dp/DpMax, where Δpref is the pressure differential over the fan adjusted for density:

    Δpref=ρrefρinΔp.

The total fan efficiency is linearly interpolated from the Total efficiency table, Eta(omega,Dp/DpMax) based on the shaft angular velocity and pressure ratio:

ηT=ηT(ω,ΔprefΔpmax).

Shaft Torque

The torque is calculated from the fan total efficiency, ηT:

τ=WFωηT,

where ηT is the ratio of the fluid work to the mechanical work, WFWM.

Note that this is an isentropic definition, and the network gas is assumed to be ideal.

The fluid work is calculated from the change in enthalpy over the fan:

WF=m˙(hT,BhT,A),

where:

  • hT,B is the total enthalpy at port B, or the sum of the enthalpy at B due to the static pressure rise and the enthalpy due to the moving fluid:

    hT,B=hB+vB22,

    where vB is the gas velocity at port B.

  • hT,A is the total enthalpy at port A,

    hT,A=hA+vA22,

    where vA is the gas velocity at port A.

Numerical Smoothing

To maintain the simulation robustness during flow reversal, numerical smoothing is applied to the fluid density and shaft velocity when the shaft angular velocity falls below a specified value.

Inlet Density

When the shaft speed falls below the Shaft speed threshold for flow reversal, the gas density is calculated as a blend of the density at both ports:

ρ=ρA(1+α2)+ρB(1α2),

where:

  • ρA is the density at port A.

  • ρB is the density at port B.

  • α is a smoothing factor:

α=tanh(4m˙m˙Th),

where m˙Th is the threshold mass flow rate:

m˙Th=ωThεFω,

where:

  • ωTh is the Shaft speed threshold for flow reversal.

  • ε is the Mechanical orientation, which is +1 when set to Positive and -1 when set to Negative.

  • Fω is a fraction of the Shaft speed threshold for flow reversal value at which the gas density is calculated.

Shaft Rotation Near Flow Reversal

When the calculated shaft speed falls below the Shaft speed threshold for flow reversal, the shaft angular velocity is smoothed. If the calculated shaft speed falls below 0, the value of the Shaft speed threshold for flow reversal, ωTh, is applied instead:

ω*={wTh,ω<0(1λ)ωTh+λω,ω<ωThω,ωωTh,

where λ, the smoothing function, is a cubic polynomial:

λ=3(ωωTh)22(ωωTh)3.

Mass Balance

Mass is conserved through the fan:

m˙A+m˙B=0,

where:

  • m˙A is the inlet mass flow rate at port A.

  • m˙B is the outlet mass flow rate at port B.

Energy Balance

The energy balance over the block is:

ϕA+ϕB+WF=0,

where:

  • ϕA is the energy flow rate at port A.

  • ϕB is the energy flow rate at port B.

  • WF is the fluid power.

Assumptions and Limitations

  • The fan is assumed to be quasi-steady.

  • The fan performance is modeled in terms of static pressure rise, and not total fan pressure.

  • The network gas is assumed to be ideal.

Ports

Conserving

expand all

Fluid inlet port.

Fluid outlet port.

Port associated with the rotor shaft torque and angular velocity.

Port associated with fan casing torque and angular velocity.

Parameters

expand all

Fan parameterization type. You can choose from four tabulated data options:

  • 1D tabulated data - static pressure and total efficiency vs. flow rate: Model fan performance as a 1D look-up table based on volumetric flow rate.

  • 2D tabulated data - static pressure and total efficiency vs. angular speed and flow rate: Model fan performance as a 2D look-up table based on shaft velocity and static pressure rise.

  • 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure: Model fan performance as a 2D look-up table based on shaft velocity and static pressure rise.

  • 2D tabulated data - flow rate and total efficiency vs. angular speed and pressure ratio: Model fan performance as a 2D look-up table based on shaft velocity and the pressure ratio between the fan static pressure rise and the maximum static pressure rise.

Rotational direction of the fan in normal operation. Flow is generated from port A to B in this setting. If the fan rotates counter to this direction, no flow is generated.

Volumetric flow rate for 1D tabulated parameterization of pressure and efficiency. The vector must have the same elements as the Static pressure rise vector and the Total efficiency vector parameters. The vector elements are listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 1D tabulated data - static pressure and total efficiency vs. flow rate.

Differential pressure for 1D tabulated parameterization of pressure. The vector must have the same elements as the Volumetric flow rate vector parameter. The vector elements are listed in descending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 1D tabulated data - static pressure and total efficiency vs. flow rate.

Total efficiency for 1D tabulated parameterization of efficiency. The vector must have the same elements as the Volumetric flow rate vector parameter. The vector elements must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 1D tabulated data - static pressure and total efficiency vs. flow rate.

Rotor shaft speed that corresponds to the values of the Volumetric flow rate vector.

Dependencies

To enable this parameter, set Fan specification to 1D tabulated data - static pressure and total efficiency vs. flow rate.

Fan angular velocity for 2D tabulated parameterization of pressure and efficiency. The vector must have the same number of elements as the rows of the Static pressure rise table, Dp(omega,q) and Total efficiency table, Eta(omega,q) tables. The vector elements are listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - static pressure and total efficiency vs. angular speed and flow rate.

Volumetric flow rate for 2D tabulated parameterization of pressure and efficiency. The vector must have the same number of elements as the columns of the Static pressure rise table, Dp(omega,q) and Total efficiency table, Eta(omega,q) tables. The vector elements are listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - static pressure and total efficiency vs. angular speed and flow rate.

M-by-N matrix of the static pressure rise at the specified shaft speed and volumetric flow rate. Linear interpolation is employed between table elements. M and N are the sizes of the corresponding vectors:

  • M is the number of vector elements in the Shaft speed vector, omega parameter.

  • N is the number of vector elements in the Flow rate vector, q parameter.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - static pressure and total efficiency vs. angular speed and flow rate.

M-by-N matrix of the total efficiency at the specified shaft speed and volumetric flow rate. Linear interpolation is employed between table elements. M and N are the sizes of the corresponding vectors:

  • M is the number of vector elements in the Shaft speed vector, omega parameter.

  • N is the number of vector elements in the Flow rate vector, q parameter.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - static pressure and total efficiency vs. angular speed and flow rate.

Fan angular velocity for 2D tabulated parameterization of flow rate and efficiency. The vector must have the same number of elements as the rows of the Static pressure rise table, Dp(omega,Dp) and Total efficiency table, Eta(omega,Dp) tables. The vector elements are listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure.

Differential pressure for 2D tabulated parameterization of flow rate and efficiency. The vector must have the same number of elements as the columns of the Flow rate table, q(omega,Dp) and Total efficiency table, Eta(omega,Dp) tables. The vector elements are listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure.

M-by-N matrix of the volumetric flow rates at the specified shaft speed and differential pressure. Linear interpolation is employed between table elements. M and N are the sizes of the corresponding vectors:

  • M is the number of vector elements in the Shaft speed vector, omega parameter.

  • N is the number of vector elements in the Static pressure rise vector, Dp parameter.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure.

M-by-N matrix of the total efficiency at the specified shaft speed and differential pressure. Linear interpolation is employed between table elements. M and N are the sizes of the corresponding vectors:

  • M is the number of vector elements in the Shaft speed vector, omega parameter.

  • N is the number of vector elements in the Static pressure rise vector, Dp parameter.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure.

Angular velocity associated with the fan maximum pressure differential. The vector must have the same number of elements as the Maximum pressure rise vector. The vector elements are listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure ratio.

Maximum differential pressure for parameterization by pressure ratio. The vector must have the same number of elements as the Shaft speed vector for maximum pressure rise vector. The vector elements are listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure ratio.

Fan angular velocity for 2D tabulated parameterization of flow rate and efficiency. The vector must have the same number of elements as the rows of the Flow rate table, q(omega,Dp/DpMax) and Total efficiency table, Eta(omega,Dp/DpMax) tables. The vector elements are listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure ratio.

Differential pressure ratio for 2D tabulated parameterization of flow rate and efficiency. The vector must have the same number of elements as the columns of the Flow rate table, q(omega,Dp/DpMax) and Total efficiency table, Eta(omega,Dp/DpMax) tables. The vector elements are listed in ascending order. The vector does not need to be the same size as the Maximum pressure rise vector.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure ratio.

M-by-N matrix of the volumetric flow rates at the specified shaft speed and differential pressure ratio. Linear interpolation is employed between table elements. M and N are the sizes of the corresponding vectors:

  • M is the number of vector elements in the Shaft speed vector, omega parameter.

  • N is the number of vector elements in the Static pressure rise ratio vector, Dp/DpMax parameter.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure ratio.

M-by-N matrix of the total efficiency at the specified shaft speed and differential pressure ratio. Linear interpolation is employed between table elements. M and N are the sizes of the corresponding vectors:

  • M is the number of vector elements in the Shaft speed vector, omega parameter.

  • N is the number of vector elements in the Static pressure rise ratio vector, Dp/DpMax parameter.

Dependencies

To enable this parameter, set Fan specification to 2D tabulated data - flow rate and total efficiency vs. angular speed and static pressure ratio.

Gas density at which the volumetric flow rate, differential pressure, and shaft speed data were collected.

Threshold value for flow reversal. Below this value, the shaft speed is maintained at the Shaft speed threshold for flow reversal and a smoothing function is applied to the flow rate. The shaft does not generate flow below this value.

Cross-sectional area of the fan inlet.

Cross-sectional area of the fan outlet.

Extended Capabilities

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

Introduced in R2018b