Professional Documents
Culture Documents
r a, Ua
(ex302)
ra=1040 kg/m3 h
D r 0, U0
Ws
z0
solid bed
(ex322)
ra=1020 kg/m3
(ex336)
ra=1020 kg/m3
Ua=0.026 m/s
Sediment Scour
continuous discrete
curve approximation
Field variables:
2 d𝑓 Δ𝑓 𝑓2 − 𝑓1
Equations: ≈ =
d𝑥 Δ𝑥 𝑥2 − 𝑥1
f
1
x
x
Basic Principles of CFD
1. Discretise space:
replace field variables (r, 𝑢, 𝑣, 𝑤, 𝑝, …) by values at a finite number of nodes
2. Discretise equations:
continuum equations → algebraic equations
3. Solve:
large system of simultaneous equations
Stages of a CFD Analysis
• Pre-processing:
‒ formulate problem (geometry, equations, boundary conditions)
‒ construct computational mesh
• Solving:
‒ discretise
‒ solve
• Post-processing:
‒ analyse
‒ visualise (graphs and plots)
Fluid-Flow Equations
• Integral (control-volume)
• Differential
Integral (Control-Volume) Approach
Consider the budget of any transported physical quantity in any control volume
• Several types:
‒ fixed-point (“Eulerian”): conservative
‒ moving with the flow (“Lagrangian”): non-conservative
‒ derived variables; e.g. potential flow
Main Methods for CFD
i,j+1
• Finite-difference:
‒ discretise differential equations i-1,j i,j i+1,j
• Finite-volume:
‒ discretise control-volume equations vn
0 = 𝑛𝑒𝑡 𝑚𝑎𝑠𝑠 𝑜𝑢𝑡𝑓𝑙𝑜𝑤 = ρ𝑢𝐴 𝑒 − ρ𝑢𝐴 𝑤 + ρ𝑣𝐴 𝑛 − ρ𝑣𝐴 𝑠 uw ue
vs
• Finite-element:
‒ represent solution as a weighted sum of basis functions
o
45
10 cm
2 m/s
S1 S2
Water (density 1000 kg m–3) flows at 2 m s–1 through a circular pipe of diameter 10 cm. What is
the mass flux 𝐶 across the surfaces 𝑆1 and 𝑆2 ? o
45
10 cm
2 m/s
S1 S2
In general: 𝐶 = ρu • A
Example Q2
D = 10 cm
F
u = 8 m/s
A water jet strikes normal to a fixed plate as shown. Compute the force 𝐹 required to hold the
plate fixed.
D = 10 cm
F
u = 8 m/s
−𝐹 = 0 − (ρ𝑈𝐴)𝑈
𝐹 = ρ𝑈 2 𝐴
2
π × 0. 1
= 1000 × 82 ×
4
= 503 N
Example Q3
Volume V
𝑉 = 30 × 8 × 5 = 1200 m3
Concentration area A
(ρ𝑉)ϕ0 = 2 kg
2
ϕ0 = = 1.389 × 10−3
1.2 × 1200
1389 ppm
An explosion releases 2 kg of a toxic gas into a room of dimensions 30 m 8 m 5 m. Assuming
the room air to be well-mixed and to be vented at a speed of 0.5 m s–1 through an aperture of
area 6 m2, calculate:
(b) the time taken to reach a safe concentration of 1 ppm.
ϕ0 = 1389 ppm
Volume V
𝑉 = 1200 m3
Concentration area A
𝐴 = 6 m2
U
𝑈 = 0.5 m s −1
d ϕ0
(ρ𝑉ϕ) = 0 − (ρ𝑢𝐴)ϕ eλ𝑡 =
d𝑡 ϕ
dϕ 𝑢𝐴 1 ϕ0 1
=− ϕ, ϕ = ϕ0 at 𝑡 = 0 𝑡 = ln = ln 1389 = 2895 s
d𝑡 𝑉 λ ϕ 0.0025
dϕ ≈ 48 min
𝑢𝐴
= −λϕ λ= = 0.0025 s −1
d𝑡 𝑉
ϕ = ϕ0 e−λ𝑡