Fan in a gas network
Simscape / Fluids / Gas / Turbomachinery

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.
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:
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:
The total efficiency is interpolated from the Total efficiency vector based on the reference volumetric 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:
where the Flow rate vector, q, q, is calculated as
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:
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:
where the reference static pressure rise is calculated as:
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:
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, .
The mass flow rate is calculated as:
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.
is the Static pressure rise ratio vector, Dp/DpMax, where Δpref is the pressure differential over the fan adjusted for density:
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:
The torque is calculated from the fan total efficiency, ηT:
where ηT is the ratio of the fluid work to the mechanical work,
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:
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:
where vB is the gas velocity at port B.
hT,A is the total enthalpy at port A,
where vA is the gas velocity at port A.
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.
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:
where:
ρA is the density at port A.
ρB is the density at port B.
α is a smoothing factor:
where Th is the threshold mass flow rate:
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.
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:
where λ, the smoothing function, is a cubic polynomial:
Mass is conserved through the fan:
where:
A is the inlet mass flow rate at port A.
B is the outlet mass flow rate at port B.
The energy balance over the block is:
where:
ϕA is the energy flow rate at port A.
ϕB is the energy flow rate at port B.
WF is the fluid power.
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.