Knowledge / Aeronautical / Aerospace Engineering / Computational fluid dynamics basics

Computational fluid dynamics basics

Aeronautical / Aerospace Engineering (B.E./B.Tech) · Tools and careers · free study notes for exams, placements and interviews

In short

Computational fluid dynamics (CFD) solves the governing equations of fluid motion numerically, by dividing a flow domain into millions of small cells and marching the equations to a converged or time-accurate solution. It is the third pillar of aerodynamic design alongside analytical theory and wind tunnel testing, and it dominates modern aerospace practice because it gives full-field data (pressure, velocity, temperature, species) at a fraction of tunnel cost. In Indian university curricula it appears as "CFD" or "Numerical Methods in Fluid Flow and Heat Transfer" (AICTE model curriculum, 6th/7th semester), and GATE Aerospace examines it through fluid mechanics, numerical methods and compressible flow. Employers that test CFD in interviews include HAL, DRDO labs (ADA, ADE, GTRE, DRDL), CSIR-NAL, ISRO/VSSC and LPSC, Tata Advanced Systems, Godrej Aerospace, and the large captive engineering centres (Airbus India, Boeing India, Safran, Collins Aerospace, GE Aerospace Bengaluru, Rolls-Royce India, Honeywell, Ansys and Altair India). Typical graduate roles are CFD analyst, aerodynamics engineer and methods/validation engineer.

Explained

Governing equations and their mathematical character

Discretisation: turning PDEs into algebra

Three classical methods:

Pressure–velocity coupling and linear solvers

Mesh generation and mesh quality

Turbulence modelling

Boundary conditions, solution process and errors

Standard CFD workflow (exam answer):

  1. Define the problem — objective, flow regime (Mach, Reynolds), 2-D/3-D, steady/unsteady, incompressible (M < 0.3) or compressible.
  2. Geometry and cleanup — CAD import, defeature, close gaps, create the fluid domain by subtraction, use symmetry.
  3. Mesh — surface mesh, boundary-layer prisms from a y⁺ target, volume mesh, check quality.
  4. Physics setup — solver (pressure-based/density-based), turbulence model, fluid properties, reference values.
  5. Boundary and initial conditions — see below.
  6. Discretisation and solver controls — schemes, relaxation, Courant number, convergence criteria.
  7. Solve and monitor — residuals plus integrated quantities (CL, CD, mass imbalance).
  8. Post-process — contours, streamlines, Cp, Cf, y⁺, forces, surface integrals.
  9. Verification and validation — grid study, compare with tunnel or flight data, state uncertainty.
  10. Boundary condition types: velocity-inlet / mass-flow-inlet, pressure-far-field (characteristic-based, for compressible external flow), pressure-outlet (with back-pressure or supersonic extrapolation), wall (no-slip; adiabatic or fixed temperature or heat flux; moving/rotating), symmetry (zero normal velocity, zero normal gradients), periodic/translational-rotational (turbomachinery passages), and non-reflecting/characteristic BCs for acoustics.
  11. Numerical BC discipline: total pressure/total temperature at a subsonic inlet; all variables specified at a supersonic inlet, none at a supersonic outlet; never place a boundary in a region of recirculation.
  12. Convergence means (i) residuals dropped 3–5 orders, (ii) monitored integral quantities flat, and (iii) global mass/energy imbalance < ~0.1%. Residual drop alone is not convergence.
  13. Error taxonomy (V&V vocabulary): round-off, iterative (convergence), discretisation (truncation) errors — these are *verification*; modelling error (turbulence, chemistry, geometry simplification) — this is *validation*. "Verification = solving the equations right; validation = solving the right equations."
  14. Stability: explicit schemes must satisfy the CFL condition; the von Neumann method gives the stability limit of a linear scheme; false diffusion and dispersion are the two faces of truncation error.
  15. Practice and tools in India: commercial — ANSYS Fluent/CFX/ICEM, Siemens STAR-CCM+, Cadence Fidelity, Hexagon Cradle; open source — OpenFOAM, SU2, Code_Saturne; Indian indigenous codes — VSSC's PARAS-3D, CSIR-NAL and VSSC in-house solvers, and Project PARAM/AIRAWAT and the National Supercomputing Mission machines (PARAM Siddhi-AI, Pratyush at IITM Pune and Mihir at NCMRWF Noida) on which large aerospace and weather runs are performed. There is no Indian Standard that certifies CFD results; aerospace work follows customer and certification guidance (CEMILAC/DGAQA for military airworthiness in India, DGCA/EASA/FAA CS-25/FAR-25 for civil), where CFD supports but does not replace test evidence.

