19.09.2019 Views

fluid_mechanics

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

706 Appendix A ■ Computational Fluid Dynamics and FlowLab<br />

H<br />

h<br />

D T<br />

h 2<br />

h<br />

h 3<br />

D<br />

V<br />

h i –1<br />

h i<br />

h i – h i –1<br />

Δt<br />

0 Δt 2Δt<br />

i = 1 2 3 i – 1 i<br />

t<br />

(a)<br />

(b)<br />

h<br />

H<br />

0.8H<br />

0.6H<br />

Δt = 0.2<br />

Exact: h = He -t<br />

Δt = 0.1<br />

0.4H<br />

0.2H<br />

0<br />

0.0 0.2 0.4 0.6 0.8 1.0<br />

(c)<br />

F I G U R E EA.1<br />

t<br />

By combining Eqs. 2 and 3 we obtain<br />

or<br />

D 2 gh<br />

32m/ aD T dh<br />

D b2 dt<br />

dh<br />

dt Ch<br />

where C gD 4 32m/D 2 T is a constant. For simplicity we assume<br />

the conditions are such that C 1. Thus, we must solve<br />

dh<br />

h with h H at t 0<br />

dt<br />

The exact solution to Eq. 4 is obtained by separating the variables<br />

and integrating to obtain<br />

h He t<br />

However, assume this solution was not known. The following finite<br />

difference technique can be used to obtain an approximate<br />

solution.<br />

(4)<br />

(5)<br />

As shown in Fig. EA.1b, we select discrete points 1nodes or<br />

grid points2 in time and approximate the time derivative of h by<br />

the expression<br />

dh<br />

dt ` h i h i1<br />

tt i<br />

¢t<br />

where ¢t is the time step between the different node points on the<br />

time axis and h i and h i1 are the approximate values of h at nodes i<br />

and i 1. Equation 6 is called the backward-difference approximation<br />

to dhdt. We are free to select whatever value of ¢t that we wish.<br />

1Although we do not need to space the nodes at equal distances, it is<br />

often convenient to do so.2 Since the governing equation 1Eq. 42 is an<br />

ordinary differential equation, the “grid” for the finite difference<br />

method is a one-dimensional grid as shown in Fig. EA.1b rather than<br />

a two-dimensional grid 1which occurs for partial differential equations2<br />

as shown in Fig. EA.2b, or a three-dimensional grid.<br />

Thus, for each value of i 2, 3, 4, . . . we can approximate the<br />

governing equation, Eq. 4, as<br />

h i h i1<br />

¢t<br />

h i<br />

(6)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!