11.07.2015 Views

Modeling Tools for Environmental Engineers and Scientists

Modeling Tools for Environmental Engineers and Scientists

Modeling Tools for Environmental Engineers and Scientists

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

functions, introduced in Section 6.22 in Chapter 6, in visualizing flow patternsin groundwater flow management.Consider a situation in which a contamination plume has been detected inan aquifer where a uni<strong>for</strong>m flow exists in the x-direction. It is desired tolocate pumping wells on the y-axis symmetrically about the x-axis. The goalhere is to determine a combination of pumping rates <strong>and</strong> well spacing toensure that no contamination will pass between the wells. This can beachieved analytically in the case of two wells as follows: by superposing thepotential function <strong>for</strong> the uni<strong>for</strong>m flow field with that <strong>for</strong> the two wells,the composite potential function can be obtained as follows: = –ux 4Qπ ln x 2 y – L 2 2 4Qπ ln x 2 y L 2 2 where Q is the pumping rate at each well, <strong>and</strong> L is the spacing between thewells. The condition of no flow between the wells implies that there is a singlestagnation point between the wells, or in terms of the potential <strong>and</strong>stream functions,oru(x,0) = 0 ∂ ∂xx,0= 0The task of differentiating the expression <strong>for</strong> φ, setting the resultingexpression to zero, <strong>and</strong> then solving it <strong>for</strong> x to check <strong>for</strong> stagnation conditions,although straight<strong>for</strong>ward, can be tedious. However, Mathematica ® canbe used readily as shown in Figure 8.39 to differentiate the potential function,set the result to zero, <strong>and</strong> solve <strong>for</strong> x, to give the answer <strong>for</strong> x to check <strong>for</strong> thelocation of the stagnation point. In line In[1] in Figure 8.39, the generalexpression <strong>for</strong> φ is entered, <strong>and</strong> Mathematica ® is asked to substitute y = 0 inthe expression (indicated by the symbol /. {y→ 0}), to find φ(x,0). The resultis returned in line Out[1]. Then, in line In[2], Mathematica ® is asked to takethe last result (indicated by the % symbol), differentiate it with respect to x(indicated by the symbol D), set it to zero, <strong>and</strong> solve the result to find x.Mathematica ® per<strong>for</strong>ms this sequence of operations in symbolic <strong>for</strong>m <strong>and</strong>returns the result in line Out[2] as two possible roots <strong>for</strong> x. This example illustratesthe ability of Mathematica ® to present equations in two-dimensional<strong>for</strong>m <strong>and</strong> to per<strong>for</strong>m st<strong>and</strong>ard mathematical calculi in pure symbolic <strong>for</strong>m.To ensure only one root <strong>for</strong> the quadratic equation, the terms within thesquare root sign should cancel one another, or translating this mathematical© 2002 by CRC Press LLC

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

Saved successfully!

Ooh no, something went wrong!