fluid_mechanics
706 Appendix A ■ Computational Fluid Dynamics and FlowLab H h D T h 2 h h 3 D V h i –1 h i h i – h i –1 Δt 0 Δt 2Δt i = 1 2 3 i – 1 i t (a) (b) h H 0.8H 0.6H Δt = 0.2 Exact: h = He -t Δt = 0.1 0.4H 0.2H 0 0.0 0.2 0.4 0.6 0.8 1.0 (c) F I G U R E EA.1 t By combining Eqs. 2 and 3 we obtain or D 2 gh 32m/ aD T dh D b2 dt dh dt Ch where C gD 4 32m/D 2 T is a constant. For simplicity we assume the conditions are such that C 1. Thus, we must solve dh h with h H at t 0 dt The exact solution to Eq. 4 is obtained by separating the variables and integrating to obtain h He t However, assume this solution was not known. The following finite difference technique can be used to obtain an approximate solution. (4) (5) As shown in Fig. EA.1b, we select discrete points 1nodes or grid points2 in time and approximate the time derivative of h by the expression dh dt ` h i h i1 tt i ¢t where ¢t is the time step between the different node points on the time axis and h i and h i1 are the approximate values of h at nodes i and i 1. Equation 6 is called the backward-difference approximation to dhdt. We are free to select whatever value of ¢t that we wish. 1Although we do not need to space the nodes at equal distances, it is often convenient to do so.2 Since the governing equation 1Eq. 42 is an ordinary differential equation, the “grid” for the finite difference method is a one-dimensional grid as shown in Fig. EA.1b rather than a two-dimensional grid 1which occurs for partial differential equations2 as shown in Fig. EA.2b, or a three-dimensional grid. Thus, for each value of i 2, 3, 4, . . . we can approximate the governing equation, Eq. 4, as h i h i1 ¢t h i (6)
A.5 Basic Representative Examples 707 or We cannot use Eq. 7 for i 1 since it would involve the nonexisting h 0 . Rather we use the initial condition 1Eq. 42, which gives The result is the following set of N algebraic equations for the N approximate values of h at times t 1 0, t 2 ¢t, . . . , t N 1N 12¢t. h 1 H h 2 h 111 ¢t2 h 3 h 211 ¢t2 . . . h i h i1 11 ¢t2 h 1 H . . . h N h N111 ¢t2 For most problems the corresponding equations would be more complicated than those just given, and a computer would be used to solve for the h i . For this problem the solution is simply h 2 H11 ¢t2 h 3 H11 ¢t2 2 (7) or in general h i H11 ¢t2 i1 The results for 0 6 t 6 1 are shown in Fig. EA.1c. Tabulated values of the depth for t 1 are listed in the table below. t i for t 1 h i for t 1 0.2 6 0.4019H 0.1 11 0.3855H 0.01 101 0.3697H 0.001 1001 0.3681H Exact 1Eq. 52 — 0.3678H . . . . . . It is seen that the approximate results compare quite favorably with the exact solution given by Eq. 5. It is expected that the finite difference results would more closely approximate the exact results as ¢t is decreased since in the limit of ¢t S 0 the finite difference approximation for the derivatives 1Eq. 62 approaches the actual definition of the derivative. For most CFD problems the governing equations to be solved are partial differential equations [rather than an ordinary differential equation as in the above example (Eq. A.1)] and the finite difference method becomes considerably more involved. The following example illustrates some of the concepts involved. E XAMPLE A.2 Flow Past a Cylinder Consider steady, incompressible flow of an inviscid fluid past a circular cylinder as shown in Fig. EA.2a. The stream function, for this flow is governed by the Laplace equation 1see Section 6.52 0 2 c 0x 2 02 c c, (1) 0y 0 2 The exact analytical solution is given in Section 6.6.3. Describe a simple finite difference technique that can be used to solve this problem. SOLUTION The first step is to define a flow domain and set up an appropriate grid for the finite difference scheme. Since we expect the flow field to be symmetrical both above and below and in front of and behind the cylinder, we consider only one-quarter of the entire flow domain as indicated in Fig. EA.2b. We locate the upper boundary and right-hand boundary far enough from the cylinder so that we expect the flow to be essentially uniform at these locations. It is not always clear how far from the object these boundaries must be located. If they are not far enough, the solution obtained will be incorrect because we have imposed artificial, uniform flow conditions at a location where the actual flow is not uniform. If these boundaries are farther than necessary from the object, the flow domain will be larger than necessary and excessive computer time and storage will be required. Experience in solving such problems is invaluable! Once the flow domain has been selected, an appropriate grid is imposed on this domain 1see Fig. EA.2b2. Various grid structures can be used. If the grid is too coarse, the numerical solution may not be capable of capturing the fine scale structure of the actual flow field. If the grid is too fine, excessive computer time and
- Page 680 and 681: 656 Chapter 12 ■ Turbomachines Co
- Page 682 and 683: 658 Chapter 12 ■ Turbomachines Th
- Page 684 and 685: 660 Chapter 12 ■ Turbomachines 50
- Page 686 and 687: 662 Chapter 12 ■ Turbomachines Si
- Page 688 and 689: 664 Chapter 12 ■ Turbomachines (2
- Page 690 and 691: 666 Chapter 12 ■ Turbomachines cu
- Page 692 and 693: 668 Chapter 12 ■ Turbomachines SO
- Page 694 and 695: 670 Chapter 12 ■ Turbomachines h
- Page 696 and 697: 672 Chapter 12 ■ Turbomachines He
- Page 698 and 699: 674 Chapter 12 ■ Turbomachines Ro
- Page 700 and 701: V 1 W 1 = W 2 U 676 Chapter 12 ■
- Page 702 and 703: 678 Chapter 12 ■ Turbomachines E
- Page 704 and 705: 680 Chapter 12 ■ Turbomachines U
- Page 706 and 707: 682 Chapter 12 ■ Turbomachines V1
- Page 708 and 709: 684 Chapter 12 ■ Turbomachines Fo
- Page 710 and 711: 686 Chapter 12 ■ Turbomachines Co
- Page 712 and 713: 688 Chapter 12 ■ Turbomachines Co
- Page 714 and 715: 690 Chapter 12 ■ Turbomachines us
- Page 716 and 717: 692 Chapter 12 ■ Turbomachines es
- Page 718 and 719: 694 Chapter 12 ■ Turbomachines 1
- Page 720 and 721: 696 Chapter 12 ■ Turbomachines 55
- Page 722 and 723: 698 Chapter 12 ■ Turbomachines Se
- Page 724 and 725: 700 Chapter 12 ■ Turbomachines Co
- Page 726 and 727: 702 Appendix A ■ Computational Fl
- Page 728 and 729: 704 Appendix A ■ Computational Fl
- Page 732 and 733: 708 Appendix A ■ Computational Fl
- Page 734 and 735: 710 Appendix A ■ Computational Fl
- Page 736 and 737: 712 Appendix A ■ Computational Fl
- Page 738 and 739: A ppendix B Physical Properties of
- Page 740 and 741: 716 Appendix B ■ Physical Propert
- Page 742 and 743: 718 Appendix B ■ Physical Propert
- Page 744 and 745: 720 Appendix C ■ Properties of th
- Page 746 and 747: 722 Appendix D ■ Compressible Flo
- Page 748 and 749: 724 Appendix D ■ Compressible Flo
- Page 751 and 752: Answers to Selected Even-Numbered H
- Page 753 and 754: Answers to Selected Even-Numbered H
- Page 755 and 756: Answers to Selected Even-Numbered H
- Page 757 and 758: I ndex Absolute pressure, 13, 48 Ab
- Page 759 and 760: Index I-3 guidelines for selection,
- Page 761 and 762: Index I-5 hydrostatic: on curved su
- Page 763 and 764: Index I-7 piezometer tube, 50, 105,
- Page 765 and 766: Index I-9 Pressure force, 40 Pressu
- Page 767 and 768: Index I-11 Stress field, 277 Strouh
- Page 769: Index I-13 Weber, M., 29, 350 Weber
- Page 772 and 773: V4.8 Jupiter red spot V4.9 Streamli
- Page 774: V10.3 Water strider V10.13 Triangul
A.5 Basic Representative Examples 707<br />
or<br />
We cannot use Eq. 7 for i 1 since it would involve the nonexisting<br />
h 0 . Rather we use the initial condition 1Eq. 42, which gives<br />
The result is the following set of N algebraic equations for the N approximate<br />
values of h at times t 1 0, t 2 ¢t, . . . , t N 1N 12¢t.<br />
h 1 H<br />
h 2 h 111 ¢t2<br />
h 3 h 211 ¢t2<br />
. . .<br />
h i <br />
h i1<br />
11 ¢t2<br />
h 1 H<br />
. . .<br />
h N h N111 ¢t2<br />
For most problems the corresponding equations would be more<br />
complicated than those just given, and a computer would be used to<br />
solve for the h i . For this problem the solution is simply<br />
h 2 H11 ¢t2<br />
h 3 H11 ¢t2 2<br />
(7)<br />
or in general<br />
h i H11 ¢t2 i1<br />
The results for 0 6 t 6 1 are shown in Fig. EA.1c. Tabulated<br />
values of the depth for t 1 are listed in the table below.<br />
t<br />
i for t 1<br />
h i for t 1<br />
0.2 6 0.4019H<br />
0.1 11 0.3855H<br />
0.01 101 0.3697H<br />
0.001 1001 0.3681H<br />
Exact 1Eq. 52 — 0.3678H<br />
. . .<br />
. . .<br />
It is seen that the approximate results compare quite favorably<br />
with the exact solution given by Eq. 5. It is expected that the finite<br />
difference results would more closely approximate the exact results<br />
as ¢t is decreased since in the limit of ¢t S 0 the finite difference<br />
approximation for the derivatives 1Eq. 62 approaches the<br />
actual definition of the derivative.<br />
For most CFD problems the governing equations to be solved are partial differential equations<br />
[rather than an ordinary differential equation as in the above example (Eq. A.1)] and the<br />
finite difference method becomes considerably more involved. The following example illustrates<br />
some of the concepts involved.<br />
E XAMPLE A.2<br />
Flow Past a Cylinder<br />
Consider steady, incompressible flow of an inviscid <strong>fluid</strong> past a<br />
circular cylinder as shown in Fig. EA.2a. The stream function,<br />
for this flow is governed by the Laplace equation 1see Section 6.52<br />
0 2 c<br />
0x 2 02 c<br />
c,<br />
(1)<br />
0y 0 2<br />
The exact analytical solution is given in Section 6.6.3.<br />
Describe a simple finite difference technique that can be used<br />
to solve this problem.<br />
SOLUTION<br />
The first step is to define a flow domain and set up an appropriate<br />
grid for the finite difference scheme. Since we expect the<br />
flow field to be symmetrical both above and below and in front<br />
of and behind the cylinder, we consider only one-quarter of the<br />
entire flow domain as indicated in Fig. EA.2b. We locate the upper<br />
boundary and right-hand boundary far enough from the<br />
cylinder so that we expect the flow to be essentially uniform at<br />
these locations. It is not always clear how far from the object<br />
these boundaries must be located. If they are not far enough, the<br />
solution obtained will be incorrect because we have imposed<br />
artificial, uniform flow conditions at a location where the actual<br />
flow is not uniform. If these boundaries are farther than necessary<br />
from the object, the flow domain will be larger than necessary<br />
and excessive computer time and storage will be required.<br />
Experience in solving such problems is invaluable!<br />
Once the flow domain has been selected, an appropriate grid is<br />
imposed on this domain 1see Fig. EA.2b2. Various grid structures<br />
can be used. If the grid is too coarse, the numerical solution may<br />
not be capable of capturing the fine scale structure of the actual<br />
flow field. If the grid is too fine, excessive computer time and