Key points

Formulas and examples

Continuity: ∂ρ/∂t + ∇·(ρV) = 0 — ρ in kg/m³, V in m/s, t in s.
Momentum (incompressible): ρ(∂V/∂t + V·∇V) = −∇p + μ∇²V + ρg — p in Pa, μ in Pa·s.
Reynolds number Re = ρUL/μ = UL/ν — U reference speed (m/s), L reference length (m), ν kinematic viscosity (m²/s). Dimensionless.
Mach number M = U/a, a = √(γRT) — γ = cp/cv, R = 287 J/kg·K for air, T in K.
Courant (CFL) number Co = u Δt / Δx — explicit stability needs Co ≤ 1 (1-D convection).
Diffusion number d = ν Δt / Δx² — explicit diffusion needs d ≤ 0.5 (1-D).
Wall shear stress τw = μ(∂u/∂y)|wall ; friction velocity u* = √(τw/ρ) (m/s).
y⁺ = ρ u* y / μ ; u⁺ = u/u* ; log law u⁺ = (1/κ)ln y⁺ + B, κ ≈ 0.41, B ≈ 5.0–5.5.
Skin-friction correlation (flat plate, turbulent): Cf ≈ 0.058 Re_x−0.2 (local), used to estimate τw for y⁺ sizing.
Cell Peclet (cell Reynolds) number Pe = ρuΔx/Γ — central differencing is oscillation-free only for Pe ≤ 2.
Eddy viscosity: μt = ρ Cμ k²/ε (k–ε, Cμ = 0.09); μt = ρ k/ω (k–ω). k in m²/s², ε in m²/s³, ω in 1/s.
Turbulence intensity I = u'/U ; k = (3/2)(U I)² ; ε = Cμ3/4 k3/2/ℓ ; ω = k1/2/(Cμ1/4 ℓ).
Richardson extrapolation: f_exact ≈ f₁ + (f₁ − f₂)/(rp − 1) — f₁ fine grid, f₂ coarse, r grid refinement ratio, p observed order.
Observed order: p = ln[(f₃ − f₂)/(f₂ − f₁)] / ln r (three grids, constant r).
GCI = Fs |(f₂ − f₁)/f₁| / (rp − 1) × 100% , safety factor Fs = 1.25 (three grids) or 3 (two grids).
Aerodynamic coefficients: CL = L/(½ρU²S), CD = D/(½ρU²S), Cp = (p − p∞)/(½ρU∞²).
Total cells for wall-resolved mesh grow roughly with Re1.8 for RANS and far faster for LES.

Example 1 — First cell height from a y⁺ target (classic interview/viva question). Aerofoil chord c = 0.5 m in air at U = 50 m/s, sea level: ρ = 1.225 kg/m³, μ = 1.789 × 10⁻⁵ Pa·s. Target y⁺ = 1 at x = c.

  1. Re_c = ρUc/μ = 1.225 × 50 × 0.5 / 1.789 × 10⁻⁵ = 30.625 / 1.789 × 10⁻⁵ ≈ 1.712 × 10⁶.
  2. Cf = 0.058 Re−0.2: Re0.2 = exp(0.2 × ln 1.712 × 10⁶) = exp(0.2 × 14.353) = exp(2.8706) ≈ 17.65 → Cf ≈ 0.058/17.65 ≈ 3.286 × 10⁻³.
  3. τw = ½ρU²Cf = 0.5 × 1.225 × 2500 × 3.286 × 10⁻³ = 1531.25 × 3.286 × 10⁻³ ≈ 5.032 Pa.
  4. u* = √(τw/ρ) = √(5.032/1.225) = √4.108 ≈ 2.027 m/s.
  5. y = y⁺μ/(ρu*) = 1 × 1.789 × 10⁻⁵ / (1.225 × 2.027) = 1.789 × 10⁻⁵/2.483 ≈ 7.20 × 10⁻⁶ m ≈ 7.2 µm.
  6. The first cell centre must sit at this height, so the first cell height is ≈ 1.44 × 10⁻⁵ m if the solver uses cell-centre distance. With growth ratio 1.15, reaching a ~5 mm boundary layer needs about n layers where 1.44e-5 × (1.15ⁿ − 1)/0.15 ≈ 0.005 → 1.15ⁿ ≈ 53 → n ≈ ln53/ln1.15 ≈ 28 layers.

