Documente Academic
Documente Profesional
Documente Cultură
Abstract: This project seeks to offer methods to locate and plot streamlines of
constant and incompressible flow using Excel, an accessible software. This is
accomplished by taking the stream function for uniform flow about a cylinder and
applying the Cauchy-Riemann condition followed by parametric differentiation.
Using Excel, we will build a multipurpose dataset which can be used to model and
plot streamlines.
TABLE OF CONTENTS
Problem Statement 3
Motivation. 3
Mathematical Description and Solution Approach 3
Discussion. 7
Conclusion and Recommendations.. 7
References 9
PROBLEM STATEMENT
Streamlines are lines always tangent to the velocity vector of the fluid
particles in flow (Shames 119). The stream functions for ideal and inviscid fluid flow
are well known and given as,
= 0
= 0
(1)
(2)
MOTIVATION
Coupled with the authors semester study in Calculus 3 at the University of
South Florida the motivation for this paper was to find streamlines.
Finding this line is the more difficult task at hand. Starting with the gradients
of we have the following.
= +
=
y
x
=
y
x
=
x
y
For our problem, Shames notes that in the study of 2-D potential flow, we express
the velocity V in terms
( 2 2 )
=
= 0 + 2
( + 2 )2
y
(3)
2
= 2
( + 2 )2
x
(4)
Now we can take (1) and (2) and convert them to x and y as shown below in (5)
and (6), respectively.
= 0
2 + 2
2 + 2
= 0 +
= 0
2 + 2
2 + 2
(5)
(6)
By implicit differentiation of
2
( 2 + 2 )2
2 2
0 2
+
+ 2 ( 2 + 2 )2
(7)
Now, with (7) let us consider two methods to produce a streamline. First we
will apply Heuns method (Kranc 1). Second we will use linear interpolation.
In Excel, lay out columns for x, y, k1 and k2. We will also include cells for a,
dx and 0 . Next we program the following functions and march them down each
cell.
= +
1 = 0.5 (1 + 2)
1 = () =
= (4)
2 = ( + , + ) = 1
Note that a, 0 and 0 are chosen arbitrarily along with a uniform dx. A wise
user will lock these cells (except for 0 ) so as they are changed new computations
are generated immediately. As we will discuss later, finer increments (say 0.1
versus 0.01) generally produce more accurate graphs. Running these calculations
and plotting the x and y values yields the streamline of constant equal to the value
entered at 0 .
Here is an example setup.
Table 2
Table 3
A3: =MATCH(A2,A6:A18)
B2: =INDEX(B6:B18,A3) + (A2-INDEX(A6:A18,A3)) * (INDEX(B6:B18,A3+1)INDEX(B6:B18,A3)) / (INDEX(A6:A18,A3+1)-INDEX(A6:A18,A3))
Note that cell A3 is an arbitrary position (on the sheet), but should
correspond to the value we are looking for. Cell B3 will be our value for y. The
setup here will be similar with x and y columns. The constant will need to be
interpolated against all values -1 to 1 for each increment. Essentially, we are telling
Excel to search each column and return the closest value to the constant of our
choosing. After running the calculation for all x and y combinations we can
construct the streamline.
Table 3 shows an example of the operation in Excel. The equations are
marched down for all combinations of x and y. A second x and y column are setup
to the right to return the interpolated values for convenience.
Table 4
v0
dx
psi
0.7
0.01
0.26
x
-1.00
-0.99
-0.98
-0.97
-0.96
-0.95
-0.94
-0.93
psi
-1
-1
-1
-1
-1
-1
-1
-1
match
Interpolated y X
140
0.395872945
-0.675
-0.668001263
-0.661005101
-0.654011593
-0.647020816
-0.640032852
-0.633047781
-0.626065687
-1
-0.9
-0.8
-0.7
-0.6
-0.5
-0.4
-0.3
Y
0.3959
0.4009
0.4075
0.4163
0.4277
0.4423
0.4599
0.4786
DISCUSSION
Table 5
Table 6
Further, a line of at 0.25 has also been partially graphed. Compare and
. They intersect orthogonally. Note here in Table 7, our (x0, y0) is (01, 0.4) for
Heuns method which corresponds to the constant 0.25 (which was entered into the
interpolator).
Lastly, concerning Heuns method, graphically and mathematically, we see in
(8) the exact same data set. Equation (8) can make for a less burdensome entry
than equation (3) if sheets for and have already been created prior.
8
= =
(8)
Table 8 provides examples for other graphing similar components using the
same methods.
Another option that can be achieved after the streamlines have been attained
is to add rotation. This can be executed simply by adding equation (8) to the
interpolator. Or, it could be achieved by Heuns method if you were to implicitly
differentiate in (8) and add it to equation (7). For example, we can add rotation.
Shames gives the formula for clockwise rotation as
= 0
+
r
= 0
+
2 + 2 (8)
2
2
+
2
REFERENCES
Kranc, S.C. Plotting Streamlines and Pathlines on a Microcomputer. Comp. in Ed. Div. of
ASEE, (1986), V. VI, No. 3, pp. 20-21.
Peltier, Jon. "Excel Interpolation Formulas." Peltier Tech Blog. Jon Peltier, 18 Aug. 2014.
Web. 28 Nov. 2014.
Shames, Irving Herman. Mechanics of Fluids. New York: McGraw-Hill, 1962. Print.
10