Lesson 1 of 13 15 min

Introduction to CFD

Every engineered product that interacts with fluids — from cars cutting through air to blood flowing through artificial heart valves — involves phenomena governed by the Navier-Stokes equations. These equations, formulated in the 1800s, describe how fluids move. The problem? They have no general analytical solution.

Computational Fluid Dynamics (CFD) is the art and science of solving these equations numerically. By dividing space into millions of small cells and solving simplified equations at each cell, we can predict flow patterns, pressures, temperatures, and forces with remarkable accuracy.

Why CFD Exists

The Analytical Limitation

For simple geometries and flows, we have exact solutions:

Flow TypeAnalytical SolutionAssumptions
Pipe flow (Hagen-Poiseuille)$u(r) = \frac{\Delta P}{4\mu L}(R^2 - r^2)$Laminar, fully developed, circular
Stokes flow around sphere$F_D = 6\pi\mu R U$Re << 1, creeping flow
Couette flow$u(y) = U\frac{y}{h}$Linear, parallel plates

But real engineering problems involve:

  • Complex 3D geometries (car body, turbine blade)
  • Turbulent flow (Re > 10⁴ for most applications)
  • Multiple physics (heat transfer, combustion, multiphase)
  • Transient phenomena (vortex shedding, startup)
Compare problems solvable analytically vs those requiring CFD. Click to toggle between simple and complex cases.

CFD vs Physical Testing

AspectWind TunnelCFD
Cost per design$50,000+$500-5,000
Time per variantWeeksHours-Days
Data richnessSurface onlyFull field
Scale effectsPresentNone
AccuracyGround truthRequires validation

CFD doesn't replace testing — it reduces the number of physical tests needed. Modern product development uses CFD for design exploration, reserving wind tunnels and prototypes for final validation.

The CFD Workflow

Every CFD analysis follows a systematic workflow:

Click each stage to see details. A complete analysis follows all stages systematically.

Stage 1: Geometry & CAD

Input: CAD model from design team Tasks:
  • Import and clean geometry
  • Remove small features (bolts, text, tiny fillets)
  • Create flow domain (air around car, not the car itself)
  • Define boundaries (inlet, outlet, walls)
Common issues:
  • Gaps and overlaps in CAD
  • Non-manifold geometry
  • Missing surfaces

Stage 2: Meshing

Goal: Divide the flow domain into millions of small cells Key decisions:
  • Cell type (hexahedra, tetrahedra, polyhedra)
  • Mesh density (finer near walls, coarser far away)
  • Boundary layer mesh (inflation layers near walls)
  • Quality checks (skewness, aspect ratio)
Rule of thumb: 70% of CFD time is often spent on meshing.

Stage 3: Physics Setup

Define the problem:
  • Flow type: Steady or transient?
  • Turbulence model: k-ε, k-ω SST, LES?
  • Energy equation: Include heat transfer?
  • Species transport: Combustion, mixing?
Boundary conditions:
  • Inlet: Velocity, mass flow, or pressure?
  • Outlet: Pressure or outflow?
  • Walls: No-slip, roughness, thermal?

Stage 4: Solve

What happens:
  • Initialize flow field (guess)
  • Iterate: Solve momentum, pressure, turbulence equations
  • Check residuals (measure of imbalance)
  • Repeat until converged
Monitor:
  • Residuals should drop 3-4 orders of magnitude
  • Key quantities (drag, lift, mass flow) should stabilize

Stage 5: Post-Processing

Extract engineering data:
  • Contour plots (velocity, pressure, temperature)
  • Streamlines and pathlines
  • Surface quantities (forces, heat flux)
  • Volume integrals (mixing, residence time)
Validate:
  • Do results make physical sense?
  • Compare with experiments or correlations
  • Check mass/energy balance

Applications Across Industries

Automotive

External aerodynamics:
  • TATA Motors reduced Nexon EV drag by 8% through CFD-driven design
  • Cooling airflow optimization for battery thermal management
  • Underbody flow for downforce and stability
