Skip to main content

Bar stiffness matrix and 2D truss element

Short answer

Local bar stiffness is AE/L times [1 -1; -1 1]. For a 2D truss element rotated by theta, the global stiffness matrix is AE/L times [c^2 cs -c^2 -cs; cs s^2 -cs -s^2; -c^2 -cs c^2 cs; -cs -s^2 cs s^2], with c=cos theta and s=sin theta.

Formulate the stiffness matrix for a bar element. Rotate the same bar element and formulate the stiffness matrix for a 2D truss element.

A bar (rod) element carries only axial force. It has two nodes and one dof per node in its local axis; a 2D truss element is the same bar placed at an angle, with two dofs per node.

Part 1: Stiffness matrix of the bar element

   1 o--------------------o 2  ---> x
     u1   (A, E, L)       u2

Assume a linear displacement field u(x)=α1+α2xu(x)=\alpha_1+\alpha_2x. Applying u(0)=u1u(0)=u_1 and u(L)=u2u(L)=u_2:

u(x)=N1u1+N2u2,N1=1−xL,N2=xLu(x)=N_1u_1+N_2u_2,\qquad N_1=1-\frac{x}{L},\quad N_2=\frac{x}{L}

Strain:

ε=dudx=[−1L1L][u1u2]=[B]{u}\varepsilon=\frac{du}{dx}=\begin{bmatrix}-\frac1L&\frac1L\end{bmatrix}\begin{bmatrix}u_1\\u_2\end{bmatrix}=[B]\{u\}

Stress σ=Eε\sigma=E\varepsilon. The stiffness matrix from the strain energy (or the principle of minimum potential energy):

[k]=∫0L[B]TE[B]A dx=AE∫0L[1L2−1L2−1L21L2]dx[k]=\int_0^L[B]^TE[B]A\,dx=AE\int_0^L\begin{bmatrix}\frac1{L^2}&-\frac1{L^2}\\-\frac1{L^2}&\frac1{L^2}\end{bmatrix}dx [k]=AEL[1−1−11][k]=\frac{AE}{L}\begin{bmatrix}1&-1\\-1&1\end{bmatrix}

Direct check: a unit displacement u1=1, u2=0u_1=1,\ u_2=0 needs force AE/LAE/L at node 1 and −AE/L-AE/L at node 2 (equilibrium). The matrix is symmetric and singular (rigid-body motion is possible until supports are added).

Part 2: Rotating the bar - 2D truss element

                 v2 ^  u2 (global)
                    |/
   y ^           2 o
     |          /  
     |        / L      theta = angle of the bar
     |      /          from global x
     |    o 1
     |__theta_______> x

Let the bar make angle θ\theta with the global xx-axis, c=cos⁡θ=x2−x1Lc=\cos\theta=\dfrac{x_2-x_1}{L}, s=sin⁡θ=y2−y1Ls=\sin\theta=\dfrac{y_2-y_1}{L}. Global dofs: {d}=[u1 v1 u2 v2]T\{d\}=[u_1\ v_1\ u_2\ v_2]^T; local axial dofs: {d′}=[u1′ u2′]T\{d'\}=[u_1'\ u_2']^T.

The local axial displacement at a node is the projection of the global displacement on the bar axis:

[u1′u2′]=[cs0000cs]⏟[T][u1v1u2v2]\begin{bmatrix}u_1'\\u_2'\end{bmatrix}=\underbrace{\begin{bmatrix}c&s&0&0\\0&0&c&s\end{bmatrix}}_{[T]}\begin{bmatrix}u_1\\v_1\\u_2\\v_2\end{bmatrix}

The strain energy 12{d′}T[k′]{d′}=12{d}T[T]T[k′][T]{d}\tfrac12\{d'\}^T[k']\{d'\}=\tfrac12\{d\}^T[T]^T[k'][T]\{d\} must equal 12{d}T[k]{d}\tfrac12\{d\}^T[k]\{d\}, so

[k]=[T]T[k′][T][k]=[T]^T[k'][T] [k]=AEL[c2cs−c2−cscss2−cs−s2−c2−csc2cs−cs−s2css2][k]=\frac{AE}{L}\begin{bmatrix}c^2&cs&-c^2&-cs\\cs&s^2&-cs&-s^2\\-c^2&-cs&c^2&cs\\-cs&-s^2&cs&s^2\end{bmatrix}

Properties

  • Symmetric; every row sums to zero (equilibrium of a free element).
  • Singular: three rigid-body modes in the plane (two translations and one rotation).
  • θ=0\theta=0: only uu terms remain (horizontal bar). θ=90∘\theta=90^\circ: only vv terms remain (vertical bar).
  • After finding the nodal displacements, the bar force is F=AEL (u2′−u1′)=AEL[−c−scs]{d}F=\dfrac{AE}{L}\,(u_2'-u_1')=\dfrac{AE}{L}\begin{bmatrix}-c&-s&c&s\end{bmatrix}\{d\}.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computational Techniques in Civil Engineering chapter 4 questions →