UNIHIVE

Study Hub UNIPORT MEG 310

MEG 310 · Heat and Transfer

Computational methods in heat and mass transfer

Finite difference formulation, nodal equations, iterative solution, explicit and implicit transient schemes, stability, and software.

Our notes

2 min read

Why 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

Watch

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.

All MEG 310 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.