Internal flows:
  • HVAC duct design for cabin comfort
  • Engine intake and exhaust manifolds
  • Fuel injection spray patterns

Aerospace

Aircraft design:
  • Wing aerodynamics and high-lift systems
  • Jet engine compressor and turbine flows
  • Cabin pressurization and ventilation
Space applications:
  • ISRO uses CFD for rocket nozzle design
  • Reentry heating analysis for heat shields
  • Propellant tank sloshing

Power & Process

Thermal power:
  • Boiler combustion optimization (Thermax, BHEL)
  • Cooling tower performance
  • Steam turbine blade design
Chemical process:
  • Reactor mixing and residence time
  • Heat exchanger design
  • Fluidized bed dynamics

The Mathematics Behind CFD

CFD solves the Navier-Stokes equations — a set of partial differential equations expressing:

  • Conservation of Mass (Continuity):
$$\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \mathbf{u}) = 0$$
  • Conservation of Momentum:
$$\frac{\partial (\rho \mathbf{u})}{\partial t} + \nabla \cdot (\rho \mathbf{u} \mathbf{u}) = -\nabla p + \nabla \cdot \boldsymbol{\tau} + \rho \mathbf{g}$$
  • Conservation of Energy:
$$\frac{\partial (\rho E)}{\partial t} + \nabla \cdot (\rho E \mathbf{u}) = \nabla \cdot (k \nabla T) - \nabla \cdot (p \mathbf{u}) + \Phi$$

Where:

  • $\rho$ = density
  • $\mathbf{u}$ = velocity vector
  • $p$ = pressure
  • $\boldsymbol{\tau}$ = viscous stress tensor
  • $E$ = total energy
  • $k$ = thermal conductivity
  • $\Phi$ = viscous dissipation

These equations cannot be solved analytically for general cases. CFD discretizes them — converting continuous derivatives into algebraic equations that computers can solve.

CFD Software Landscape

Commercial Codes

SoftwareStrengthsTypical Users
ANSYS FluentGeneral purpose, extensive physicsAutomotive, aerospace
STAR-CCM+Polyhedral meshing, automationAutomotive, marine
COMSOLMultiphysics couplingResearch, electronics
Cradle CFDUser-friendly, thermal focusHVAC, electronics

Open Source

SoftwareStrengthsLearning Curve
OpenFOAMHighly extensible, freeSteep
SU2Aerospace focus, optimizationModerate
Code_SaturneLarge-scale industrial CFDModerate

Pre/Post-Processing

  • Meshing: Pointwise, ANSA, ICEM CFD, Hypermesh
  • Visualization: ParaView, Tecplot, EnSight

Common Misconceptions

"CFD gives the answer"

Reality: CFD gives an answer. Whether it's the answer depends on:
  • Mesh quality and resolution
  • Turbulence model selection
  • Boundary condition accuracy
  • Numerical scheme choices

"Finer mesh = better results"

Reality: Finer mesh reduces discretization error but:
  • Can't fix wrong physics models
  • May expose other errors
  • Has diminishing returns
  • Costs more computation time

"Once validated, always validated"

Reality: Validation is case-specific:
  • Validated for pipe flow ≠ validated for external aero
  • Model constants tuned for one flow may fail in another
  • Always verify for your specific application

Key Takeaways

  • CFD solves Navier-Stokes equations numerically when analytical solutions don't exist
  • Systematic workflow: Geometry → Mesh → Physics → Solve → Post-process
  • Complements, doesn't replace physical testing
  • Critical decisions: Mesh quality, turbulence models, boundary conditions
  • Validation is essential: CFD results must be verified against experiments
  • Tool, not oracle: Results require engineering interpretation

What's Next

With an overview of CFD complete, the next lesson dives into the Governing Equations — the mathematical foundation that CFD discretizes and solves. We'll derive the continuity and Navier-Stokes equations from first principles.