Skip to main content

Variational approach for one-dimensional heat conduction

Short answer

The variational functional is minimized with linear shape functions, giving element stiffness (kA/L)[[1,-1],[-1,1]] and load (QAL/2){1,1}. Nodal heat flows q1, q2 are added as natural boundary conditions. Convection at an end adds hA to stiffness and hAT_infinity to load.

Using the variational approach, derive the element equations for steady one-dimensional heat conduction in a rod of length LL, cross-section AA, conductivity kk, with internal heat generation QQ per unit volume. Use a linear two-node element.

Governing equation and functional

Steady 1D conduction with heat generation:

kAd2Tdx2+QA=0kA\frac{d^2T}{dx^2} + QA = 0

The equivalent functional (analogous to the total potential energy) is

Π=∫0L[kA2(dTdx)2−QA T]dx\Pi = \int_0^L \left[\frac{kA}{2}\left(\frac{dT}{dx}\right)^2 - QA\,T\right]dx

The solution of the differential equation makes Π\Pi stationary (this can be shown by taking δΠ=0\delta\Pi = 0 and integrating by parts, which gives back the governing equation).

Element approximation

For a linear element with nodal temperatures T1T_1, T2T_2:

T=N1T1+N2T2,N1=1−xL,N2=xLT = N_1T_1 + N_2T_2,\quad N_1 = 1 - \frac{x}{L},\quad N_2 = \frac{x}{L} dTdx=1L[−1  1]{T1T2}=[B]{T}\frac{dT}{dx} = \frac{1}{L}[-1\ \ 1]\begin{Bmatrix} T_1 \\ T_2 \end{Bmatrix} = [B]\{T\}

Minimising the functional

Substitute into Π\Pi:

Π=12{T}T[∫0LkA [B]T[B] dx]{T}−{T}T∫0LQA [N]Tdx\Pi = \frac{1}{2}\{T\}^T\left[\int_0^L kA\,[B]^T[B]\,dx\right]\{T\} - \{T\}^T\int_0^L QA\,[N]^T dx

Setting ∂Π∂Ti=0\dfrac{\partial\Pi}{\partial T_i} = 0 gives [k]{T}={f}[k]\{T\} = \{f\}, where

[k]=∫0LkA [B]T[B] dx=kAL[1−1−11][k] = \int_0^L kA\,[B]^T[B]\,dx = \frac{kA}{L}\begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} {f}=∫0LQA{N1N2}dx=QAL2{11}\{f\} = \int_0^L QA\begin{Bmatrix} N_1 \\ N_2 \end{Bmatrix}dx = \frac{QAL}{2}\begin{Bmatrix} 1 \\ 1 \end{Bmatrix}

Element equation

kAL[1−1−11]{T1T2}=QAL2{11}+{q1q2}\frac{kA}{L}\begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix}\begin{Bmatrix} T_1 \\ T_2 \end{Bmatrix} = \frac{QAL}{2}\begin{Bmatrix} 1 \\ 1 \end{Bmatrix} + \begin{Bmatrix} q_1 \\ q_2 \end{Bmatrix}

where q1q_1, q2q_2 are nodal heat flows at the ends (natural boundary conditions). The generated heat is shared equally between the two nodes. Convection at an end with coefficient hh and ambient temperature T∞T_\infty adds hAhA to the stiffness term at that node and hAT∞hAT_\infty to the load.

The assembly, boundary conditions (TT specified at a node) and solution follow the same steps as for the bar problem.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Finite Element Method chapter 5 questions →