Turn a differential balance into work against a test displacement
Let a straight small-strain bar of length \(L\) have area \(A\), Young’s modulus \(E\), displacement \(u(x)\) and distributed axial load \(q(x)\) in N/m. Tensile axial resultant is \(N=EAu'\). Force balance on a slice gives \(N'+q=0\). Clamp the left end and prescribe a right-end force \(P\). Multiply the balance by any smooth virtual displacement \(v\) satisfying \(v(0)=0\), integrate along the bar, and integrate the derivative of \(N\) by parts.
The boundary term at the clamp disappears because that displacement is prescribed. The unknown reaction can later be recovered by equilibrium. This formulation requires only first derivatives of trial displacements. Piecewise linear displacements are therefore admissible even though their slopes may jump at internal nodes.
Compute the stiffness rather than memorising it
On an element from \(x=0\) to \(h\), interpolate the two nodal displacements linearly:
Let the test displacement have the same two basis functions. A virtual change of the first or second node gives the corresponding row of the balance. Both derivatives are constant with opposite signs.
For a constant distributed load, each basis function integrates to \(h/2\), so each node receives equivalent load \(qh/2\). The two rows of stiffness sum to zero. A uniform translation stores no strain energy. At a shared node the neighbouring virtual-work contributions add because both elements refer to the same unknown displacement.
Worked example · compare a nodal value with the stress in a cell
Take a 1 m bar with \(EA=2.0\) MN, uniform \(q=1200\) N/m and free right end. Exact balance integrated from \(N(L)=0\) gives
Integrating strain from the clamp produces \(u=q(Lx-x^2/2)/(EA)\). The free-end displacement is 0.300 mm. With a single element the free row of the discrete system has stiffness \(EA/L\) and load \(qL/2\), giving the same displacement. Yet its piecewise constant axial force is
The exact force ranges from 1200 N at the clamp to zero at the free end. The numerical force represents the mean over the cell.
Worked example · see what doubling resolution changes
Divide the bar into two equal elements. The middle node receives 600 N from both halves together, while the free node receives 300 N. The right element carries 300 N. Equilibrium of the middle node then puts 900 N in the left element. Their extensions are \(900(0.5)/(2\times10^6)=0.225\) mm and 0.075 mm. Nodal displacements agree with the exact quadratic at both nodes. The largest one-sided stress-resultant error within either element is now 300 N instead of 600 N. Comparing only tip displacements would hide this improvement.
Double the number of cells until the force error is below 100 N for the baseline load. Inspect the values on both sides of an element boundary and explain why agreement in tip displacement alone could have ended this refinement study too early.
A related OneSimulation calculation
Compare the bar’s nodal displacement with a OneSimulation truss assembled from axial members. Run the area-doubling case and check the predicted inverse-area change in displacement.
Tutorial · find the support reaction from the discarded row
For the two-element calculation, recover the left reaction using the assembled loads and displacement. Then derive an expression for the maximum axial-force error with \(n\) equal elements. Why can two different mesh studies give two different conclusions?
Evaluate the clamp row and the local profile
The left internal nodal force is \(-900\) N. The left external distributed-load share is \(+300\) N. Equilibrium requires an additional reaction \(-1200\) N. On an element of width \(L/n\) the exact linearly varying force changes by \(qL/n\); its constant midpoint approximation misses an endpoint by \(qL/(2n)\). Tip displacement and maximum local force answer different engineering questions. Mesh convergence must therefore name its measured quantity.
Further reading · A. F. Bower, Applied Mechanics of Solids, §8.1, finite-element equations for elastic solids