The analytical solution of the governing equations proceeds as follows. Starting from the coupled momentum (Equation (7)) and energy (Equation (3)) equations, several auxiliary constants (Equation (8)) are introduced to reduce the number of parameters. The system is then reformulated as a pair of first-order differential equations in v and T. Through substitution and rearrangement, a single differential equation in v(z) is obtained (Equation (17)). The key steps are: (i) variable transformation z* (Equation (18)); (ii) introduction of an auxiliary variable u (Equation (22)) to linearize the equation; and (iii) analytical integration using standard methods for first-order linear ODEs. This procedure yields closed-form implicit solutions (Equations (49)–(54)) that describe the variation in specific volume along the pipeline for different flow regimes.
3.1. Solution of the Flow Governing Equations for an Arbitrary Constant Heat Flux q = const
We combine the constants in Equation (7) as follows:
Using these, Equations (3) and (7) can be rewritten as:
Integrating the expression for
yields:
Substituting the expressions for
and
into the momentum Equation (7) and rearranging, we obtain the following differential equation:
To simplify this expression, we introduce the following constants:
This corresponds to Equation (11)
Let us define a new variable:
Using this new notation, the differential equation becomes:
Thus, the equation becomes:
Let us introduce a new variable, which is an auxiliary variable needed to solve the equation and has no physical meaning:
From this it follows that:
and therefore:
Substituting these expressions into Equation (17), we obtain:
Rearranging Equation (25):
This is a linear inhomogeneous differential equation of the first order with variable coefficients, the general solution of which is as follows:
The integrals given in Equation (27) are analyzed in detail below. Let us first look at the more general form
This is a linear inhomogeneous differential equation of the first order. If both sides are multiplied by
, the left-hand side becomes a total derivative, that is:
This allows the integral to be evaluated directly.
Applying Equation (30) to Equation (26) yields the following expression:
We denote the integral as:
To calculate the inner integral of the exponential, we apply the partial fraction decomposition:
The closed-form of the integral is:
It should be noted that the constant of integration is not explicitly written out here, as in practical application it can be contained in the constant C in Equation (31). In the following, we analyze the possible cases on the basis of the sign of .
From Equation (34), the integral in (32) takes the form
This integral can be easily evaluated using the substitution
since
If we apply the trigonometric linearization formula, we get:
As agreed, subscripts of
I,
u, and
z refer to the corresponding case number. After back-substitution, we obtain:
Substituting into (30), the general solution for differential Equation (26) in Case 1 is as follows:
In this case, the integral becomes
Using the substitution
, it follows that
, which transforms the integral into the form:
Noting that
and
, by applying the hyperbolic linearization equation, we obtain:
If we insert this result into (30), we obtain the general solution for the differential Equation (26) in Case 2:
It is worth noting that in both cases where , the calculations require extending into the complex number domain. This immediately raises the question of how this will affect the actual solution, as the specific volume cannot take on complex values. The analysis addressing this issue is discussed in Case 3.
Let
, where
. The integral (32) then becomes:
Back-substitution leads to the general solution of (26) for Case 3:
It is worth noting that Case 3. essentially follows from Case 1, as the inequality
automatically holds. The Maclaurin series for the
function:
is uniformly convergent for
In accordance with Equation (45), it can be written as:
It can be verified that the infinite series on the right-hand side corresponds to the Maclaurin series expansion of the
function. Therefore, the following identity holds:
can be established, confirming that Case 3. is indeed a consequence of Case 1:
Case 3 represents the transition regime in which dissipative effects dominate the flow behaviour. Although the mathematical form of the differential equation introduces complex-valued components, the physically measurable quantities—such as pressure, temperature, and specific volume—remain real-valued. The appearance of complex terms indicates that frictional dissipation and thermal interaction have become comparable in magnitude to the thermodynamic driving forces. This regime corresponds to the transition between subsonic and near-sonic flow, where energy losses due to friction and heat transfer strongly influence stability and transport efficiency. Thus, the complex solution does not represent non-physical behaviour but rather highlights the critical operating domain in which the flow becomes increasingly dominated by dissipative mechanisms.
Next, we return to the original variables to derive the general solution for . Based on the structure of the previous results, we observe that a closed-form solution can only be given for the inverse function . The general solutions, omitting intermediate steps, are as follows:
In the following, we deal with the derivation of a solution that satisfies the boundary condition . To this end, Equations (49)–(51) are substituted into, and the constants are subsequently determined. Omitting intermediate steps, the resulting expressions for the pipeline length as a function of specific volume are as follows:
The analytical solution yields three distinct branches (Equations (49)–(51)), each corresponding to a different physical flow regime:
Trigonometric (subcritical) regime: representing subsonic flow where thermodynamic parameters vary smoothly, and the flow remains stable.
Hyperbolic (supercritical) regime: , associated with near-sonic conditions and a strong nonlinear response of specific volume and velocity.
Complex (transition) regime: , corresponding to dissipative or friction-dominated flow characterized by significant energy loss and heat exchange.
These branches are now explicitly related to the physical nature of the flow—subsonic, near-sonic, and friction-dominated transport. To enhance interpretability,
Figure 3 has been extended to include the variation in specific volume
v(
z) for each case, clearly illustrating their different behaviours.
The variables , and represent the pipeline length, and for given numerical values of these variables, the corresponding specific volume can be determined. The equations are implicit with respect to the specific volume . The problem can also be inverted: for a prescribed specific volume in the flow, the pipeline length at which this volume is realized can be calculated. A significant advantage of the presented analytical formulas is their generality: both isothermal and adiabatic flow regimes can be derived from them. Specifically, by setting the heat flux , the solution for adiabatic flow is obtained.
Unified Sensitivity Analysis of the Analytical Solutions
Equations (52)–(54) provide closed-form inverse solutions for three distinct regimes defined by the sign and magnitude of and the product :
Trig. (Case 1): —subsonic, weakly dissipative;
Hyp.-cosh (Case 2): —near-critical with strong geometric/friction effect;
Hyp.-sinh (Case 3): —heated, friction-dominated (dissipation-controlled).
All branches share the coefficient definitions given by Equations (13)–(16) together with Equation (8).
Parameter influence is organized by four independent, interpretable groups:
Π1 condenses friction, geometry, and inertia versus line heating; Π2 incorporates real-gas and specific-heat ratio effects; Π3 combines inlet thermodynamic head and inlet kinetic head against heating; and Π4 measures non-dimensional axial heating strength.
The primary observables are the normalized inverse length and state profiles:
Local, normalized sensitivities with respect to primitive inputs
are defined for
as
Evaluation proceeds by the chain rule through the common coefficient set:
Closed-form expressions depend on the branch (arcsin/arcosh/asinh kernels); the algebraic forms are lengthy; so, results are reported as trends (signs, relative magnitudes) and were cross-validated numerically on dense -grids for representative parameter sets. The chosen definition makes directly comparable across regimes and along the pipe: means a 1% increase in x produces (locally) a 1% increase in Z for fixed .
Case 1—Trigonometric branch
Friction/diameter. Since (or decreasing D) steepens the arcsin-term and increases curvature of large, with scaled by .
Heating: increasing reduces and flattens Z(ξ), leading to of modest magnitude near the inlet (ξ→1) and stronger impact mid-span.
Mass flow/inertia: enters . Larger increases inertial head, shortening the normalized length: .
Real-gas and κ: Z < 1 lowers and enhances coupling; typically, (smaller Z → stronger effective dissipation → longer dimensional length for a given v-change). Higher κ (weaker Cp/Cv gap) mildly reduces heating leverage: and small.
Case 2—Hyperbolic-cosh branch
Threshold amplification: Sensitivities peak near the transition due to the arcosh kernel: and attain local maxima (transition-induced stiffness).
Mass flow: larger (hence larger G) increases and , compressing with greater magnitude than in Case 1.
Thermal bias: ooling (↓) pushes the solution deeper into Case 2; heating relaxes it toward Case 1, so is possible close to the threshold, but typically away from it.
Gas model: near-critical sensitivity to Z increases, is largest around the threshold and decays downstream.
Case 3—Hyperbolic-sinh branch
Let . The kernel produces monotone, heating-dominated behaviour:
Heating: ↑ strengthens and reduces , flattening with the largest magnitude among the three branches.
Friction/diameter. Because is negative, increases in λ (or decreases in D) still lengthen the required normalized distance: , but is smaller than in Case 2 and comparable to Case 1 mid-span.
Mass flow: (inertial stabilization) with weak axial variation.
Real-gas and κ: the impact of Z, κ is mediated primarily via and ; signs follow Cases 1–2 but magnitudes remain moderate due to dominance of .
For decision support, path-integrated importance was quantified by
With uniform unless noted. Across broad parameters sweeps the following robust ranking emerged:
Case 1:
Case 2:
Case 3:
These orderings were insensitive to moderate changes of and inlet kinetic head embedded in
Geometry vs. operation: when operation is close to (transition zone), geometric/frictional tolerances dominate. Moving the design point away from this threshold (by increasing D or gentle heating ) materially reduces sensitivity.
Heating-dominated lines: In Case 3, line heating control () is the primary lever for profile shaping; friction and become secondary.
Measurement priorities: If a single parameter must be characterized with higher fidelity, choose λ (or equivalently surface condition/roughness) in Cases 1–2, and in Case 3.
Model selection: Real-gas effects (via Z) are more consequential near the threshold; elsewhere they contribute second-order corrections.
3.3. Linking Special Flow Types to Polytropic Flow
In the following, we present the derivation of adiabatic, isothermal and isentropic flows from the previously introduced polytropic flow model. We use an example to demonstrate and compare the results.
The adiabatic flow represents an extreme case of polytropic flow where no heat is added or removed from the system; mathematically, this corresponds to . Both isothermal and isentropic flow can theoretically be considered as special cases of polytropic flow. In order to achieve an isothermal flow, heat must be continuously supplied to the pipe at a variable heat supply rate. Isentropic flow could be achieved by dissipating the frictional heat generated during the process, which, as will be shown, would also require a varying rate of heat removal along the pipe. These are theoretical assumptions, but they are very useful for comparing and evaluating different flow regimes.
3.3.1. Adiabatic Flow
Adiabatic flow can be derived from polytropic flow by setting
in Equation (2), which corresponds to
in Equation (8). In our previous works [
16], a solution for the adiabatic flow calculation formula was obtained from Equations (1) and (6), given as:
The validity of Equation (63) requires perfect thermal insulation; no heat is added along the pipe at any z coordinate (). However, the equation takes into account internal heat generation caused by turbulence and friction within the flow.
3.3.2. Isothermal Flow
The calculation formula for the isothermal flow can be derived from the basic polytropic flow equations by setting
in Equation (3). This shows that an isothermal flow can be realized in practice by adding an amount of energy to the flow that corresponds to the increase in kinetic energy caused by the expansion of the specific volume.
Since
, the variation in velocity along the pipe can also be expressed as:
Equation (64) can be solved iteratively: an initial estimate of is substituted into the right-hand side of the equation to calculate a new, more accurate value of . This process is repeated until the desired accuracy is achieved.
In Equation (65), the substitution
must be applied. It should be noted that
and, since
, the local speed of sound does not change along the pipe, thus
.
By introducing the Mach number, we can determine the pipe length required for the flow to accelerate to the speed of sound:
In an isothermal flow, the amount of heat added is that which increases the kinetic energy of the gas without changing the temperature:
Total energy at the outlet:
Total energy at the inlet:
The required energy is the difference between the outlet and inlet energies. Since the flow is isothermal,
therefor:
3.3.3. Isentropic Flow
An isentropic flow can be achieved by removing the heat generated by friction from the flowing medium. In the basic equations formulated, the three equation has the following form:
Total differential of entropy:
Using Equation (76) in Equation (72), we get:
Then, Equation (72) becomes:
Using Equations (9) and (78):
After rearrangement and using Equations (10), (68), and (75):
In Equations (80) and (81), we substitute the isentropic relations:
After substitution and variable separation, Equation (80) becomes:
Specific volume change along the pipe:
Equation (73) can be used to determine the specific volume change along the pipe. If you know the specific volume, you can calculate the frictional heat generated that must be dissipated for the flow to remain isentropic.
Frictional heat:
or equivalently:
This must equal the removed heat. Since frictional heat varies along the pipe, the removed heat is not constant, and hence the parameter
in Equation (81) cannot remain constant
The calculations can be verified by comparing Equations (80) and (81):
To calculate , the substitution from Equation (82) must also be applied. The correctness of the calculation is confirmed if the values calculated from Equations (94) and (96) match.
3.3.4. Comparison of the Presented Flow Types
In everyday design practice and in education, useful conclusions can be drawn by understanding the assumptions under which the flow properties are calculated. Let us calculate the pressure drop for an isothermal gas flow. The input values are those presented in
Section 3.2.
The outlet pressure ratio, using Equation (64), is
From this, the initial estimate of the outlet pressure ratio is:
From this, the initial estimate of the outlet pressure ratio is:
We now examine the error caused by neglecting the term .
Performing iterations for an accurate determination of
!
We accept this value as the accurate solution. The corresponding outlet pressure is:
Neglecting the term
thus results in an error of:
Hence, the flow is indeed isothermal.
The result is verified by expressing the length from Equation (64) and checking against
.
Thus, the calculation is very accurate.
We first check the isothermal flow calculation:
The corresponding outlet pressure is: .
Using the data from the previous example, let us calculate how the pressure distribution in the flow develops when the flow is not isothermal but adiabatic. Equation (63) was used for the calculation:
The equation in iterative form is written as:
The solution of the equation:
The iteration can be considered converged at this point.
Thus, compared to the isothermal flow, the pressure drop is slightly smaller.
The inlet total energy , which agrees well with the outlet energy value. In adiabatic flow, the inlet and outlet total energy values theoretically coincide.
Let us determine the characteristics of the isentropic flow, using the known inlet data and applying Equation (65).
This result is accepted as sufficiently accurate.
Thus, the flow can indeed be regarded as isentropic.
Now, let us calculate the amount of heat extracted in isentropic flow.
It is obvious that a considerable amount of continuous heat dissipation is required for the assumed realization of an isentropic flow. However, the pressure loss is much lower. For comparison, the pressure losses are about 348,000 Pa for isentropic flow, 386,000 Pa for adiabatic flow and 388,000 Pa for isothermal flow. Although the numerical differences between adiabatic and isothermal flow regimes are small, this does not make the more general polytropic formulation redundant. In engineering practice, isothermal and adiabatic models provide sufficiently accurate results for preliminary design or simplified analyses, particularly under stable operating conditions. However, the polytropic model is essential when dealing with transient or non-equilibrium conditions, hydrogen–natural gas mixtures, or pipelines with significant heat exchange.