# 1D Pipe Flow

## Contents

# 1D Pipe Flow#

(Lecture 5)

```
%%javascript
MathJax.Hub.Config({
TeX: { equationNumbers: { autoNumber: "AMS" } }
});
MathJax.Hub.Queue(
["resetEquationNumbers", MathJax.InputJax.TeX],
["PreProcess", MathJax.Hub],
["Reprocess", MathJax.Hub]
);
```

## Channel Flow#

We consider the one-dimensional ﬂow of a Newtonian viscous ﬂuid in a channel between parallel plates as a model for channel ﬂow.

Figure 6.1: (a) The force balance on a layer of ﬂuid in a channel with an applied pressure gradient. (b) A typical velocity proﬁle.

For a Newtonian ﬂuid with constant viscosity \(\mu\), the shear stress \(\tau\) at any location in the channel is given by

It is not hard to prove that

Combining the equations (137) and (308), and integrating the result we have the velocity \(u\) profile as a function of \(y\):

To evaluate the constants, we must satisfy the boundary conditions. For example, for a no-slip boundary conditions as shown in figure 6.1, a viscous ﬂuid in contact with a solid boundary must have the same velocity as the boundary, so that \(u=0\) at \(y=h\) and \(u=u_0\) at \(y =0\). Hence, the equation becomes

```
import numpy as np
import matplotlib.pyplot as plt
N = 10000 # number of points to plot (ignore)
mu = 4*(10**19) # viscosity
dpdx = 0 # when pressure difference = 0, known as Couette ﬂow
h = 200000 # thickness of channel (m)
u0 = 1.5844 # boundary (max) velocity (m/s)
def main():
y = np.linspace(0, h, N)
u = (1/(2*mu)) * dpdx * (y*y - h*y) - (u0*y)/(h) + u0
plt.figure()
plt.plot(y, u)
plt.xlabel('$y (m)$')
plt.ylabel('$u (m/s)$')
plt.title('Velocity Profile')
plt.show()
if __name__ == '__main__':
main()
```

## Problem 6.1#

Show that the mean velocity in the channel is given by

This can be easily proved by integrating velocity equation (310) wrt. \(y\) from \(0\) to \(h\), and then divided by the thickness of channel \(h\)

```
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
def velocity_u(y):
return (1/(2*mu)) * dpdx * (y*y - h*y) - (u0*y)/(h) + u0
a, b = 0, h # integral limits
y = np.linspace(a, b, N)
print(y)
u = velocity_u(y)
fig, ax = plt.subplots()
ax.plot(y, u, 'r', linewidth=2)
ax.set_ylim(bottom=0)
def mean_u(a,b,y):
bin_size = (b-a)/N
area = 0
for iy in y:
u = velocity_u(iy)
area += u * bin_size
return area/(b-a)
x_coordinates = [a, b]
y_coordinates = [mean_u(a,b,y), mean_u(a,b,y)]
ax.plot(x_coordinates, y_coordinates, linestyle='dashed',label='Mean Velocity u')
ax.legend()
# Make the shaded region
ix = np.linspace(a, b)
iy = velocity_u(ix)
verts = [(a, 0), *zip(ix, iy), (b, 0)]
poly = Polygon(verts, facecolor='0.9', edgecolor='0.5')
ax.add_patch(poly)
ax.text(0.5 * (a + b), 0.5, r"$\int_0^h u(y)\mathrm{d}y$",
horizontalalignment='center', fontsize=20)
fig.text(0.9, 0.05, '$y$')
fig.text(0.1, 0.9, '$u$')
ax.spines['right'].set_visible(False)
ax.spines['top'].set_visible(False)
ax.xaxis.set_ticks_position('bottom')
ax.set_xticks((a, b))
ax.set_xticklabels(('$0$', '$h$'))
ax.set_yticks([])
plt.show()
```

```
[0.00000000e+00 2.00020002e+01 4.00040004e+01 ... 1.99959996e+05
1.99979998e+05 2.00000000e+05]
```

## Problem 6.2#

Derive a general expression for the shear stress \(\tau\) at any location \(y\) in the channel.

This can be easily derived by using equation (137), in which the velocity \(u\) is expressed by equation (310). Hence the result is

What are the simpliﬁed forms of \(\tau\) for Couette ﬂow and for the case \(u_0 = 0\)?

Since we know that the pressure difference \(\frac{dp}{dx}=0\) for Couette flow, then we can obtain

Also, if the boundary velocity \(u_0=0\), then

## Problem 6.3#

Find the point in the channel \(y\) at which the velocity is a maximum.

At this point \(y\), the derivative of the velocity (equation (310)) must be zero and the second derivative of it must be negative. Using this relationship, we can rearrange the equation and obtain

## Problem 6.4#

Figure 6.3: Unidirectional ﬂow of a constant thickness layer of viscous ﬂuid down an inclined plane.

Consider the steady, unidirectional ﬂow of a viscous ﬂuid down the upper face of an inclined plane. Assume that the ﬂow occurs in a layer of constant thickness h, as shown in figure 6.3. Show that the velocity proﬁle is given by

where \(y\) is the coordinate measured perpendicular to the inclined plane (\(y = h\) is the surface of the plane), \(\alpha\) is the inclination of the plane to the horizontal, and \(g\) is the acceleration of gravity.

Imagine we have a tiny rectangle in the liquid as shown in figure 6.3, there would be three forces acting on this body: the dragging force \(F_{\tau(y)}\) to the downhill direction caused by shear stress \(\tau(y)\), the gravitational force \(F_g \sin\alpha\) pulling it to the downhill direction and the resisting drag force acting uphill \(-F_{\tau(y+\delta y)}\) that is due to the shear stress \(\tau(y+\delta y)\):

