Professional Documents
Culture Documents
CFD has been successfully applied in many areas of fluid mechanics. These include
aerodynamics of cars and aircraft, hydrodynamics of ships, flow through pumps and turbines,
combustion and heat transfer, chemical engineering. Applications in civil engineering include
wind loading, vibration of structures, wind and wave energy, ventilation, fire, explosion
hazards, dispersion of pollution, wave loading on coastal and offshore structures, hydraulic
structures such as weirs and spillways, sediment transport. More specialist CFD applications
include ocean currents, weather forecasting, plasma physics, blood flow, heat transfer around
electronic circuitry.
This range of applications is very broad and involves many different fluid phenomena. In
particular, the CFD techniques used for high-speed aerodynamics (where compressibility is
significant, but viscous and turbulent effects are often unimportant) are very different from
those used to solve the incompressible, turbulent flows typical of mechanical and civil
engineering.
Although many elements of this course are widely applicable, the focus will be on simulating
viscous, incompressible flow by the finite-volume method.
f
(2) The equations of motion are discretised:
(3) The resulting system of algebraic equations is solved to give values at the nodes.
Pre-processing:
formulate problem (geometry, equations, boundary conditions);
construct a computational mesh (set of control volumes).
Solving:
discretise the governing equations;
solve the resulting algebraic equations.
Post-processing:
analyse results (calculate derived quantities: forces, flow rates, ... );
visualise (graphs and plots).
The equations of fluid flow are based on fundamental physical conservation principles:
mass: change of mass = 0
momentum: change of momentum = force time
energy: change of energy = work + heat
In fluid flow these are usually expressed as rate equations; i.e. rate of change =
Additional equations may apply for non-homogeneous fluids (e.g. multiple phases or
dissolved chemicals).
For a control volume the balance of any physical quantity over an interval of time is
CHANGE = (IN OUT) + CREATED
In fluid mechanics this is usually expressed in rate form by dividing by the time interval (and
transferring net transfer through the boundary to the LHS); regarding outward as positive:
RATE OF CHANGE NET FLUX SOURCE
inside V (1)
inside V throughboundaryof V
This is a generic equation, irrespective of whether the quantity is mass, momentum, chemical
content, etc. Thus, instead of lots of different equations we can consider (Section 4) the
numerical solution of a generic scalar-transport equation.
The finite-volume method, which is the subject of this course, is based on approximating
these control-volume equations.
1
Some authors but not this one prefer the term convection to advection. This author prefers convection to be
reserved for the transport of heat.
In regions without shocks, interfaces or other discontinuities, the fluid-flow equations can
also be written in equivalent differential forms. These describe what is going on at a point
rather than over a whole control volume. Mathematically, they can be derived by making the
control volumes infinitesimally small (Section 2). As we shall see, there are different ways of
writing these differential equations.
Finite-difference methods are based on the direct approximation of a differential form of the
governing equations.
Express the solution as a weighted sum of shape functions S(x); e.g. for velocity:
u (x) u S (x)
Substitute into some form of the governing equations and solve for the coefficients (aka
degrees of freedom or weights) u.
A1. Notation
Position/time:
x (x, y, z) or (x1, x2, x3) position; (z is usually vertical when gravity is important)
t time
Field variables:
u (u, v, w) or (u1, u2, u3) velocity
p pressure
(p patm is gauge pressure; p* = p + gz is piezometric pressure)
T temperature
concentration (amount per unit mass or per unit volume)
Fluid properties:
density
dynamic viscosity
( / is the kinematic viscosity)
diffusivity
A2. Hydrostatics
At rest, pressure forces balance weight. This hydrostatic relation can be written
dp
p gz or g (3)
dz
The same equation also holds in a moving fluid if there is no vertical acceleration, or, as an
approximation, if vertical acceleration is much smaller than g.
The following simple examples develop the control-volume notation to be used in the rest of
the course.
Q1.
Water (density 1000 kg m3) flows at o
45
2 m s1 through a circular pipe of
10 cm
2 m/s
diameter 10 cm. What is the mass flux C
S1 S2
across the surfaces S1 and S2?
Q2.
D=10 cm A water jet strikes normal to a fixed plate as shown.
Compute the force F required to hold the plate fixed.
F
u=8 m/s
Q3.
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 s1 through an
aperture of 6 m2, calculate:
(a) the initial concentration of gas in ppm by mass;
(b) the time taken to reach a safe concentration of 1 ppm.
(Take the density of air as 1.2 kg m3.)
Q4.
A burst pipe at a factory causes a chemical to seep into a river at a rate of 2.5 kg hr1. The
river is 5 m wide, 2 m deep and flows at 0.3 m s1. What is the average concentration of the
chemical (in kg m3) downstream of the spill?