MEG 310 · Heat and Transfer
Our notes
2 min readWhy numerical methods
Real problems have complex shapes, varying properties, and mixed boundary conditions with no exact solution. Numerical methods divide the body into nodes and solve energy balances at each.
Finite difference: steady 2D conduction
Grid spacing Δx = Δy. For an interior node with no generation, the energy balance gives:
T_m,n = (T_m+1,n + T_m−1,n + T_m,n+1 + T_m,n−1)/4: each node is the average of its four neighbours.
With generation: add q̇Δx²/(4k).
Example. An interior node with neighbours at 100, 80, 60 and 40 °C: T = 280/4 = 70 °C.
Boundary nodes come from energy balances on half or quarter cells, e.g. a node on a convective surface:
(2T_m−1,n + T_m,n+1 + T_m,n−1) + (2hΔx/k)T_∞ − 2(hΔx/k + 2)T_m,n = 0.
Solving the equations
- Direct: matrix methods (Gaussian elimination) for small grids.
- Iterative: Gauss-Seidel: sweep through the nodes, updating each from the latest neighbours, until changes are below a tolerance. Over-relaxation (SOR) speeds it up.
Transient problems
1D explicit scheme with Fourier number Fo = αΔt/Δx²:
T_m^(p+1) = Fo(T_m+1^p + T_m−1^p) + (1 − 2Fo)T_m^p.
- Stability (1D interior node): Fo ≤ 1/2 (otherwise the solution oscillates and blows up). Convective boundary nodes need a stricter limit: Fo(1 + Bi) ≤ 1/2.
- Implicit scheme: uses the new time level on the right side; stable for any Δt but needs simultaneous equations each step (Crank-Nicolson is a more accurate compromise).
Example. With Fo = 0.5: T_m^(p+1) = 0.5(T_m+1 + T_m−1): the new value is the average of the neighbours. Neighbours 100 and 40 °C → 70 °C next step.
Accuracy
Smaller grids and time steps improve accuracy (truncation error) at more computing cost; check grid independence by halving Δx and comparing results.
Software
- Spreadsheets (Excel, LibreOffice) for small finite-difference grids: each cell holds the nodal formula.
- Programming: Python (NumPy), MATLAB/Octave, C.
- Commercial CFD and FEA: ANSYS Fluent and Mechanical, COMSOL Multiphysics, SolidWorks Flow Simulation; open source: OpenFOAM, Elmer.
- Heat exchanger design software: HTRI, Aspen EDR.
Always check simulations against hand calculations and experiments.
Laboratory practice
Experiments in this course often include: thermal conductivity of a metal bar, fin heat transfer, free and forced convection from plates and cylinders, radiation (Stefan-Boltzmann apparatus), and a double-pipe heat exchanger (parallel vs counterflow).
Exams usually ask: derive the nodal equation for an interior or boundary node; solve a small grid by Gauss-Seidel; explicit stability criterion.
Common mistake: choosing a large time step in the explicit method to save effort. If Fo exceeds 1/2, the answers become nonsense.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Finite difference method
(opens en.wikipedia.org in a new tab)
Wikipedia, Finite difference method, CC BY-SA 4.0 · licence
-
Finite volume method
(opens en.wikipedia.org in a new tab)
Wikipedia, Finite volume method, CC BY-SA 4.0 · licence
-
Computational fluid dynamics
(opens en.wikipedia.org in a new tab)
Wikipedia, Computational fluid dynamics, CC BY-SA 4.0 · licence
Watch
-
Best pick MEGR3116 Chapter 4.4 Two Dimensional Steady State Conduction: Finite Difference Equations
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
-
Heat Transfer L11 p3 - Finite Difference Method
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
Finite Difference Method for PDES: Solution of Heat Equation
19 min · ≈ 86 MB · about ₦48
(opens youtube.com in a new tab)
-
Transient conduction using explicit finite difference method F19
39 min · ≈ 176 MB · about ₦99
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.