Example 2 — Time step from a CFL limit. 2-D unsteady simulation of vortex shedding, smallest cell Δx = 2 mm, local velocity u = 60 m/s, explicit scheme requiring Co ≤ 1.

Example 3 — Grid convergence index for drag. Three grids with refinement ratio r = 2 give CD: coarse f₃ = 0.0412, medium f₂ = 0.0381, fine f₁ = 0.0373.

  1. Differences: f₂ − f₁ = 0.0008; f₃ − f₂ = 0.0031.
  2. Observed order p = ln(0.0031/0.0008)/ln 2 = ln(3.875)/0.6931 = 1.3545/0.6931 ≈ 1.954 (≈ 2, as expected for a second-order scheme).
  3. Richardson estimate: f_exact ≈ f₁ + (f₁ − f₂)/(rp − 1) = 0.0373 + (−0.0008)/(21.954 − 1) = 0.0373 − 0.0008/2.871 = 0.0373 − 0.000279 ≈ 0.03702.
  4. GCI(fine) = 1.25 × |(f₂ − f₁)/f₁| /(rp − 1) × 100 = 1.25 × (0.0008/0.0373)/2.871 × 100 = 1.25 × 0.02145/2.871 × 100 ≈ 0.93%.
  5. Interpretation: CD = 0.0370 with roughly ±1% numerical uncertainty — reportable; a GCI of 15% would not be.

Example 4 — Turbulence inlet quantities. Wind-tunnel-style inlet: U = 30 m/s, turbulence intensity I = 1% (0.01), turbulent length scale ℓ = 0.07 × D with D = 0.3 m → ℓ = 0.021 m.

  1. k = 1.5 (U I)² = 1.5 × (30 × 0.01)² = 1.5 × 0.09 = 0.135 m²/s².
  2. ε = Cμ0.75 k1.5/ℓ = 0.090.75 × 0.1351.5 / 0.021. 0.090.75 ≈ 0.1643; 0.1351.5 = 0.135 × √0.135 = 0.135 × 0.3674 ≈ 0.04960. → ε ≈ 0.1643 × 0.04960/0.021 ≈ 0.388 m²/s³.
  3. ω = ε/(Cμ k) = 0.388/(0.09 × 0.135) = 0.388/0.01215 ≈ 31.9 s⁻¹.
  4. μt/μ = ρCμk²/(εμ) = 1.225 × 0.09 × 0.0182/(0.388 × 1.789 × 10⁻⁵) ≈ 0.002008/6.94 × 10⁻⁶ ≈ 289 — a plausible eddy-viscosity ratio for a duct inlet.

Example 5 — Cost of DNS versus RANS (why RANS is used). Wing boundary layer at Re = 10⁷.

ApproachWhat is resolvedTypical cells (wing)CostUse in industry
Potential/panel + boundary layerInviscid outer flow + BL10³–10⁴ panelssecondsConceptual design, loads
EulerInviscid compressible, shocks10⁵–10⁶minutesSupersonic layouts, store trajectories
RANSMean flow, all turbulence modelled10⁷–10⁸hours on a clusterCruise drag, CFD-based design
DES/hybridLarge eddies in separated zones10⁸–10⁹daysBuffet, jet noise, cavity, high-alpha
LESLarge eddies everywhere10⁹–10¹⁰weeksCombustors, research
DNSAll scales≥10¹⁴ at flight ReinfeasibleLow-Re research only
ModelEquationsStrengthWeakness
Spalart–Allmaras1Cheap, robust external aeroPoor for free shear/jets
Standard k–ε2Free shear, industrial internal flowAdverse pressure gradient, near-wall
k–ω (Wilcox)2Near-wall, no wall functions neededFreestream ω sensitivity
SST k–ω2Best all-round for aero with separationCostlier, can over-predict separation
RSM7Swirl, anisotropy, secondary flowExpensive, stiff convergence
LES/DESSGS modelUnsteady, separated, acousticsMesh and time-step cost

Where it is used

Interview questions

Common mistakes

Related topics

Wind tunnel testing · CAD and 3D modelling · Compressible flow and shock waves · Boundary layer theory and viscous flow · Numerical methods and linear algebra · Aircraft design and aerodynamic optimisation

Open in the Knowledge reader →Find jobs →