Professional Documents
Culture Documents
www. cuchd.in
11/22/2021 Department of Mechanical Engineering 1
www. cuchd.in Campus : Gharaun, Campus : Gharaun, Mohali
CHANDIGARH UNIVERSITY
Unit 1
Objectives
Course Pre-requisites
Basic knowledge of mathematics, heat transfer, fluid
mechanics subjects
Introduction to
Computational Fluid Dynamics
•CFD simulations used to model fluid flows over a wide range of physical scales. The
fundamental of the CFD simulation is the conservation of equations[1]
• Experimental investigation:
– full scale
• expensive and often impossible
• measurement errors
– on a small scale model
• simplified
• difficult to extrapolate results
• measurement errors
• Theoretical calculation:
– analytical solutions
• exist only for a few cases
• sometimes complex
• for almost any problem
1.4 SIMULATION
• The process of predicting the situations that have not yet been
observed because they do not yet exist
• Advantages of modeling:
– cheaper
– more complete information
– can handle any degree of complexity as long as…
• Disadvantages of modeling:
– deals with a mathematical description not with reality
– multiple solutions can exist
Experiments
Quantitative description of flow phenomena using measurements
Simulations
As a rule, CFD does not replace the measurements completely but the amount
of experimentation and the overall cost can be significantly reduced.
i) Pre-processor
• Definition of the geometry of the region of interest
• Grid Generation (mesh generation): Sub division of domain into a number
of smaller sub domains (grid/ cells/ control volumes)
ii) Solver
• Integration of the governing eqns. of fluid flow over all the control volumes of
the domain
• Discretisation- conversion of the resulting integral eqns. Into a system of
algebraic equations
• Solution of the algebraic equations by an iterative method
CFD simulations
The computing times for a flow simulation depend on
• the choice of numerical algorithms and data structures
• linear algebra tools, stopping criteria for iterative solvers
• discretization parameters (mesh quality, mesh size, time step)
• cost per time step and convergence rates for outer iterations
– Hydraulics
– Marine
– Oil & Gas
– Power Generation
– Sports
Interior Ventilation
Engine Cooling
– Hydraulics
– Marine
– Oil & Gas
– Power Generation
– Sports
Flow pathlines colored by
pressure quantify head loss
Mean age of air contours indicate
in ductwork
location of fresh supply air
– Automotive
– Biomedical
– Chemical Processing Flow vectors and pressure Volume fraction of oil
– Sports
Flow of lubricating
mud over drill bit
37
Inviscid Viscous
Laminar Turbulence
Internal External
Compressible Incompressible (airfoil, ship)
(pipe,valve)
(air, acoustic) (water)
39
40
Discretization [7,8]
• Domain is discretized into a finite set of control volumes
or cells. The discretized domain is called the “grid” or the “mesh.”
• General conservation (transport) equations for mass, momentum,
energy, etc., are discretized into algebraic equations.
• All equations are solved to render flow field.
t V
dV V dA dA S dV
A A V
43
tetrahedron pyramid
triangle
arbitrary polyhedron
hexahedron prism or wedge
quadrilateral
wedge mesh
48
50
Post-processing
• Analysis, and visualization
• Calculation of derived variables
• Vorticity
• Wall shear stress
• Calculation of integral parameters: forces, moments
• Visualization (usually with commercial software)
• Simple X-Y plots
• Simple 2D contours
• 3D contour carpet plots
• Vector plots and streamlines (streamlines are the
lines whose tangent direction is the same as the
velocity vectors)
• Animations (dozens of sample pictures in a series 51
of time were shown continuously)
Department of Mechanical Engineering
CHANDIGARH UNIVERSITY
Limitations of CFD
• Physical models.
• CFD solutions rely upon physical models of real world processes (e.g.
turbulence, compressibility, chemistry, multiphase flow, etc.).
• The CFD solutions can only be as accurate as the physical models on which
they are based.
• Numerical errors.
• Solving equations on a computer invariably introduces numerical errors.
• Round-off error: due to finite word size available on the computer. Round-
off errors will always exist (though they can be small in most cases).
• Truncation error: due to approximations in the numerical models. Truncation
errors will go to zero as the grid is refined. Mesh refinement is one way to 54
Limitations of CFD
• Boundary conditions.
• As with physical models, the accuracy of the CFD solution is
only as good as the initial/boundary conditions provided to
the numerical model.
• Example: flow in a duct with sudden expansion. If flow is
supplied to domain by a pipe, you should use a fully-
developed profile for velocity rather than assume uniform
conditions.
Computational Computational
Domain Domain
55
Home Assignment
Use the explicit method to solve for the temperature distribution of a long,
thin rod with a length of 10 cm. Obtain the temperature distribution after
0.6s. Following data may be used
Initial condition: t=0. T=00C
Boundary conditions: T(0) = 1000 C and T(10) = 500C for all time. K =
0.835 cm2/s
2. Use any suitable difference method to solve for the temperature of the
heated plate. Use over the relaxation with a value of 2 for the weighting
factor and εs=4%. Consider two grid points in x & y directions
Initial condition T= 00C at x =0
Boundary condition ∆y at x=0 T= 750c top plate 1300C and right side ∆x
at max. x= T=600 C
1. http://www.fluent.com/
2. http://www.cfdrc.com/
3. Computational Dynamics: http://www.cd.co.uk/
4. CFX/AEA: http://www.software.aeat.com/cfx/
5. Gridgen: http://www.pointwise.com
6. GridPro: http://www.gridpro.com/
7. Hypermesh
8. Tecplot: http://www.amtec.com/
9. Fieldview: http://www.ilight.com/
57
• FAQ
• Why CFD needed
• What are the applications of CFD
• What is difference between error and uncertainty
• What is discretization and what are the discretization error
• What are common boundary conditions imposed on the physical boundaries
• Which error has most contribution in CFD results and why
• Course Outcomes:
THANK YOU
60