Mach Number March Method - Detailed Discussion

The Mach Number March Solution Method for the AFT Arrow Steady Solution Method is described in detail below.

Modify Equation 2 by substituting Equations 3 and 5 and eliminating density,

(6)

By definition of Mach number for a real gas

(7)

and from basic calculus the following relationship holds:

(8)

Differentiating Equation 7 (and using Equation 8) results in,

(9)

Now, substitute Equation 7 and 9 into Equation 6 and eliminate the velocity

(10)

Differentiating the equation of state, Equation 5 yields

(11)

Replace velocity by Mach number by substituting Equation 9 into Equation 11 to obtain

(12)

Eliminate pressure from Equation 10 using Equation 12 to obtain:

(13)

From the definition of stagnation temperature

(14)

Differentiating the preceding yields

(15)

Replace static temperature in Equation 13 with stagnation by using Equation 14 and Equation 15 to obtain:

Collecting terms and simplifying yields:

(16)

Rearrange Equation 16 to obtain

(17)

Four useful parameters that simplify notation are:

(18)

Using the four new parameters in Equation 18 simplifies to

(19)

Integrating Equation 19 yields

(20)

Equation 20 can be solved for x2:

(21)

where the bars over certain parameters indicate that the average value over the computing section is used.

Equation 21 is the Mach Number March equation. The Mach Number March is a variable step size method. As shown in Equation 21, the distance is the parameter being calculated.

Modifications for Heat Transfer

In order to model heat transfer effects it is convenient in some cases to modify the previous equations.

The energy equation has the form:

(28)

The definition of stagnation enthalpy is

(29)

which, when substituted into Equation 28, yields:

(30)

In most applications, the elevation term, gz, is very small and is neglected. This term will only become significant over pipes that have large elevation changes such as pipelines that go over mountains or down mineshafts, or in rapidly rotating systems.

With elevation neglected, it is not uncommon for engineers to conclude that adiabatic flow is isenthalpic (constant static enthalpy). It’s not. Rather, the stagnation enthalpy is constant in adiabatic flow.

Convective Heat Transfer

In pipe convective heat transfer, it is convenient to use the change in stagnation temperature rather than stagnation enthalpy by introducing the following approximation

(31)

When heat transfer occurs, the effect of elevation change on the energy balance is small and is neglected. Substituting Equation 31 into Equation 30 yields

(32)

The heat transfer due to convection is given by the following:

(33)

where:

       U        = Overall heat transfer coefficient

       Ph        = Heated perimeter

The heated perimeter will frequently equal the wetted perimeter, which is the internal pipe circumference. It can change if part of the pipe is insulated (it will be less than the wetted perimeter) or there are fins on the pipe (it will be greater than the wetted perimeter).

Equating Equation 32 and 33 yields

(34)

Rearranging Equation 34 yields:

(35)

Integrating Equation 35 yields

(36)

This relationship for stagnation temperature can be substituted into Equation 20 to obtain:

(37)

In convective applications which use the Mach Number March method, the advantage of Equation 37 over Equation 21 is that the stagnation temperature change is proportional to the distance step dx (as shown in Equation 35), for which we are solving. Equation 37 couples the effects of friction and heat transfer, and provides more reliable convergence, especially in convection heating.

Constant Heat Flux

The constant heat flux boundary condition on a pipe results in a modified form of Equation 32

(38)

The stagnation temperature change is thus:

(39)

Integrating Equation 39 yields:

(40)

Substituting this into Equation 20 yields:

(41)

Example

Some examples are given here to clarify how the Mach Number March and Length March methods solve the governing equations.

Figure 1: Marching equations are applied at successive computing sections along the pipe. Conditions at location 1 are known, and at location 2 are being solved using one of the marching equations

Both of these methods are referred to as marching methods. What does this mean? Figure 1 shows a representation of a computing section in a pipe. In this example, all parameters at Location 1 are known, and it is desired to calculate conditions at location 2 which is always downstream of location 1.

Whether we are applying the Length March or the Mach Number March (Equation 21, 37 or 41), at location 1 we know these primary parameters:

Because we know the parameters above, we also know:

