Week4 Fluid
Week4 Fluid
1
What do you see?
2
Outline
• Pressure
Gage pressure and Absolute pressure
Pascal’s principle
• Archimedes’ principle and buoyant force
• Ideal Fluid
• Flow Rate
Equation of Continuity
• Bernoulli’s equation
3
Fluid Mechanics
Stationary Fluid Moving Fluid
5
Pressure
• When we apply force on area, we obtain
pressure. 𝐹
Pressur 𝑝=
𝐴 Unit: or (pascal)
e =
9
10
Acting force on the dam
A dam with width contains water depth .
Given the density of water . Find the
acting force on the dam.
Pressure at water surface (gauge pre
Pressure at bottom
0 + 𝜌 𝑔𝐷 𝜌 𝑔𝐷
Average 𝑝
pressure
av = =
2 2
𝐹 =𝑝 av 𝐴
Force
𝜌 𝑔𝐷
¿ (𝑊𝐷 )
2
2
𝜌 𝑔𝑊 𝐷
¿
2 11
Pascal’s principle
Upward force
Adding
pressure
at smallDownward force
piston Resultin
g in
pressure
at large
piston
13
14
Archimedes’ principle:
Buoyant force
Buoya
nt ¿
force
Buoya ¿ 𝑚 dis 𝑔
nt
force ¿ 𝜌 ℓ 𝑉 dis 𝑔
𝐹 𝐵 =𝜌 ℓ 𝑉 dis 𝑔
15
Archimedes’ principle:
Demonstration
16
Direction of Buoyant force
17
Iceberg
Given the density of ice and density of
sea water . Calculate the fraction (%) of
volume of undersea iceberg.
Buoyant force Equilibrium of force
𝜌 water 𝑉 𝑢𝑛𝑑𝑒𝑟𝑠𝑒𝑎 𝑔=𝑚ice 𝑔
𝜌 water 𝑉 𝑢𝑛𝑑𝑒𝑟𝑠𝑒𝑎 𝑔=𝜌 ice 𝑉 𝑡𝑜𝑡𝑎𝑙 𝑔
𝑉 𝑢𝑛𝑑𝑒𝑟𝑠𝑒𝑎 𝜌 ice
=
𝑉 𝑡𝑜𝑡𝑎𝑙 𝜌 water
3
0.92 × 10
¿ 3
1.03 × 10
weight or 18
Ideal Fluid
Four assumptions
• Incompressible Density of fluid is
constant.
• Nonviscous No viscous force in fluid.
• Irrotational No rotation of fluid
element.
• Steady Flow of fluid does not change
with time. Streamlines depict the
pattern of flow. At a
specific point on
streamline, the tangent
of line is the direction
of flow velocity. The 19
Flow Rate
• Flow rate is the rate of
volume that flow pass a
sectional area per unit
time.
• Example: The water flow
for ¿ we obtain
1 minute,
Flow
the volume of 1.5
Rate −3
liter.
3
1.5 × 10 m
¿
60 s
20
Flow rate in a pipe
Flow rate
distance of in time resulting in a volume of
𝐴∆𝑥
Flow ¿ ¿
∆ 𝑡 ¿ 𝐴𝑣
rate
21
Continuity equation
• We can find the flow rate
from
• Inlet flow rate and outlet
flow rate
• The density of fluid is
constant and inlet mass
equals outlet mass
(conservation of mass).
¿
𝑛𝑙𝑒𝑡 𝑓𝑙𝑜𝑤 𝑟𝑎𝑡𝑒
𝑜𝑢𝑡𝑙𝑒𝑡 𝑓𝑙𝑜𝑤𝑟𝑎𝑡𝑒
𝐴1 𝑣 1 = 𝐴2 𝑣 2
“continuity equation”
22
Why do we squeeze
rubber hose?
• continuity equation
𝐴1 𝑣 1 = 𝐴 2 𝑣 2 or constant
• When decreases
velocity of fluid will
increase
• When increases
velocity of fluid will
decrease
h
reference level
24
Bernoulli’s principle
• Consider the fluid at
level of travels to and
the change of velocity
from to be
• Work (per volume)
equals to difference of
total energy1 (per2
(2 ) (2
1
𝑝 1 − 𝑝 2= 𝜌 𝑣 2 + 𝜌 𝑔 h 2 − 𝜌 𝑣 21 + 𝜌 𝑔 h1
volume)
)
ExternalEnergy
work at position
Energy2 at position 1
1 1
𝑝 1 + 𝜌 𝑣 21 + 𝜌 𝑔 h1 =𝑝 2+ 𝜌 𝑣 22+ 𝜌 𝑔 h2
• We obtain
2 2
Or “Bernoulli’s
constant equation”
A hole at a side of the
container
• We need to find velocity
of water from the hole at
the side of the container.
1
• 𝑝Bernoulli’s2 equation 1
2 + 𝜌 𝑣 2 + 𝜌 𝑔 h 2 =𝑝 1 + 𝜌 𝑣 21 + 𝜌 𝑔 h1
2 2
• The surface of water at
points 1 and 2 contact the
air, thus . Assume small hole,
• Surface at point 1 is very velocity of water
larger 1than2 the cross depend on the
section2 𝜌area
𝑣 + 𝜌of
𝑔 hthe 𝑔 h1
2=𝜌 hole, height from the hole
thus and we 𝑣can 2
= 2assume
𝑔 ( h 1 − h2 ) to the surface.
𝑣 =√ 2 𝑔∆ h 26
Fire hose
A fire hose from a fire truck transmit
water at flow rate liter per minute. The
radius of fire hose is at inlet side and
radius at outlet side to put out the fire.
a) Calculate the velocity at the inlet
side and velocity at the outlet side.
If we would like the transmit the water to
the height of
b) Calculate the pressure would the
pump at the fire truck applied.
27
L/min
radius radius
3 −3
1.0 ×10 ×10 −2 3 −1
a) Flow rate𝑄= =1.7 × 10 m s
60
We find the velocity from
−2
𝑄 1.7 × 10 −1
𝑣 1= 2
= 2
= 1.5 ms
𝜋𝑟1 𝜋 (0. 06)
−2
𝑄 1.7 × 10 −1
𝑣 2= 2
= 2
= 2.7 ms
𝜋 𝑟 2 𝜋 ( 0. 045)
28
b) Bernoulli’s principle
1 1
𝑝1 + 𝜌 𝑣 21 + 𝜌 𝑔 h1 =𝑝 2+ 𝜌 𝑣 22+ 𝜌 𝑔 h2
2 2
1 1
𝑝 1 + 𝜌 𝑣 21=𝑝 2 + 𝜌 𝑣 22 + 𝜌 𝑔 h 2
2 2
1
𝑝 1=𝑝 2 + 𝜌 ( 𝑣 22 − 𝑣 21 ) + 𝜌 𝑔 h2
2
Thus, we obtain
1
𝑝 1=1 . 03 ×10 + (1000) ( ( 2 . 7 ) − ( 1 .5 ) ) +(1000)(10)(10)
5 2 2
2
29
Pressure difference: from
difference of velocities
• Consider Bernoulli’s equation
for a flow in a pipe at the
same level. (Compare point
1 and point 2 in the picture.)
1 2 1 2
𝑝 1 + 𝜌 𝑣 1=𝑝 2 + 𝜌 𝑣 2
2 2
High Low
Low High
• Rearrange the
equation 1 2 1
𝑝 −𝑝 = 𝜌𝑣 − 𝜌𝑣
2
1 2 2 1
2 2
30
Pressure difference:
Moving vehicles
High Low
velocity velocity
air air
Low High
pressure pressure
31
Pressure difference:
Lifting force of airplane
wings
2
𝑚𝑔 1
= 𝜌 ( 1.1 −1 ) 𝑣
2 2
2𝐴 2
2 2 𝑚𝑔
𝑣 =
𝜌 ( 2 𝐴 ) ( 1.12 −1 )
33
Example
34
35
mple
mple model of a flying plane
ider the following python code
import numpy as np
import matplotlib.pyplot as plt
rho = 1.0
m = 500
g = 9.8
A = 15
vx_ratio = 1.1
dt = 0.1
ax_const = 20
t = np.arange(0,50,dt)
data_lenght = len(t)
ax_time_Limit = 5
ay_time_limit1 = 6
ay_time_limit2 = 10.75
ax = np.zeros(data_lenght)
for i in range(data_lenght):
if(t[i]<=ax_time_Limit):
ax[i] = ax_const
else:
ax[i] = 0
36
x0 = 0
vx0 = 0
x = np.zeros(data_lenght)
vx = np.zeros(data_lenght)
x[0] = x[0]
vx[0] = vx[0]
for i in range(1,data_lenght):
vx[i] = vx[i-1] + ax[i-1]*dt
x[i] = x[i-1] + vx[i-1]*dt
vx_up = vx_ratio*vx
plt.subplot(3,3,1)
plt.plot(t,vx)
plt.title('velocity x',color='g')
plt.subplot(3,3,2)
plt.plot(t,x)
plt.title('x position',color='b')
plt.subplot(3,3,3)
plt.plot(t,total_Force_y_NN)
plt.title('L - mg (no correction)',color ='r')
plt.subplot(3,3,4)
plt.plot(t,total_Force_y)
plt.title('total Force y',color ='r')
plt.subplot(3,3,5)
plt.plot(t,vy)
plt.title('velocity y',color='g')
plt.subplot(3,3,6)
plt.plot(t,y)
plt.title('y position',color='b')
plt.subplot(3,3,7)
plt.plot(x,y)
plt.title('Path of the plane',color='r')
38
Output
39
ent
40