If we assume that the fluid flows in a constant velocity, that is, there is zero acceleration, then the net forces in the x-direction would be 0, which means the sum of the equations (147), (148) and (149) would be zero.

Rearrange equation (150), we can obtain

Applying the shear stress from equation (292) into equation (151), we have

Integrate equation (152) and we have

Recall equation (292), \(\frac{du}{dy}\) is related to shear stress \(\tau\). So we can apply the free surface condition (\(\tau=0\) at \(y=0\)), and obtain the constant \(C_1 = 0\).

Integrate equation (152) again, we have

where \(C_1=0\) from the free surface condition.

Then, we apply no-slip condition (\(u=0\)) at \(y=h\), and obtain \(C_2\).

Finally, we plug in \(C_1\) and \(C_2\) into equation (154), we can show that:

It is not hard to obtain the mean veolocity in the layer by integrating the equation (156) from \(0\) to \(h\) and then divide it by \(h\):

What is the thickness of the layer whose rate of flow down the incline is \(Q\) (per unit width in the direction perpendicular to the figure plane)?

Rearrange we get

## Pipe Flow#

With subsequent applications to ﬂows in aquifers and volcanic conduits in mind, we next consider viscous ﬂow through a circular pipe.

Figure 6.6: Poiseuille ﬂow through a circular pipe.

If we assume the fluid flows in constant velocity, then the driving force and resisting force should be balanced like this

If we rearrange the equation, we have the shear stress

where dp/dx is the pressure gradient along the pipe.

In the cylindrical geometry in Figure 6.6, the shear stress \(\tau\) is directly proportional to the radial gradient of the velocity \(u\)

Combining equations (161) and (162), we have

which can be integrated to give

We used the condition \(u = 0\) at \(r = R\). The velocity proﬁle in the pipe is a parabaloid of revolution; it is known as Poiseuille ﬂow.

It is not hard to get the following quantities:

where \(\mu\) is the mean velocity:

and \(u_{max}\) is the maximum velocity.

It is often convenient in ﬂuid mechanics to work in terms of dimensionless variables. The relation between the mean velocity in the pipe and the pressure gradient (166) can be put into standard dimensionless form by introducing two quantities: a dimensionless pressure gradient or friction factor f and the Reynolds number Re. The friction factor is deﬁned as

and the Reynolds number is given by

where \(D=2R\) is the pipe diameter.

Critical \(Re\) is around \(2200\) for pipe flow, above which the flow is turbulent and below which laminar. Although this number depends on the geometry of the pipe. Theoretically, for laminar flow, the relationship between \(f\) and \(Re\) is

Empirically, for turbulent flow, the relationship between \(f\) and \(Re\) is

## Problem 6.7#

Determine \(Re\) for asthenoshpheric type channel flow, assuming: \(\mu=4 \times 10^{19}\,Pa \cdot s, \rho=3200\,kg/m^3\), channel thickness is \(200\,km\) and the flow is driven solely by \(50\,mm/yr\) of motion of the overlying plate.

```
dpdx = 0
mu = 4* 10**19
h = 200000
u0 = 1.5844 * 10 ** (-9)
a,b=0,h
u_bar = mean_u(a,b,y)
print(u_bar)
```

```
7.922000000000002e-10
```

This problem illustrates that the viscosity of mantle rock is so high that the Reynolds number is generally small.

## Problem 6.8#

Figure 6.9: A semicircular aquifer with a circular cross section (a toroid). A hydrostatic head b is available to drive the ﬂow.

With the parameters provided below, what is the radius of the channel \(R\), the average velocity \(\bar{u}\) and is the flow laminar or turbulent?

```
b=50 # m, because the entrance of spring is 50 m above it
Q = 1.667*10**(-3) # Spring outputs: 100 L/min i.e.1.667*10**(-3) m3/s
R_prime = 1000 # m, because entrance of spring 2km from outlet
```

Now, we do not know if the flow is laminar or turbulent, but we can start with assuming the flow is laminar. Hence, the laminar flux is

Rearrange the equation we have the radius of the channel \(R\) (under the laminar flow assumption)

The average velocity is therefore

Now, we can verify that if the flow is laminar or turbulent by calculating the \(Re\), which is \(1.49 \times 10^7\). This is obviously larger than the threshold 2200, so the flow is actually turbulent. Thus, we need to recalculate the channel radius and mean velocity under the assumption that the flow is turbulent using the equation (171).

Plugging in the \(f\) (equation (168)) and \(Re\) (equation (169)) we defined earlier into the relationship in (171), we have the mean velocity \(\bar{u}\) after rearranging

Using the simple relationship in the equation (176), we can obtain the area, and thus the radius (\(R=0.025\,m\)) of the channel.

## Problem 6.9#

Figure 6.10

Determine the rate at which magma flows up a twodimensional channel of width \(d\) under the buoyant pressure gradient \(-(\rho_s- \rho_l)g\). Assume laminar flow.

Again, we can assume that the fluid is steady and solve the force balance equation

Put equations (179), (180) and (181) into (178), we can obtain

Integrating it twice we have

Because of the symmetry of the velocity profile, we can believe that \(C_1\) is zero, otherwise the equation (183) would not be symmetric. And plugging in the no-slip boundary condition where \(u=0\) at \(x=\pm\frac{d}{2}\), we have \(C_2 = - \frac{(\rho_s-\rho_l)g}{8\mu}d^2\).

As a result, the velocity profile for the channel is