Professional Documents
Culture Documents
Streamline Calculations. Lecture Note 1: 1 Application of Streamlines
Streamline Calculations. Lecture Note 1: 1 Application of Streamlines
Lecture note 1
Application of streamlines
Visualization and analyzation of vector fields (flow fields). Used in e.g.
Fluid dynamics
Aerodynamics
Magnetostatics (e.g. medical imaging)
Electrostatics
Flow through porous media
Reservoir simulation (multiphase flow in porous media)
Visualization
Reformulation/simplification of the flow equations
History matching
Upscaling
x(0) = x0
(2)
A pathline describes the geometry of the trajectory of a particle exposed to the velocity field v(x, t).
The parameter t of the path line gives the (physical) time needed for
a particle to travel a given distance along its path line.
Note: We use notation x() for both path lines and streamlines, which
makes it difficult to distinguish between a path line and a streamline. We have therefore introduced the additional notation s( ) for a
streamline, and p(t) for a path line. Alternatively, Equations (1) and
(2) could have been written
ds( )
= v(s),
d
dp(t)
= v(p, t),
dt
s(0) = s0
p(0) = p0 .
Since this notation did not seem to be less unambiguous, it was discarded.
Example
Compute the path lines p(t), and then the streamlines s( ), at t = 1
for
t
v=
,
(3)
1
such that s(0) = p(0) = [0, 0]. The solution is easily obtained by
direct integration (or inspection) of the component equations of (1)
2
=3
t=3
2.5
t=2
2
=2
1.5
t=1
1
=1
0.5
0.5
1.5
2.5
3.5
4.5
Figure 1: A path line in red, and a streamline in blue. Values of the parameters t and are indicated at some points.
and (2):
s( ) =
p(t) =
t2
2
(4)
See Figure 1
If v is independent of t, streamlines and path lines coincide.
We can think of a streamline as a path line for a steady flow field.
Alternative definitions of streamline:
Cross product
v ds = 0
(5)
(9)
vx
vy
dx
vx
In 3D:
dy
dz
dx
=
=
vx
vy
vz
3
(10)
4
3
Figure 2: Field plot for v = [1, y]. A streamline s( ) is started from s(0) =
s0 = [1, 1] and traced to the point s(1).
2.1
Integration
v = x y
z
v
vy vz
x
vx vy
vz
+
+
.
x
y
z
(11)
= vz vy i + vx vz j + vy vx k
y
z
z
x
x
y
v =
k
x
y
(12)
2.1.1
Potential flow
v =0
(13)
(14)
=
x
y
=
y
x
(15)
Define v = , or
vx =
vy =
,
y
(16)
v = =
+ 2 =
+
2
x
y
x y
y
2
= 0,
(17)
and
vy
vx
2
2
= 0.
x
y
xy yx
(18)
+
=
= 0.
x x
y y
y x
x y
(19)
| v| =
We also have,
=
2.5
2
1.5
1
0.5
0
0.5
1
1.5
2
2.5
2.5
1.5
0.5
0.5
1.5
2.5
Figure 3: Field lines (blue arrows) for v = [2x, 2y], streamlines (red
curves), and equipotential curves (green lines).
Example
Let
(x, y) =
2x
v=
2y
(20)
We have
= 2x
x
2xdx = x2 + k(y),
(21)
and
= h (y) = 2y
y
h(y) = y 2
(x, y) = x2 y 2 (22)
2.1.2
(23)
Stream function in 2D
(24)
dy
= 0.
dx
(25)
We then have
dy
dy
d
(x, y(x)) =
+
= vy + vx
= 0.
dx
x
y dx
dx
(26)
Thus,
(x, y) = const
(27)
represents a streamline.
Determining the streamfunction: If v = 0, the streamfunction can
be determined from Equation (24) by integration:
Z
= vy
(x, y) = vy dx + h(y)
x
Which implies,
Z
vy
=
dx + h (y)
vx =
y
y
Z
Z Z
vy
h(y) = vx dy +
dx dy
y
Z
Z
Z Z
dvy
(x, y) = vx dy vy dx +
dx dy
dy
(28)
(29)
Note: it might seem that the last two terms on the right hand side
will cancel, since by changing the order of integration, we have
Z Z
Z
Z Z
dvy
dvy
dx dy =
dy dx = vy dx,
(30)
dy
dy
but in fact, they will give quite different information about the unknown integration constant.
Example
Let
Ax + B
v=
Ay + C
v = 0.
(31)
(33)
const = A + B C
(34)
dx
dz
=
vx
vz
(35)
Stream functions in 3D
We will solve
dy
dx
=
vx
vy
dy
dz
=
vy
vz
g(x, y, z) = ,
(36)
where and are constants, such that (since the streamlines are embedded in level curves of both f and g)
v = f g
(37)
I have not found (so far) any general way to determine the functions
f and g.
For cases below we can determine them:
Example 1
Let v = [z, z, (x + y)]. Then
dy
dx
=
vx
vy
dy
dx
=
z
z
y = x + C1
(38)
x2 +
dx
dz
=
z
2x
z2
= C2
2
2xdx = zdz
x2 y 2 z 2
+
+
= C2
2
2
2
(39)
x2 y 2 z 2
+
+
2
2
2
(40)
Then let
f (x, y, z) = x y
g(x, y, z) =
Example 2
Let v = [x, 1, 1]. Then
dy
dx
=
vx
vy
dx
dy
=
x
1
x = C3 ey
(41)
Choose C3 = 1. Then
dy
dz
=
vy
vz
dz
dy
=
1
1
y = z + C4
g(x, y, z) = y z
(42)
But now
References
i
j
k
f g = 1 ey 0
0
1
1
= [ey , 1, 1] 6= v
(43)