This project implements a numerical solution for 1D steady-state heat conduction with volumetric heat generation using the Finite Volume Method (FVM). The solver determines the temperature distribution across a plane wall subject to asymmetric boundary conditions: convection on one side and a constant heat flux on the other. https://colab.research.google.com/drive/1iaFjC_rSyr0VtP-PlwFLYGQRzFyWjBMj?usp=sharing
This repository demonstrates:
- Numerical Analysis: Discretization of differential equations using FVM.
- Validation: Comparison of numerical results against an exact analytical solution.
-
Mesh Sensitivity: Analysis of solution convergence as node count (
$N$ ) increases. - Advanced Post-Processing: Implementation of quadratic interpolation to resolve sub-grid thermal peaks.
The physical system consists of a plane wall with the following parameters based on the project specifications:
-
Geometry: Thickness, Height, & Width:
$L = 0.75 m, H = 1.5 m, W = 1 m$ . -
Material: Constant thermal conductivity
$k = 40~W/m\cdot K$ . -
Heat Source: Uniform volumetric heat generation
$\dot{g}''' = 5 \times 10^4~W/m^3$ .
-
Left Face (
$x=0$ ): Convection with$h_f = 200~W/m^2\cdot K$ and fluid temperature$T_{f} = 20^\circ C$ . -
Right Face (
$x=L$ ): Uniform heat flux input$\dot{q}'' = 100~W/m^2$ (flowing into the wall).
The governing differential equation for 1D steady-state conduction is derived from the energy balance:
The domain is discretized into
The numerical solution (FVM) was tested against the analytical solution derived from integrating the heat equation.
-
Observation: At
$N=101$ , the Maximum Absolute Error is negligible (< 0.1°C).
(Fig 1: Overlay of Analytical solution (red) and Numerical approximation (blue).)
The system was solved iteratively for node counts ranging from
When plotting the location of the maximum temperature versus node count, a "stair-step" artifact was observed. This occurs because standard peak detection (max()) is limited to discrete node locations.
Solution: I implemented Quadratic Interpolation. By fitting a parabola to the peak node and its nearest neighbors, the solver estimates the true continuous physical location of the thermal peak.
(Fig 3: The red dashed line shows the discrete "staircase" error. The solid blue line shows the corrected sub-grid location using quadratic interpolation.)
