In the present section a rotating gas pipe with a varying cross section and friction is considered. Although the gas pipe Fanno is a special case of the rotating gas pipe, its governing equations constitute a singular limit to the equations presented here. Therefore, for a gas pipe without rotation and with constant cross section the equations here do not apply. The equivalent of Equation (74) now reads (, Table 10.2 on page 515):
where is the shortest distance from the rotational axis, is the rotational speed and is the local cross section of the pipe. Assuming that the radius of the pipe varies linearly along its length :
one obtains for :
Taking for , , and the mean of their values at the end of the pipe one obtains for the second term in Equation (98) where
Therefore, Equation (98) can now be written as:
or (using partial fractions):
From the above equations one notices that for a non-rotating pipe with constant cross section and and become undeterminate. Therefore, although the gas pipe Fanno is a special case, the present formulas cannot be used for this element type. Integrating Equation (104) leads to:
Its derivatives are:
Focussing on the subsonic range, one has . Therefore, the only term in Equation (108) which may cause problems is the second term. This is because and do not necessarily have the same sign, therefore the logarithm may be undefined, i.e. the function may have a zero in between the ends of the pipe. This boils down to the condition (cf. Equation (98)) that in part of the element the Mach number is increasing and in part decreasing.
In general, convergence of a pipe and friction leads to increasing Mach numbers, divergence and centrifugal forces to decreasing Mach numbers. Sonic conditions should be avoided during the calculation. Especially if sonic conditions are observed at the end of a converged calculation, the result may not be correct.
Although the rotating pipe is adiabatic, i.e. no heat is transported to the envoronment, the total temperature changes due to conversion of rotational energy into heat or vice versa. Centrifugal motion leads to a total temperature increase, centripetal motion to a decrease. The change in total temperature amounts to :
For a linear varying radius integration leads to:
Evaluating this expression for yields the total temperature increase across the pipe. In order to estimate the total pressure increase (e.g. to arrive at sensible initial conditions) one can again use the formulas in  (discarding the friction effect):
Substituting a linear relationship for and the result just derived for leads to:
Integrating finally leads to:
It is important to notice that the rotating gas pipe is to be used in the relative (rotational) system (since the centrifugal force only exists in the rotational system). If used in the absolute system it has to be preceded by an absolute to relative element and followed by a relative to absolute element.
The rotating gas pipe is described by the following parameters (to be specified in that order on the line beneath the *FLUID SECTION, TYPE=ROTATING GAS PIPE card):
Example files: rotpipe1 up to rotpipe7.