Skip to main content

1D conduction with generation using FDM

Short answer

Using central difference FDM with Δx=0.025 m, three interior nodes yield equations: 2T1-T2=131.25, -T1+2T2-T3=31.25, -T2+2T3=231.25. Solving gives T1=171.875°C, T2=212.5°C, T3=221.875°C, matching exact quadratic solution exactly. Maximum temperature 222.5°C at x=0.07 m.

A plane wall of thickness 0.1 m and thermal conductivity 20 W/m·K generates heat uniformly at 10610^{6} W/m³. The faces are held at 100 °C (x = 0) and 200 °C (x = 0.1 m). Using the finite difference method with four equal intervals (three interior nodes), set up the nodal equations and find the temperatures at the interior nodes. Compare with the exact solution.

Governing equation and discretisation

Steady 1D conduction with generation:

kd2Tdx2+q˙=0k\frac{d^2T}{dx^2}+\dot q=0

Central difference at an interior node ii:

kTi+1−2Ti+Ti−1Δx2+q˙=0 ⇒ −Ti−1+2Ti−Ti+1=q˙Δx2kk\frac{T_{i+1}-2T_i+T_{i-1}}{\Delta x^2}+\dot q=0\ \Rightarrow\ -T_{i-1}+2T_i-T_{i+1}=\frac{\dot q\Delta x^2}{k}
 x=0     0.025    0.05    0.075    0.1
 (0)------(1)------(2)------(3)------(4)
 100 C                               200 C

Data: Δx=0.1/4=0.025\Delta x=0.1/4=0.025 m.

q˙Δx2k=106×(0.025)220=31.25 K\frac{\dot q\Delta x^2}{k}=\frac{10^6\times(0.025)^2}{20}=31.25\ \text{K}

with T0=100T_0=100 and T4=200T_4=200.

Nodal equations

  • Node 1: 2T1−T2=31.25+100=131.252T_1-T_2=31.25+100=131.25
  • Node 2: −T1+2T2−T3=31.25-T_1+2T_2-T_3=31.25
  • Node 3: −T2+2T3=31.25+200=231.25-T_2+2T_3=31.25+200=231.25

In matrix form:

[2−10−12−10−12][T1T2T3]=[131.2531.25231.25]\begin{bmatrix}2&-1&0\\-1&2&-1\\0&-1&2\end{bmatrix}\begin{bmatrix}T_1\\T_2\\T_3\end{bmatrix}=\begin{bmatrix}131.25\\31.25\\231.25\end{bmatrix}

Solution (elimination)

From node 1: T1=(131.25+T2)/2T_1=(131.25+T_2)/2. From node 3: T3=(231.25+T2)/2T_3=(231.25+T_2)/2. Substitute in node 2:

−131.25+T22+2T2−231.25+T22=31.25 ⇒ T2−181.25=31.25-\frac{131.25+T_2}{2}+2T_2-\frac{231.25+T_2}{2}=31.25\ \Rightarrow\ T_2-181.25=31.25 T2=212.5 ∘C,T1=131.25+212.52=171.875 ∘C,T3=231.25+212.52=221.875 ∘CT_2=212.5\ ^\circ\text{C},\quad T_1=\frac{131.25+212.5}{2}=171.875\ ^\circ\text{C},\quad T_3=\frac{231.25+212.5}{2}=221.875\ ^\circ\text{C}

Exact solution

T(x)=T0+(TL−T0)xL+q˙2kx(L−x)T(x)=T_0+(T_L-T_0)\frac xL+\frac{\dot q}{2k}x(L-x)

At x=0.025x=0.025: 100+25+25000×0.025×0.075=171.875100+25+25000\times0.025\times0.075=171.875. Similarly 212.5 and 221.875 at 0.05 and 0.075.

Nodexx (m)FDM (°C)Exact (°C)
10.025171.875171.875
20.050212.5212.5
30.075221.875221.875

The two agree exactly because the exact solution is a quadratic, and the central difference formula for d2T/dx2d^2T/dx^2 has an error proportional to T′′′′T'''', which is zero here.

The maximum temperature is found from dT/dx=1000+25000(0.1−2x)=0dT/dx=1000+25000(0.1-2x)=0, giving x=0.07x=0.07 m, between nodes 2 and 3 (just before node 3), with Tmax=100+70+25000×0.07×0.03=222.5T_{max}=100+70+25000\times0.07\times0.03=222.5 °C.

Answer: T1=171.9T_1=171.9 °C, T2=212.5T_2=212.5 °C, T3=221.9T_3=221.9 °C (equal to the exact values); Tmax=222.5T_{max}=222.5 °C at x=0.07x=0.07 m.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Applied Computational Fluid Dynamics chapter 3 questions →