Topic 3
Topic 3
Topic 3
Dynamics (CFD)
BTD3233 / BHA4532
Topic 3
Related Course Outcomes
BTD BHA
Lecture Outline
John, D., & Anderson, J. R. (1995). Computational fluid dynamics: the basics with applications. Mechanical Engineering Series.
Finite Control Volume
• In practice, we cannot track an infinite number
of fluid particles / elements (Lagrangian
approach)
• We fix a region in space and monitor how fluid
properties change (called Eulerian approach) Control volume (CV)
• fixed in space and time
𝑑𝐵𝑠𝑦𝑠 𝑑 𝑑
= න 𝜌𝑏𝑑𝑉 = න 𝜌𝑏𝑑𝑉 + න 𝜌𝑏𝒖 ∙ 𝒏𝑑𝑆
𝑑𝑡 𝑑𝑡 𝑉 𝑑𝑡 𝐶𝑉 𝐶𝑆
*Note
• -ve sign means that pressure p is always
acting onto the CS
• even when the flow is outwards, the
pressure acts onto the CS
Conservation of momentum
Example:
Answer: F = 2.25 kN
Conservation of momentum
Example:
Find the force required to hold the plug in place at the exit of the water pipe. The flow rate is
1.5 m^3/s and the upstream pressure is 3.5 MPa.
Answer: F = 90.4 kN
Conservation of energy
Tu, J., Yeoh, G. H., & Liu, C. (2018). Computational fluid dynamics: a practical approach. Butterworth-Heinemann.
Conservation of energy
Example:
We describe the surface forces that acts on a CV using the stress tensor 𝜎𝑖𝑗 𝜎𝑖𝑗
𝜎𝑥𝑥 𝜎𝑥𝑦 𝜎𝑥𝑧 Stress in the 𝑗 direction
𝜎𝑖𝑗 = 𝜎𝑦𝑥 𝜎𝑦𝑦 𝜎𝑦𝑧 acting on a surface that is
𝜎𝑧𝑥 𝜎𝑧𝑦 𝜎𝑧𝑧 normal to the 𝑖 direction
𝜎𝑧𝑦 𝜎𝑥𝑥
Surface force acting on a differential surface element: 𝜎𝑧𝑥
𝜎𝑥𝑧
𝑑𝑭𝒔𝒖𝒓𝒇𝒂𝒄𝒆 = 𝜎𝑖𝑗 ∙ 𝒏𝑑𝐴
𝑦 𝜎𝑧𝑧
Total surface force acting on a CS:
𝑥
𝑭𝒔𝒖𝒓𝒇𝒂𝒄𝒆 = න 𝜎𝑖𝑗 ∙ 𝒏𝑑𝐴 𝑧
Components of the stress tensor on the right,
𝐶𝑆
top and front faces
Surface forces acting on a CV (fluid at rest)
-ve sign means that pressure always acts inward
hydrostatic thermodynamics
pressure
=
pressure
1
𝑃𝑚𝑒𝑐ℎ𝑎𝑛𝑖𝑐𝑎𝑙 = − 𝜎𝑥𝑥 + 𝜎𝑦𝑦 + 𝜎𝑧𝑧 also called “mean pressure”
3
2
= 𝑃 − 𝜆 + 𝜇 ∇𝑽
3
For incompressible flow ∇𝑽 = 0, thus 𝑃𝑚𝑒𝑐ℎ𝑎𝑛𝑖𝑐𝑎𝑙 = 𝑃
𝑃𝑚𝑒𝑐ℎ𝑎𝑛𝑖𝑐𝑎𝑙 ≠ 𝑃, but.. For most cases ∇𝑽 is really small so we can assume 𝑃𝑚𝑒𝑐ℎ𝑎𝑛𝑖𝑐𝑎𝑙 ≈ 𝑃
2
Stokes’ hypothesis (1845): 𝜆 + 3 𝜇 = 0 (Stokes assumes away the problem)
What is a Field Variable? properties of the fluid
element at 𝑡 = 𝑡1
• In the Eulerian approach, we defined a CV
𝑽𝟏 = 𝑽 𝑥1 , 𝑦1 , 𝑧1 , 𝑡1
• We do not track each particle flowing in and out fluid element at
𝒂𝟏 = 𝒂 𝑥1 , 𝑦1 , 𝑧1 , 𝑡1
• Instead, we define field variables within the CV 𝑡 = 𝑡1
𝜌1 = 𝜌 𝑥1 , 𝑦1 , 𝑧1 , 𝑡1
• Field variables are functions of space (x, y, z) and time (t) 𝑃1 = 𝑃 𝑥1 , 𝑦1 , 𝑧1 , 𝑡1
• At a particular space and time within the CV, there is a
particular value for a variable for whichever fluid particle that 𝑽𝟏
is occupying the location at that time
At point 1: 𝜌1 = 𝜌 𝑥1 , 𝑦1 , 𝑧1 , 𝑡1
At point 2: 𝜌2 = 𝜌 𝑥2 , 𝑦2 , 𝑧2 , 𝑡2
𝜕𝜌 𝜕𝜌 𝜕𝜌 𝜕𝜌
𝜌 = 𝜌1 + 𝑥 − 𝑥1 + 𝑦 − 𝑦1 + 𝑧 − 𝑧1 + 𝑡 − 𝑡1 + higher order terms
𝜕𝑥 1
𝜕𝑦 1
𝜕𝑧 1
𝜕𝑡 1
What is Substantial Derivative? (2/3)
Evaluate at point 2 and rearrange (ignore higher order terms):
𝜕𝜌 𝜕𝜌 𝜕𝜌 𝜕𝜌
𝜌2 = 𝜌1 + 𝑥2 − 𝑥1 + 𝑦2 − 𝑦1 + 𝑧2 − 𝑧1 + 𝑡2 − 𝑡1
𝜕𝑥 1
𝜕𝑦 1
𝜕𝑧 1
𝜕𝑡 1
𝜌2 − 𝜌1 𝜕𝜌 𝑥2 − 𝑥1 𝜕𝜌 𝑦2 − 𝑦1 𝜕𝜌 𝑧2 − 𝑧1 𝜕𝜌
=+ + + +
𝑡2 − 𝑡1 𝜕𝑥 1
𝑡2 − 𝑡1 𝜕𝑦 1
𝑡2 − 𝑡1 𝜕𝑧 1
𝑡2 − 𝑡1 𝜕𝑡 1
average time rate of the
change of density as the
fluid element moves
from point 1 to point 2
At the limit 𝑡2 → 𝑡1 :
𝐷𝜌 𝜕𝜌 𝜕𝜌 𝜕𝜌 𝜕𝜌
=𝑢 +𝜈 +𝑤 +
𝐷𝑡 𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑡
What is Substantial Derivative? (3/3)
𝐷𝜌 𝜕𝜌
*The terms 𝐷𝑡 and 𝜕𝑡 are numerically
𝐷𝜌 𝜕𝜌 𝜕𝜌 𝜕𝜌 𝜕𝜌 and physically different quantities
=𝑢 +𝜈 +𝑤 +
𝐷𝑡 𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑡
𝐷𝜙 𝜕𝜙 𝜕𝜙 𝜕𝜙 𝜕𝜙 𝐷𝜙 𝜕𝜙
=𝑢 +𝜈 +𝑤 + = + 𝑽 ∙ 𝜵𝜙
𝐷𝑡 𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑡 𝐷𝑡 𝜕𝑡
Conservation of mass
𝑽 = 𝑢𝒊Ƹ + 𝜈 𝒋Ƹ + 𝑤𝒌
Derivation using the divergence theorem
𝑢 = 𝑢 𝑥, 𝑦, 𝑧, 𝑡
This is the continuity eqn. from the RTT: 𝑣 = 𝑣 𝑥, 𝑦, 𝑧, 𝑡
𝜕 𝑤 = 𝑤 𝑥, 𝑦, 𝑧, 𝑡
න 𝜌 𝑑𝑉 + න 𝜌𝑽 ⋅ 𝒏 𝑑𝐴 = 0 𝜌 = 𝜌 𝑥, 𝑦, 𝑧, 𝑡
𝜕𝑡 𝐶𝑉 𝐶𝑆
x 𝜌𝑣 𝑑𝑥 𝑑𝑧
z infinitesimally small element
Conservation of mass (2/3)
Model of an infinitesimally small element fixed in space
𝜕 𝜌𝑢 𝜕 𝜌𝑣 𝜕 𝜌𝑤 𝜕𝜌
𝜕𝜌 + + 𝑑𝑥𝑑𝑦𝑑𝑧 = − 𝑑𝑥𝑑𝑦 𝑑𝑧
𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑡
− 𝑑𝑥𝑑𝑦 𝑑𝑧
𝜕𝑡
volume of the 𝜕𝜌 𝜕 𝜌𝑢 𝜕 𝜌𝑣 𝜕 𝜌𝑤
fluid element + + + =0
𝜕𝑡 𝜕𝑥 𝜕𝑦 𝜕𝑧
continuity
kgൗ equation
m3 ∙ m3 = kg
𝜕𝜌
s s + ∇ ⋅ 𝜌𝑽 = 𝟎
Look at the units!
𝜕𝑡
Example 3.1
Momentum equation
Derivation using the divergence theorem
Divergence theorem
𝜕
𝑭𝒕𝒐𝒕𝒂𝒍 = න 𝑽𝜌 𝑑𝑉 + න ∇ ∙ 𝜌𝑽𝑽 𝑑𝑉
𝜕𝑡 𝐶𝑉 𝐶𝑉
𝜕
= 𝜌𝑽 + ∇ ∙ 𝜌𝑽𝑽 𝑑𝑉
𝜕𝑡
𝐶𝑉
Momentum equation
Model of an infinitesimally small element
fixed in space • Apply 𝑭 = 𝑚𝒂 to the model of the flow
• Force is divided into
• Body forces
• acts on the element “at a distance”
• gravitational, electric, magnetic etc
• Surface forces
• acts on the surface of the element directly
• only two sources
i. pressure distribution acting on the surface
ii. shear and normal stress distribution acting on the surface
𝑭 = 𝑚𝒂
Pressure Viscous
𝑃
Normal Shear
𝜏𝑖𝑖 𝜏𝑖𝑗
Momentum equation 𝜏𝑦𝑥 +
𝜕𝜏𝑦𝑥
𝑑𝑦 𝑑𝑥 𝑑𝑧
𝜕𝑦
Surface forces in the x-direction surface area
= 𝑑𝑥 𝑑𝑧
𝜕𝜏𝑥𝑥
𝜏𝑥𝑥 𝑑𝑦 𝑑𝑧 𝜏𝑥𝑥 + 𝑑𝑥 𝑑𝑦 𝑑𝑧
𝜕𝑥
surface area
= 𝑑𝑦 𝑑𝑧
𝜏𝑧𝑥 𝑑𝑥 𝑑𝑦
𝜏𝑦𝑥 𝑑𝑥 𝑑𝑧
surface area
= 𝑑𝑦 𝑑𝑧
𝜕𝑝
𝑝𝑑𝑦 𝑑𝑧 𝑝+ 𝑑𝑥 𝑑𝑦 𝑑𝑧
𝜕𝑥
surface area
= 𝑑𝑥 𝑑𝑦 𝜕𝜏𝑧𝑥
𝜏𝑧𝑥 + 𝑑𝑧 𝑑𝑥 𝑑𝑦
𝜕𝑧
Momentum equation
Total force in the x-direction
Assume the only body force that is acting on the fluid element is gravity:
We still need suitable expressions for the stresses expressed in terms of velocity and pressure fields.
Momentum equation Introduce these stress terms into the equation:
Stokes (1984)
∂𝑢 ∂𝜈 ∂𝑢
𝜏𝑥𝑥 = 𝜆 ∇ ⋅ 𝑽 + 2𝜇 𝜏𝑥𝑦 = 𝜏𝑦𝑥 = 𝜇 +
∂𝑥 ∂𝑥 ∂𝑦
∂𝑣 ∂𝑢 ∂𝑤
𝜏𝑦𝑦 = 𝜆 ∇ ⋅ 𝑽 + 2𝜇 𝜏𝑥𝑧 = 𝜏𝑧𝑥 = 𝜇 + Stokes (1845)
∂𝑦 ∂𝑧 ∂𝑥
∂𝑤 ∂𝑤 ∂𝑣
𝜏𝑧𝑧 = 𝜆 ∇ ⋅ 𝑽 + 2𝜇 𝜏𝑦𝑧 = 𝜏𝑧𝑦 = 𝜇 +
∂𝑧 ∂𝑦 ∂𝑧
2
𝜆=− 𝜇 Stokes’ hypothesis
𝜇: viscosity 3
𝜆: viscosity coefficient
Momentum equation
Simplify this by introducing incompressibility with constant viscosity:
Example
A liquid flows down an inclined plane surface in a steady, fully developed laminar film of thickness ℎ. Simplify the
continuity and Navier-Stokes equations to model this flow field. Obtain expressions for the liquid velocity profile,
the shear stress distribution, the volume flow rate, and the average velocity. Relate the liquid film thickness to the
volume flow rate per unit depth of surface normal to the flow. Calculate the volume flow rate in a film of water
ℎ = 1 mm thick, flowing on a surface 𝑏 = 1 mm wide, inclined at 𝜃 = 15°to the horizontal.
Answer:
1/3
𝑠𝑖𝑛𝜃 𝑦2 3𝜇𝑄
𝑢 = 𝜌𝑔 ℎ𝑦 − ℎ=
𝜇 2 𝑏𝜌𝑔𝑠𝑖𝑛𝜃
𝑏𝜌𝑔𝑠𝑖𝑛𝜃 ℎ3
𝑄=
𝜇 3
𝑄 𝑏𝜌𝑔𝑠𝑖𝑛𝜃 ℎ3
𝑉ത = =
𝑏ℎ 𝜇 3
Pressure
Fluid at rest • The only stress acting on the fluid element is the hydrostatic pressure P
• P always acts inward
• P is the same as thermodynamic pressure
• P is related to T and 𝜌 through the equation of state
Moving fluid
• P acts inward
• Viscous stresses also exist
Time rate of change Net rate of heat Net rate of work done on
of energy in the = added into the fluid + the fluid element due to
fluid element element body and surface forces
𝑑𝐸
= 𝑄ሶ 𝑛𝑒𝑡,𝑖𝑛 − 𝑊ሶ 𝑛𝑒𝑡,𝑜𝑢𝑡
𝑑𝑡
Energy equation (2/11)
Model of an infinitesimally small element Net rate of work done on
moving in a velocity field Let’s consider this term first: the fluid element due to
body and surface forces
time 𝑡
force 𝑭
𝒅𝒓
𝑡 + 𝑑𝑡 Work done on the body
𝑊 = 𝑭 ∙ 𝒅𝒓
in time interval 𝑑𝑡
position vector 𝒓𝟏
𝒅𝒓
𝒓𝟐 Rate of work done 𝑊ሶ = 𝑭 ∙
𝑑𝑡
=𝑭∙𝑽
Rate of work done on a moving
body by external force 𝑭
Similarly, rate of work done by body
force acting on a fluid element = 𝜌𝒇 ∙ 𝑽 𝑑𝑥𝑑𝑦𝑑𝑧
Energy equation (3/11)
Model of an infinitesimally small element
moving in a velocity field
𝜕𝑢𝜏𝑥𝑥
𝑢𝜏𝑥𝑥 𝑑𝑦 𝑑𝑧 𝑢𝜏𝑥𝑥 + 𝑑𝑥 𝑑𝑦 𝑑𝑧
𝜕𝑥
surface area
= 𝑑𝑦 𝑑𝑧
𝑢𝜏𝑧𝑥 𝑑𝑥 𝑑𝑦
𝑢𝜏𝑦𝑥 𝑑𝑥 𝑑𝑧
surface area
= 𝑑𝑦 𝑑𝑧
𝜕𝑝
𝑢𝑝𝑑𝑦 𝑑𝑧 𝑢𝑝 + 𝑑𝑥 𝑑𝑦 𝑑𝑧
𝜕𝑥
surface area
= 𝑑𝑥 𝑑𝑦 𝜕𝜏𝑧𝑥
𝑢𝜏𝑧𝑥 + 𝑑𝑧 𝑑𝑥 𝑑𝑦
𝜕𝑧
Energy equation (5/11)
Model of an infinitesimally small element
moving in a velocity field
Net rate of work done on the 𝜕𝑢𝑝 𝜕𝑣𝑝 𝜕𝑤𝑝 𝜕𝑢𝜏𝑥𝑥 𝜕𝑢𝜏𝑦𝑥 𝜕𝑢𝜏𝑧𝑥 𝜕𝑣𝜏𝑥𝑦 𝜕𝑣𝜏𝑦𝑦
ቈ− + + + + + + +
fluid element by surface forces = 𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑥 𝜕𝑦
in all directions 𝜕𝑣𝜏𝑧𝑦 𝜕𝑤𝜏𝑥𝑧 𝜕𝑤𝜏𝑦𝑧 𝜕𝑤𝜏𝑧𝑧
+ + + + 𝑑𝑥𝑑𝑦 𝑑𝑧
𝜕𝑧 𝜕𝑥 𝜕𝑦 𝜕𝑧
Net rate of work done on 𝜕𝑢𝑝 𝜕𝑣𝑝 𝜕𝑤𝑝 𝜕𝑢𝜏𝑥𝑥 𝜕𝑢𝜏𝑦𝑥 𝜕𝑢𝜏𝑧𝑥 𝜕𝑣𝜏𝑥𝑦 𝜕𝑣𝜏𝑦𝑦
ቈ− + + + + + + +
the fluid element due to = 𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑥 𝜕𝑦
body and surface forces 𝜕𝑣𝜏𝑧𝑦 𝜕𝑤𝜏𝑥𝑧 𝜕𝑤𝜏𝑦𝑧 𝜕𝑤𝜏𝑧𝑧
+ + + + 𝑑𝑥𝑑𝑦 𝑑𝑧 + 𝜌𝒇 ∙ 𝑽 𝑑𝑥𝑑𝑦𝑑𝑧
𝜕𝑧 𝜕𝑥 𝜕𝑦 𝜕𝑧
Energy equation (6/11)
Model of an infinitesimally small element The heat flux is due to:
moving in a velocity field i. volumetric heating such as absorption or emission of radiation
ii. heat transfer across the surface due to temperature gradients
Net rate of heat (thermal conduction)
Let’s consider this term: added into the fluid
element
1 volumetric heating of element = 𝜌𝑞𝑑𝑥𝑑𝑦𝑑𝑧
ሶ
thermal conduction
Net heat transferred due 𝜕𝑞ሶ 𝑥 𝜕𝑞ሶ 𝑥
to thermal conduction in 𝑞ሶ 𝑥 − 𝑞ሶ 𝑥 + 𝑑𝑥 𝑑𝑦 𝑑𝑧 = − 𝑑𝑥𝑑𝑦𝑑𝑧
the x-direction 𝜕𝑥 𝜕𝑥
𝜕 𝑞ሶ 𝑥
𝑞ሶ 𝑥 𝑑𝑦 𝑑𝑧 𝑞ሶ 𝑥 + 𝑑𝑥 𝑑𝑦 𝑑𝑧
𝜕𝑥
𝜕𝑇 𝜕𝑇 𝜕𝑇
Fourier’s law of heat conduction: 𝑞ሶ 𝑥 = −𝑘 𝑞ሶ 𝑦 = −𝑘 𝑞ሶ 𝑧 = −𝑘
𝜕𝑥 𝜕𝑦 𝜕𝑧
thermal conductivity: 𝑘
After some manipulation, this is the energy equation in non-conservation form completely in
the terms of the field variables:
2
𝐷𝑒 𝜕 𝜕𝑇 𝜕 𝜕𝑇 𝜕 𝜕𝑇 𝜕𝑢 𝜕𝜈 𝜕𝑤 𝜕𝑢 𝜕𝑣 𝜕𝑤
𝜌 = 𝜌𝑞ሶ + 𝑘 + 𝑘 + 𝑘 −𝑃 + + +𝜆 + +
𝐷𝑡 𝜕𝑥 𝜕𝑥 𝜕𝑦 𝜕𝑦 𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑥 𝜕𝑦 𝜕𝑧
2 2 2 2 2 2
𝜕𝑢 𝜕𝜈 𝜕𝑤 𝜕𝑢 𝜕𝑤 𝜕𝜈 𝜕𝑤 𝜕𝑢 𝜕𝜈
+𝜇 2 +2 +2 + + + + + + ൩
𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦 𝜕𝑦 𝜕𝑥
𝐷𝑒 𝜕 𝜕𝑇 𝜕 𝜕𝑇 𝜕 𝜕𝑇
𝜌 = 𝜌𝑞ሶ + 𝑘 + 𝑘 + 𝑘 +Φ
𝐷𝑡 𝜕𝑥 𝜕𝑥 𝜕𝑦 𝜕𝑦 𝜕𝑧 𝜕𝑧
energy diffusion
(conduction)
rate of internal viscous
heat generation dissipation
∇ ⋅ 𝜌𝑢𝑽 = 𝑢∇ ⋅ 𝜌𝑽 + 𝜌𝑽 ⋅ ∇𝑢
Rearrange: 𝜌𝑽 ⋅ ∇𝑢 = ∇ ⋅ 𝜌𝑢𝑽 − 𝑢∇ ⋅ 𝜌𝑽