CFD12
CFD12
Note that Eq. (A.9) no longer hasa lower-diagonal term—it has been eliminated by
our multiplication and subtraction process above. Let us denote some of the
coefficients in Eq. (A.9) as follows:
f 2ff
l
d 2 = d2 (A.10)
dl
cib2
and C’2— Cz (A.11)
di
Then Eq. (A.9) is written ina simpler form as
d 2u2 a2u c2 (A. 12)
Let us continue with our elimination process by multiplying Eq. (A.12) by b3.
b 3d2u2 +f›3a2 u3 ' b3c2 (A.13)
Before we go any further, notice the pattern that is developing here. Equation
(A.9) can be viewed as obtained from Eq. (A.2) by dropping the first term (the term
involving •i). replacing the main-diagonal coefficient with
b2 1
d2 (A.17)
di
instead ofd2. keeping the third term unchanged (a2•3), and replacing the term on
the right-hand side of the equation by
cib2
<2 (A.18)
di
instead ofc2- Comparing Eqs. (A.16) and (A.3), we see exactly the same pattern,
where in Eq. (A.3) the first term is dropped (b3•2). the diagonal coefficient is
replaced by
b3a2
d3 (A,19)
d 2
thethird term remains unchanged (a3•4). and the right-hand side is replaced by
czf›3
C3 — t (A.20)
d2
The pattern is clear. Compare theforms given by (A.17) and (A.19); they are the
same. Compare theforms given by (A.18) and (A.20); they arethe same. Starting at
the top of our system of equations represented by Eqs. (A.1) through (A.5), we leave
Eq. (A.1) alone, but in all the following equations we drop the first term, replace the
coefficient of the main-diagonal term by
Ci
ib, i = 2,..., 3, M (A.22)
d M _ uM — 1 + M 1 M M 1 (A.23)
d M M — M (A.24)
THOMAS' ALGORITHM FOR THE SOLUTION OF A TRIDIAGONAL SYSTEM OF EQUATIONS 537
Examining theabove system of equations, we note that the last equation, Eq.
(A.24), contains only one unknown, namely, •M. hence
’M
M (A.25)
dM
(A.27)
for the calculation of u;, where•i+} has already been calculated from theprevious
application of Eq. (A.27).
In summary, Thomas’ algorithm is as follows. Givena system of linear,
simultaneous, algebraic equations in tridiagonal form represented by Eqs. (A.1) to
(A.5), we first change this system into an upper bidiagonal form by dropping the
first term in each equation (involving the b;’s), replacing the coefficient of the main-
diagonal term by Eq. (A.21), and replacing the right-hand side with Eq. (A.22). This
will result in the last equation in the system in having only one unknown, namely,
•M. Solve foruM *• m Eq. (A.25). Then, all other unknowns arefound in sequence
from Eq. (A.27), starting with u; = up— and ending with u; = u i
For your reference, the computer listing used to solve the Couette flow
problem described in Sec. 9.3 is listed below. This computer program is essentiallya
program forThomas’ algorithm and can be used asa guide to construct your own
computer program for Thomas’ algorithm.
U(l)=@.@
U(NN)-1.$
AA=—/.5*EE
BB=1.$+EE
KKEND=2
KKMOD=1
INITIAL CONDITIONS
DOl J=2,N
U(J)=$.$
1 CONTI NUE
A(1)=l.$
B(1)=1./
C(1)=1.$
D(l)=l.$
DO5 KK=1,KKEND
SET ORIGINAL COEFFICIENTS
DO2 J=2,N
Y(J)=Y(J-1)+DEL
A(J)=AA
IF(J.EQ.N) A(J)=$.$
D(J)—BB
B(J)=AA
IF(J.EQ.2) B(J)=/./
C(J)=(1./-EE)*U(J)+/.5*EE*(U(J+1)+U(J’1))
IF(J.EQ.N) C(J)=C(J)—AA*U(NN)
2 CONTINUE
C UPPER BIDIAGONAL FORM
DO3 J=3rN
D(J)=D(J)—B(J)*A(J—1)/D(J—1)
C(J)=C(J)-C(J-l)*B(J)/D(J-l)
CONTINUE
CALCULATION OF U(J)
DO4 K=2,N
M=N-(K-2)
U(M)=(C(M)-A(M)’U(M+1))/D(M)
4 CONTINUE
Y=(l)=$./
Y(NN)=Y(N)+DEL
TIME=TIME+DELTIM
TEST=MOD(KK,KKMOD)
IF(TEST.GT.j.$l) GO TO 5
WRITE(6,1$$) KK, TIME,DELTIM
WRITE(*,1/$) KK,TIME,DELTIM
WRITE(6,1/1)
WRITE(*,1/1)
WRITE(6,1/2) (J,Y(J),U(J),B(J),D(J),A(J),C(J),J=1,NN)
WRITE(’,1/2) (J¿ (J)¿U J)rB J)yD(J)¿A(J),C(J1,J-1,NN)
CONTINUE
FORMAT(5X//5X, ’SOLUTION AT’,5X, ’KK=’,I3,5X, ’TIME=’,E1/.3,5X
’DELTIM=’,El$.3//)
1$1 FORMAT(3X, ’J’,6X, 'Y’,9X, ’U’,9X, ’B’,9X, ’D’,9X, ’A’,9X, ’C’)
1$2 FORMAT(2X,I3,6E1j.3)
ENDӄ
REFERENCES
1. Anderson, John D., Jr.: Introduction to Flight, 3d ed., McGraw-Hill, New York, 1989.
2. Anderson, John D., Jr.: H ypersonic and High Temperature Gas Dynamic's McGraw-Hill, New
York, 1989.
3. Rouse, Hunter, and Simon Ince: History of Hydraulics, Iowa Institute of Hydraulic Research,
Annes, Iowa 1957.
4. Tokaty, G. A.:A History and Philosophy of Fluid Mechanics, G. T. Foulis, Henly-on-Thames,
England, 1971.
5. Anderson, John D., Jr.: The History of Aerodynamics, and Its Impact on Flying Machines,
Cambridge University Press, New York (in preparation).
6. Kothari, A. P., and J. D. Anderson, Jr.: “Flows Over Low Reynolds Number Airfoils—Com-
pressible Navier—Stokes Numerical Solutions,” AIAA paper 85-0107, presented at AIAA 23rd
Aerospace Sciences Meeting, Reno, Nev., Jan. 1W17, 1985.
7. Pohlen, L. J., and T. J. Mueller: “Boundary Layer Characteristics of the Miley Airfoil at Low
Reynolds Numbers,” J. Aircr., vol. 21, no. 9, pp. 658—664, September 1984.
8. Anderson, John D.,Jr.: Fundamentals of Aerodynamics, 2d ed., McGraw-Hill, New York, 1991.
9. Bush, Richard J., Jr., Merle Jager, and Brad Bergman: “The Application of Computational Fluid
Dynamics to Aircraft Design,” AIAA paper 86-2651, 1986.
10. Jameson, A., W Schmidt, and E. Turkel: “Numerical Solutions of the Euler Equations by Finite
Volume Methods Using Runge-Kutta Time Stepping Schemes,” AIAA paper 81-1259, 198l.
11. Chapman, Dean R.:“Computational Aerodynamics Development and Outlook,” AIAA J., vol. 17,
no. 12, pp. 1293-1313, December 1979.
12. Moretti, G., and M. Abbett: “A Time-Dependent Computational Method forBlunt Body Flows,”
AIAA J., vol. 4, no. 12, pp. 2136-2141, December 1966.
13. Anderson, Dale A., John C. Tannehill, and Richard H. Pletcher: Computational Fluid Mechanics
and Heat Transfer, McGraw-Hill, New York, 1984.
14. Fletcher, C. A.: Computational Techniques for Fluid Dynamics, vol. I: Fundamental and General
Techniques, Springer-Verlag, Berlin, 1988.
15. Fletcher, C. A.: Computational Techniques for Fluid Dynamics, vol. II: Specific Techniques %r
Different Flow Categories, Springer-Verlag, Berlin, 1988.
16. Hirsch, Charles: Numerical Computation ofInternal and External Flows, vol. 1: Fundamentals of
Numerical Discretization, Wiley, New York, 1988.
17. Hirsch, Charles: Numerical Computation of Internal and External Flow's, vol. II: Computational
Methods for Inviscid and Viscous Flows, Wiley, New York, 1990.
18. Hoffmann, K. A.: Computational Fluid DynamfCS for Engineers, Engineering Education System,
Austin, Tex., 1989.
19. Hildebrand, Francis B.: Advanced Calculus %r Applicafions, 2d ed., Prentice-Hall, Englewood
Cliffs, N.J., 1976.
20. Schlichting, H.: Boundars Lai'er Theotn, 7th ed., McGraw-Hill, New York, 1979.
21. Anderson, John D.,Jr.: Modein Compressible Flow.’ With Historical Perspective, 2d ed., McGraw-
Hill, New York, 1990.
22. Kreyszig, E.: Advanced Engineering Mathematics, Wiley, New York, 1962.
23. Whitham, G. B.: Linear and Nonlinear Waves, Wiley, New York, 1974.
24. Annes, W. F.: Nonlinear Partial Diff'erential Equations inEngineering, Academic, New York, 1965.
25. Courant, R., K. O. Friedrichs, and H. Lewy: “Uber die Differenzengleichungen der Mathema-
tischen Physik,” Math. Ann, vol. 100, p. 32, 1928.
26. Thompson, Joe F. (ed.): Numerical Grid Generation, North-Holland, New York, 1982.
539
540 REFERENCES
27. Thompson, JoeF., Z. V A. Warsi, and C. Wayne Mastin: Numerical Grid Generation. Foundations
and Applications, North-Holland, New York, 1985.
28. Viviand, H.: “Conservative Forms of Gas Dynamic Equations,” Rech. Aero.sp., no. 1971-1, pp.
65-68, 1974.
29. Vinokur, M.: “Conservation Equations of Gas Dynamics in Curvilinear Coordinate Systems,” J.
Comput. Phys., vol. 14, pp. 105-125, 1974.
30. Mullins, G. A., J. D. Anderson, Jr., and J. P. Drummond: “Numerical Investigation of Supersonic
Base Flow with Parallel Injection,” AIAA paper 82-1002, 1982.
31. Mullins, G. A.: “Numerical Investigation of supersonic Base Flow with Tangential Injection,” M.S.
thesis, Department of Aerospace Engineering, University of Maryland, College Park, 1981.
32. Holst, T. L.: “Numerical Solution of Axisymmetric Boattail Fields with Plume Simulators,” AIAA
paper 77-224, 1977.
33. Roberts, B. O.: “Computational Meshes forBoundary Layer Problems,” Lecture Notes inPhysics,
Springer-Verlag, New York, pp. 171-177, 1971.
34. Thompson, J. F., F. C. Thames, and C. W. Mastin: “Automatic Numerical Generation of Body-
Fitted Curvilinear Coordinate Systems for Fields Containing Any Number of Arbitrary Two-
Dimensional Bodies,” J. Comput. Phys., vol. 15, pp. 299-319, 1974.
35. Corda, Stephen: “Numerical Investigation of the Laminar, Supersonic Flow over a Rearward-
Facing Step Using an Adaptive Grid Scheme,” M.S. thesis, Department of Aerospace Engineering,
University of Maryland, College Park, 1982.
36. Dwyer, H. A., R. J. Kee, and B. R. Sanders: “An Adaptive Grid Method forProblems in Fluid
Mechanics and Heat Transfer,” AIAA paper 79-1464, 1979.
37. Steinbrenner, John P., and Dale A. Anderson: “Grid-Generation Methodology in Applied
Aerodynamics,” in P. A. Henne (ed.), Applied Computational Aerodynamics Progress in Astro-
nautics and Aeronautics Series, vol. 125, AIAA, Washington, D.C., chap. 4, pp. 91-130, 1990.
38. Karman, S. L., Jr., J. P. Steinbrenner, and K. M. Kisielewski: “Analysis of the F-16 Flow Field bya
Block Grid Euler Approach,” AGARD Conf. Proc. 412, 1986.
39. Venkatakrishnan, V, and D. J. Mavriplis: “Implicit Solvers for Unstructured Meshes,” AIAA
paper 91-1537-CP, Proc. AIAA 10th Comput. Fluid Dyn. Conf., pp. 115-124, June 24—27,
1991.
40. Hassan, O., K. Morgan, J. Peraire, E. J. Probert, and R. R. Thareja: “Adaptive Unstructured Mesh
Methods forSteady Viscous Flow,” AIAA paper 91-1538-CP, Proc. AIAA 10th Comput. FluidDyn.
Conf., pp. 125-133, June 24-27, 1991.
41. DeZeeuw, Darren, and Kenneth G. Powell: “An Adaptively-Refined Cartesian Mesh Solver for
the Euler Equations,” AIAA paper 91-1542-CP, Proc. AIAA 10th Comput. Fluid Dyn. Conf., pp.
166-180, June 24-27, 1991.
42. Rubbert, Paul, and Dockan Kwak (eds): AIAA 10th Computational Fluid Dynamics Conference,
June 24—27, 1991.
43. MacCormack, R, W.: “The Effect of Viscosity in Hypervelocity Impact Cratering,” AIAA paper
69-354, 1969.
44. Kuruvila, G., and J. D. Anderson, Jr.: “A Study of the Effects of Numerical Dissipation on the
Calculation of Supersonic Separated Flows,” AIAA paper 85-0301, 1985.
45. Annes Research Staff: “Equations, Tablgs, and Charts for Compressible Flow,” NACA Rep. 1135,
1953.
46. Abbett, M. J.: “Boundary Condition Calculation Procedures forlnviscid Supersonic Flow Fields,”
Proc. 1st AIAA Comput. Fluid Dyn. Conf., pp. 153 172, 1973.
47. Shang, J. S., and S. J. Scherr: “Navier—Stokes Solutions fora Complete Re-Entry Configuration,”
J. Aircr., vol. 23, no. 12, pp. 881-888, December 1986.
48. Schroder, W., and F. Mergler: “Comparative Study of Inviscid and Viscous Flows Over an STS,” in
C. Hirsch, J. Periaux, and W. Kordulla (eds.), Computational Fluid Dynamics ’92, vo1. 1, Elsevier,
Amsterdam, 1992, pp. 323-330.
49. Turkel, E., R. C. Swanson,V N. Vatsa, and J. A. White: “Multigrid for Hypersonic Viscous Two-
and Three-Dimensional Flows,” AIAA paper 91-1572-CP, Proc. AIAA 10th Comput. Fluid Dyn.
Conf., 1991.
50. Vilsmeier, R., and D. Hanel: “Adaptive Solutions for Compressible Flows on Unstructured,
REFERENC ES 541
Strongly Anisotropic Grids,” in C. Hirsch, J. Periaux, and W Kordulla (eds.), Computational Fluid
Dynamics ’92, vol. 2, Elsevier, Amsterdam, 1992, pp. 945-951.
51. Vassberg, J. C., and K. R. Dailey: “AIRPLANE: Experiences, Benchmarks and Improvements,”
AIAA paper 90-2998, 1990.
52. Petot, B., and A. Fourmaux: “Validation of Viscous and lnviscid Computational Methods Around
Axial Flow Turbine Blades,” in C. Hirsch, J. Periaux, and W. Kordulla (eds.), Computational Fluid
Dynamics ’92, vol. 2, Elsevier, Amsterdam, 1992, pp. 611-618.
53. Enomoto, S., and C. Arakawa: “2-D and3 -D Numerical Simulation of a Supersonic Inlet
Flowfield,” in C. Hirsch, J. Periaux, and W. Kordulla (eds.), Computational Fluid Dynamics ’92,
vol. 2, Elsevier, Amsterdam, 1992, pp. 781-788.
54. Borland, C. J.: “A Multidisciplinary Approach to Aeroelastic Analysis,” in A. K. Noor and
S.L. Venneri (eds.), Computing Systems in Engineering, vol. 1, Pergamon, New York, 1990, pp.
197-209.
55. Vandromme, D., and A. Saouab: “Implicit Solution of Reynolds-Averaged Navier—Stokes
Equations for Supersonic Jets on Adaptive Mesh,” in C. Hirsch, J. Periaux, and W. Kordulla
(eds.), Computational Fluid Dynamics ’92, vol. 2, Elsevier, New York, 1992. pp. 727—731.
56. Kandil, O. A., H. A. Kandil, and C. H. Liu: “Supersonic Quasi-Axisymmetric Vortex Breakdown,”
AIAA paper 91-3311-CP, Proc. AIAA 9thAppl. Aerodyn. Conf., pp. 851 —863, 1991.
57. Rai, M. M., and P. Moin: “Direct Numerical Simulation of Transition and Turbulence ina Spatially
Evolving Boundary Layer,” AIAA paper 91-1607-CP, Proc. AIAA 10th Comput. Fluid H -n. Coiif.,
pp. 890-914, 1991.
58. Shaw, C. T.: “Predicting Vehicle Aerodynamics Using Computational Fluid Dynamics—A User's
Perspective,” Research in Automotive Aerodynamics, SAE Special Publication 747. pp. 119-132,
February 1988.
59. Matsunaga, K., H. Mijata, K. Aoki, and M. Zhu: “Finite-Difference Simulation of 3D Vortical
Flows Past Road Vehicles,” Vehicle Aerodynamics, SAE Special Publication 908, pp. 65-84,
February 1992.
60. Griffin, M. E., R. Diwaker, J. D. Anderson, and E. Jones: “Computational Fluid Dynamics Applied
to Flows in an Internal Combustion Engine,” AIAA paper 78-57, presented at AIAA 1 6th
Aerospace Sciences Meeting, January 1978.
61. Mampaey, F., and Z. A. Xu: “An Experimental and Simulation Study ofa Mould Filling Combined
with Heat Transfer,” in C. Hirsch, J. Periaux, and W. Kordulla (eds. ). Computational Fluid
Dynamics ’92, vol. 1, Elsevier, Amsterdam, 1992, pp. 421—428.
62. Steijsiger, C., A. M. Lankhorst, and Y. R. Roman: “Influence of Gas Phase Reactions on the
Deposition Rate of Silicon Carbide from the Precursors Methyltrichlorosilane and Hydrogen,” in
C. Hirsch, O. C. Zienkiewicz, and E. Onate (eds.), Numerical Methods in Engineering ’92,
Elsevier, Amsterdam, 1992, pp. 857-864.
63. Toorman, E. A.,and J. E. Berlamont: “Free Surface Flow ofa Dense, Natural Cohesive Sediment
Suspension,” in C. Hirsch, I. Periaux, and W. Kordulla (eds.), Computational Fluid Dv'namics ’92,
vol. 2, Elsevier, Amsterdam, pp, 1005-1011, 1992.
64. Bai, X. S., and L. Fuchs: “Numerical Model forTurbulent Diffusion Flames with Applications,” in
C. Hirsch, J. Periaux and W. Kordulla (eds.), Computational Fluid fit’narii ics ’92, vol. 1, Elsevier,
Amsterdam, 1992, pp. 1 69—176.
65. McGuirk, J. J., and G. E. Whittle: “Calculation of Buoyant Air movement inBuildings—Proposals
fora Numerical Benchmark Test Case, Computational Fluid H'narnicefor theEnvironmental and
Building Services Engineer—Tool or To›? The Institution of Mechanical Engineers, London, pp.
13-32, November 1991.
66. Alamdari, F., S. C. Edwards, and S. P. Hammond: Microclimate Performance of an Open Atrium
Office Building: A Case Study in Thermo-Fluid Modeling.” Computational Fluid Dynamics for
theEnvironmental and Building Screices Engineet —Tool or Top'? The Institution of Mechanical
Engineers, London, pp. 81—92, November 1991.
67. Patankar, S. V, and D. B. Spalding: “A Calculation Procedure for Heat, Mass and Momentum
Transfer in Three-Dimensional Parabolic Flows,” Int. J. Heat Mass Transfer, vol. 15, pp. 1787—
1806, 1972.
68. Patankar, S. V: Numerical Heat Transfer and Fluid Flow, Hemisphere, New York, 1980.
542 REFERENCES
69.Oran, Elaine S., and Jay P. Boris: Numerical Simulation o[Reactive Flow, Elsevier, New York,
1987.
70. Jacquotte, 0. P., and G. Coussement: “Structural Grid Variation Adaption: Reaching theLimit?” in
C. Hirsch, J. Periaux, and W. Kordulla (eds.), Computational Fluid Dynamics ’92, vol. 2, Elsevier,
Amsterdam, 1992, pp. 1077-1087.
71. Degani, D, and Y. Levy: “Asymmetric Turbulent Vortical Flows over Slender Bodies,” Proc. AIAA
9thAppl. Aerodyn. Conf., pp. 756 765, September 1991.
72. TECPLOT Users Manual, version 5, Amtec Engineering, Inc., Bellevue, Wash., 1992.
73. Selmin, V, E. Hettena, and L. Formaggia: “An Unstructured Node Centered Scheme forthe
Simulation of 3-D Inviscid Flows,” in C. Hirsch, J. Periaux, and W. Kordulla (eds.), Computational
Fluid Dynamics ’92, vol. 2, Elsevier, Amsterdam, 1992, pp. 823-828.
74. MacCormack, R. W : “Current Status of Numerical Solutions of the Navier—Stokes Equations,”
AIAA paper 88-0513, 1988.
75. Van Driest, E. R.: “Investigation of Laminar Boundary Layer in Compressible Fluids Using the
Crocco Method,” NACA Tech. Note 25 79, January 1952.
76. Stollery, J. L.: “Viscous Interaction Effects and Re-entry Aerothermodynamics: Theory and
Experimental Results,” Aerodynamic Problems of Hypersonic Vehicles, vol. 1, AGARD Lecture
Series 42, pp. 10-1-10-28, July 1972.
77. Beam, R. M., and R. F. Warming: “An Implicit Finite-Difference Algorithm for Hyperbolic
Systems in Conservation Law Form,” J. Comput. Phys., vol. 22, pp. 87-110, 1976.
78. Briley, W. R., and H. McDonald: “Solution of the Three-Dimensional Navier—Stokes Equations by
an Implicit Technique,” Proceedings o the Fourth International Conference on Numerical
Methods in Fluid Dynamics, Lecture Notes in Physics, vol. 35, Springer-Verlag, Berlin, 1975.
79. Peaceman, D. W., and H. H. Rackford: “The Numerical Solution of Parabolic and Elliptic
Differential équations,” J. Soc. Ind. Appl. Math., vol. 3, pp. 28W1, 1955.
80. Douglas, J., and H. H. Rackford: “On the Numerical Solution of Heat Conduction Problems inTwo
and Three Space Variables,” Trans. Am. Math. Soc., vol. 82, pp. 4231W239, 1956.
81. Godunov, S. K.: “A Difference Scheme forNumerical Computation of Discontinuous Solution of
Hydrodynamic Equations,” Math. Sb., vol. 47, pp. 271-306, 1959, in Russian; translated U.S. Joint
Publications Research Service, JPRS 7226, 1969.
INDEX
543
544 INDEX
Parabolic equations:
MacCormack's technique, 222—229, 238, 288, boundary-layer equations, 113
330, 336, 375, 387, 448, 449, 453W55, 460, for Couette flow, 417, 421
461, 463—465, 474, 497, 517 definition of, 100
Mach angle, 376 general discussion of, 111-117
Mach disk, 528 heat conduction equation, 116
Mach number profiles, flat plate flow, 474, 476 parabolized Navier-Stokes equations, 115
Mach wave, 376 regions in flow, 277
546 INDEX