Fundamentals / Numerical mathematics / Numerical partial differential equations

Flux balances and virtual work

Choose the correct conductance at an interface, test pure-flux compatibility and assemble a rod with unequal stiffnesses.

Preserve heat flow across unequal layers

A wall has two layers, 0.02 m at \(k=2\) W/(m·K) and 0.06 m at \(k=12\) W/(m·K). The outer faces are held at 350 K and 320 K, respectively. Find the common flux, the interface temperature and the effective conductivity over the full thickness.

Worked solution

The resistances per unit area are \(0.02/2=0.01\) and \(0.06/12=0.005\) m²·K/W. Total resistance is 0.015, so the flux magnitude is \(30/0.015=2000\) W/m² from hot to cold. The first drop is \(2000(0.01)=20\) K, giving an interface temperature of 330 K.

The effective conductivity is \(0.08/0.015=5.333\) W/(m·K). Equal-width averaging would ignore the different thicknesses. Substituting this conductivity across the full wall reproduces the same flux.

Explore the related calculation with adjustable inputs. Vary series resistances and observe their fractions of the total drop. Divide by the stated bulk resistance when converting dimensional values to a comparison.

Check a pure-flux problem

On \(0\leq x\leq2\), the steady flux obeys \(q'=3\) in consistent units. The prescribed endpoint fluxes, both positive along increasing \(x\), are \(q(0)=2\) and \(q(2)=7\). Is a steady state possible? Correct the right flux. For \(k=1\), find a compatible temperature with mean temperature zero.

Worked solution

Integrating requires

\[q(2)-q(0)=\int_0^2 3\,dx=6.\]

The supplied difference is 5, so no steady solution satisfies both data. Take \(q(2)=8\), giving \(q=2+3x\).

Because \(q=-T'\), \(T=C-2x-1.5x^2\). Its average over the interval is \(C-2-2=C-4\), hence \(C=4\). The mean fixes the otherwise arbitrary temperature offset while leaving flux unchanged.

Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.

Assemble two rods in series

Two equal elements of unit length have \(EA=2\) and \(EA=6\) in consistent units. Fix the left node, apply a unit tensile load on the right and omit distributed load. Assemble the reduced matrix, solve for displacements and verify the axial forces and strain energy.

Worked solution

Assembly gives

\[K=\left(\begin{smallmatrix}8&-6\\-6&6\end{smallmatrix}\right),\]
\[b=(0,1)^T.\]

The second row gives \(u_2-u_1=1/6\). The first then gives \(2u_1=1\), hence

\[u_1=1/2,\ u_2=2/3.\]

The forces are \(2(1/2)=1\) and \(6(1/6)=1\). The stored energies sum to \(2(1/2)^2/2+6(1/6)^2/2=1/3\), also \(u^Tb/2=(2/3)/2\). This verifies both continuity of axial force and consistency of the assembled work.

Explore the related calculation with adjustable inputs. Check a small conservative conductance system under a changed load; the same assembled balance form applies to the rod stiffness calculation.

A longer rod with a clamped or insulated left end

For a rod of length \(2\), use \(k=4\), a unit distributed load, zero temperature on the left and insulation on the right. Compute the exact derivative norm and its coercivity bound. Then insulate the left end too. Which compatibility condition fails, and what further information would be needed if it held?

Worked solution

The flux condition gives \(u'=(2-x)/4\), so \(\|u'\|_2^2=(1/16)\int_0^2(2-x)^2dx=1/6\), giving \(0.40825\). The load norm is \(\sqrt2\). The estimate gives

\[2\sqrt2/(\sqrt2\,4)=0.5.\]

The anchored solution therefore satisfies the bound.

Testing a two-insulated-end balance with the constant test function \(1\) requires

\[\int_0^2 f\,dx=0.\]

The present load integrates to \(2\). A zero-net load would restore compatibility, but \(u+C\) would solve for every constant \(C\). A prescribed mean temperature, for example, selects one representative.

Explore the related calculation with adjustable inputs. Change the propagation length scale and mesh resolution to compare shooting sensitivity with a boundary-value discretisation.

Revisit chapter 1 · Why fixing one boundary value controls the solution.

Two triangles of the same area

Stretch the reference triangle to vertices \((0,0),(4,0),(0,1/4)\). Find the gradients associated with its two axis vertices and their diagonal stiffness entries. Compare their ratio with the reference triangle, and explain why a fixed area does not ensure comparable directional stiffness.

Worked solution

Here \(J=\operatorname{diag}(4,1/4)\) has determinant one. The physical gradients are \((1/4,0)\) and \((0,4)\). Multiplying their squared lengths by the cell area \(1/2\) gives \(K_{11}=1/32\) and \(K_{22}=8\).

The ratio \(K_{22}/K_{11}=256\). On the reference triangle both entries are \(1/2\). A unit change in nodal value over the short altitude gives a much larger derivative. Area fixes the product of stretches, while gradient amplification depends on inverse stretches in each direction. This ratio describes these entries. The unrestricted element also has a constant null mode.

Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.

Revisit chapter 2 · Assemble a physical triangle from a reference element.