Let’s turn our attention to the Mach Number March method. Depending on the heat transfer model, AFT xStream will solve either Equation 21, 37 or 41. The most general of these is Equation 21, so in the following discussion it will be referred to as the Mach Number March equation, with the understanding that Equation 21 encompasses Equations 37 and 41.

Similar to the Length March method, it is desired to solve for conditions at location 2 based on known conditions at location 1 (see Figure 2). However, here the length step itself is not known. In fact, as shown in Equation 21 it is the computing length (i.e., Δx) for which we are solving. What is the reason for trying to solve for ∆x rather just specifying it? This question will be answered shortly. Before that, let’s understand better what is happening when Equation 21 is applied.

The knowns at location 1 are the same as before, namely:

with the other derived knowns easily obtainable:

In the Mach Number March method, our step size is dictated by increments of Mach number. We thus take the Mach number at location 1 (M1) and add to it an increment. Since the maximum Mach number in the pipe systems modeled in AFT xStream is 1, the step size should be far smaller. The default step size is 0.01. Using the default, we know the Mach number at location 2:

where ΔM is the Mach number increment. As before, we know the mass flow rate at location 2 (it's the same the same as location 1), and we also have similar heat transfer relationships as discussed in the Length March method example previously.

Specifically, if the pipe is adiabatic, we know the following at location 2:

or, if isothermal, the following is known at location 2:

and if the pipe has a convective or heat flux boundary condition,

However, in the convective and heat flux cases, we cannot definitely say what ho,2, is because the amount of stagnation enthalpy change depends on the length step, for which we are solving. This requires additional iteration.

Similar to the Length March method, the Mach Number March method requires significant iteration for each computing step. Again, known inlet conditions become the first location 1, and once location 2 is solved, it becomes location 1 and the marching continues to the end of the pipe.

Since we are solving for Δx, it is entirely possible that the distance step will extend beyond the pipe length. This will occur for any pipe that has an end-to-end Mach number change of less than ΔM. It will always occur for the final computing section of each pipe that does not reach choking. In such a case, the method reverts to the Length March method to compute conditions at the pipe exit.

It should be clearly understood that in the Mach Number March method, computing sections are not equidistant along a pipe. In fact, as the gas accelerates along the pipe, the Mach number increases more and more rapidly. This results in shorter and shorter computing section lengths as shown in the following application.

Example Application

Consider once again the model in Figure 2. All conditions are the same as in the previous Length March method application, except for the solution method. If we solve this model using the Mach Number March method, with a Mach number increment of 0.01, the results in Figure 3 are obtained.

There are several items to note about Figure 3. First, note how the Mach number increases down the length of the pipe. At the inlet, the Mach number is 0.2604 (this is not specified, but determined as part of the solution for flow rate). Each computing point increases the Mach number by ∆M , which is 0.01. This is what the Mach Number March method is, a method which marches in Mach number increments. With the step size dependent on the Mach number change, the number of calculation points in a pipe cannot be controlled. The  10 points shown in Figure 3 were chosen by AFT xStream, not the user.

Second, note the x locations of computing points. These numbers are not whole numbers, and as the end of the pipe is approached the distance between each computing section and the previous one becomes smaller and smaller. This is a result of the gas acceleration. At higher Mach numbers this becomes even more pronounced.

Figure 4 shows how the Mach number increases along the pipe length. The curve's upward curvature shows the acceleration effect. Figure 5 shows the relative computing section distances.

Third, notice this adiabatic flow case has constant stagnation enthalpy, but not constant static enthalpy. This is similar to the Length March method.

Last, notice how the mass flow rate is (in this case) the same as the Length March method results shown in Figure 3 of Length March Method Example (4.884 lbm/sec). Since both methods solve the same governing equations, one would expect the results to be comparable. However, the two methods will not always agree. Each method has strengths and weaknesses, and results can differ somewhat when the flow conditions favor one of the methods.

Is there any way to check that the results offer valid solutions of mass balance (Equation 1), momentum balance (Equation 2) and energy balance (Equation 30)? There is. An example is given in the Mach Number March Verification section below.

Figure 2: Model of an air system dropping from 40 to 30 psia.

Figure 3: Axial Points (available in the Output window) for model in Figure 2 using Mach Number March method.

Figure 4: The Mach number increases with length in this plot of the Figure 3 results

Figure 5: Relative pipe section locations for Figure 3 results. Notice how computing sections get closer as a result of gas acceleration as the end of the pipe is approached

Mach Number March Method Verification

By changing the solution method for Verify_Governing_Equations.xtr in Figure 5 of the Length March Verification to the Mach Number March method, the verification process described in the previous section for the Length March method can be repeated. This is shown in Figure 6 and Table 1.

Figure 6: Axial Points for AFT xStream model Verify_Governing_Equations.xtr using the Mach Number March method.

Table 1: Verification showing how AFT xStream Mach Number March method predictions satisfy momentum, mass and energy balance equations. Taken from spreadsheet Verify_Governing_Equations.xlsx

AFT Arrow Output Averaged Values (Calculated) Momentum Balance Mass Balance Energy Balance
x (feet) P Static (psia) ρ Static (lbm/ft3) Velocity (feet/sec) H Stag. (Btu/lbm) f ρ (lbm/ft3) dρ (lbm/ft3) V (feet/sec) dV (feet/sec) dho (Btu/lbm) dx (feet) dz (feet) dP Total (psi) dP Fric. (psi) dP Accel. (psi) dP Grav. (psi) Balance (psi) Balance (lbm/sec) Balance (Btu/lbm)
0.00 38.139 0.1867 301.37 202.18 0.0149
15.60 36.718 0.1799 312.74 202.20 0.0149 0.1833 0.0068 307.06 -11.373 -0.0200 -15.598 15.598 1.4212 -1.3030 -0.1381 0.0199 -1.18E-04 1.54E-09 -0.019
29.46 35.396 0.1736 324.10 202.22 0.0149 0.1767 0.0063 318.42 -11.354 -0.0178 -13.857 13.857 1.3212 -1.2004 -0.1379 0.0170 -9.92E-05 1.02E-07 -0.017
41.81 34.165 0.1677 335.43 202.23 0.0149 0.1707 0.0059 329.76 -11.334 -0.0159 -12.357 12.357 1.2315 -1.1086 -0.1377 0.0146 -7.40E-05 -1.72E-07 -0.015
52.87 33.014 0.1622 346.74 202.25 0.0149 0.1650 0.0055 341.09 -11.314 -0.0142 -11.058 11.058 1.1507 -1.0260 -0.1374 0.0127 -6.34E-05 1.11E-07 -0.014
62.80 31.936 0.1571 358.04 202.26 0.0149 0.1597 0.0051 352.39 -11.294 -0.0128 -9.926 9.926 1.0776 -0.9515 -0.1372 0.0110 -4.49E-05 -3.37E-08 -0.012
71.73 30.925 0.1523 369.31 202.27 0.0149 0.1547 0.0048 363.67 -11.273 -0.0115 -8.937 8.937 1.0113 -0.8841 -0.1369 0.0096 -3.74E-05 -4.05E-08 -0.011
79.80 29.974 0.1478 380.56 202.28 0.0149 0.1501 0.0045 374.94 -11.251 -0.0104 -8.069 8.069 0.9510 -0.8228 -0.1367 0.0084 -2.03E-05 -5.64E-09 -0.010
87.11 29.078 0.1436 391.79 202.29 0.0149 0.1457 0.0042 386.18 -11.229 -0.0094 -7.303 7.303 0.8960 -0.7670 -0.1364 0.0074 -1.75E-05 9.97E-08 -0.009
93.73 28.232 0.1396 403.00 202.30 0.0149 0.1416 0.0040 397.39 -11.206 -0.0085 -6.626 6.626 0.8457 -0.7161 -0.1361 0.0065 -4.23E-06 -3.18E-08 -0.008
99.76 27.433 0.1358 414.18 202.31 0.0149 0.1377 0.0038 408.59 -11.183 -0.0077 -6.025 6.025 0.7995 -0.6694 -0.1358 0.0058 -3.06E-06 -5.19E-08 -0.007
100.00 27.400 0.1357 414.66 202.31 0.0149 0.1358 0.0002 414.42 -0.475 -0.0003 -0.244 0.244 0.0331 -0.0275 -0.0058 0.0002 1.12E-05 -3.04E-08 0.000