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 Type | Analytical Solution | Assumptions |
|---|---|---|
| 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)
CFD vs Physical Testing
| Aspect | Wind Tunnel | CFD |
|---|---|---|
| Cost per design | $50,000+ | $500-5,000 |
| Time per variant | Weeks | Hours-Days |
| Data richness | Surface only | Full field |
| Scale effects | Present | None |
| Accuracy | Ground truth | Requires 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:
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)
- 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)
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?
- 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
- 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)
- 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
- 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
- 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
- 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):
- Conservation of Momentum:
- Conservation of Energy:
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
| Software | Strengths | Typical Users |
|---|---|---|
| ANSYS Fluent | General purpose, extensive physics | Automotive, aerospace |
| STAR-CCM+ | Polyhedral meshing, automation | Automotive, marine |
| COMSOL | Multiphysics coupling | Research, electronics |
| Cradle CFD | User-friendly, thermal focus | HVAC, electronics |
Open Source
| Software | Strengths | Learning Curve |
|---|---|---|
| OpenFOAM | Highly extensible, free | Steep |
| SU2 | Aerospace focus, optimization | Moderate |
| Code_Saturne | Large-scale industrial CFD | Moderate |
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.