Quick answer. In a 3D truss each joint has three displacements \((u,v,w)\) and each member has a 6×6 stiffness matrix built from its length \(L\) and its three direction cosines \(\boldsymbol\lambda=(l,m,n)\). Assemble the member matrices, remove the supported degrees of freedom, solve \(\mathbf{K}_{ff}\mathbf{u}_f=\mathbf{F}_f\), and obtain each member force from \(N=\frac{EA}{L}\,\boldsymbol\lambda\cdot(\mathbf{u}_j-\mathbf{u}_i)\). A statically determinate space truss satisfies \(b+r=3j\) (bars + reactions = three times the joints).
1. The member stiffness matrix in three dimensions
For a member from joint \(i\) to joint \(j\) the length and direction cosines come from the coordinate differences:
$$L=\sqrt{\Delta x^2+\Delta y^2+\Delta z^2},\qquad \boldsymbol\lambda=\begin{bmatrix}l\\ m\\ n\end{bmatrix}=\frac{1}{L}\begin{bmatrix}x_j-x_i\\ y_j-y_i\\ z_j-z_i\end{bmatrix}.$$The axial stiffness \(EA/L\) acts along \(\boldsymbol\lambda\), so the 6×6 matrix for the displacements \((u_i,v_i,w_i,u_j,v_j,w_j)\) is built from the outer product \(\boldsymbol\lambda\boldsymbol\lambda^{T}\):
$$\mathbf{k}=\frac{EA}{L}\begin{bmatrix}\boldsymbol\lambda\boldsymbol\lambda^{T} & -\boldsymbol\lambda\boldsymbol\lambda^{T}\\ -\boldsymbol\lambda\boldsymbol\lambda^{T} & \boldsymbol\lambda\boldsymbol\lambda^{T}\end{bmatrix},\qquad \boldsymbol\lambda\boldsymbol\lambda^{T}=\begin{bmatrix}l^2 & lm & ln\\ lm & m^2 & mn\\ ln & mn & n^2\end{bmatrix}.$$Setting \(n=0\) recovers the 2D truss matrix, so nothing about the method changes in space. Only the bookkeeping grows: three degrees of freedom per joint instead of two.
2. Assembly, stability and forces
Assembly, supports and solution are the same as in the plane case: \(\mathbf{K}_{ff}\mathbf{u}_f=\mathbf{F}_f\). Before solving, count: a 3D truss needs at least six independent support reactions to prevent rigid-body motion (three translations and three rotations), and the supports must not all lie on one line. The member force and the support reactions follow from the displacements:
$$N=\frac{EA}{L}\begin{bmatrix}-\boldsymbol\lambda^{T} & \boldsymbol\lambda^{T}\end{bmatrix}\mathbf{u}_e,\qquad \mathbf{R}_{\text{support}}=-N\,\boldsymbol\lambda\ \text{(for a member ending at that support, with }\boldsymbol\lambda\text{ pointing away from it)}.$$3. Worked example: a steel tripod
Three steel legs (\(E=210\) GPa, \(A=1023.5\ \mathrm{mm^2}\)) join at an apex 4 m above the ground and rest on three pinned supports on a circle of radius 3 m, so every leg is \(L=5\) m long (a 3-4-5 triangle in elevation). A vertical load \(P=90\) kN acts downward at the apex. The count \(b+r=3+9=12=3j\) (bars + reactions = 3 × 4 joints) shows the truss is statically determinate.
Measured from its support to the apex, each leg has \(m=4/5=0.8\) and the horizontal direction cosines of the three legs are \((l,n)=(0,-0.6)\), \((0.5196,\,0.3)\) and \((-0.5196,\,0.3)\). With \(EA/L=42\,988\) kN/m, the three supports are fixed and only the apex moves, so \(\mathbf{K}_{ff}\) is the sum of three \(\boldsymbol\lambda\boldsymbol\lambda^{T}\) blocks. The off-diagonal terms cancel by symmetry:
$$\mathbf{K}_{ff}=\frac{EA}{L}\sum_{k=1}^{3}\boldsymbol\lambda_k\boldsymbol\lambda_k^{T}=42\,988\begin{bmatrix}0.54 & 0 & 0\\ 0 & 1.92 & 0\\ 0 & 0 & 0.54\end{bmatrix}=\begin{bmatrix}23\,214 & 0 & 0\\ 0 & 82\,538 & 0\\ 0 & 0 & 23\,214\end{bmatrix}\ \text{kN/m}.$$With \(\mathbf{F}_f=(0,\,-90,\,0)\) kN the apex moves only vertically: \(v=-90/82\,538=-1.0904\times10^{-3}\) m, a settlement of 1.09 mm. Each leg force is \(N=\frac{EA}{L}\,m\,v=42\,988\times0.8\times(-1.0904\times10^{-3})=-37.5\) kN, so all three legs are in compression.
| Quantity | Value | Check |
|---|---|---|
| Apex displacement | 1.090 mm down | leg shortening \(\delta_L/\cos\alpha\) |
| Force in each leg | 37.50 kN compression | \(N=PL/(3h)=90\times5/12\) |
| Reaction at support 2 (x, y, z) | 0, 30.00, −22.50 kN | \(=37.5\times(0,\,0.8,\,-0.6)\) |
| Reaction at support 3 (x, y, z) | 19.49, 30.00, 11.25 kN | \(=37.5\times\boldsymbol\lambda\) |
| Reaction at support 4 (x, y, z) | −19.49, 30.00, 11.25 kN | vertical sum = 90.00 kN |
Equilibrium confirms it: the three vertical reactions add to 90 kN, and the horizontal reactions cancel (\(0+19.49-19.49=0\) and \(-22.5+11.25+11.25=0\)). The closed form \(N=PL/(3h)\) follows from symmetry: each leg carries one third of the vertical load divided by \(\cos\alpha=h/L\).
Solving the example in your browser…
4. Common mistakes in 3D truss analysis
- Too few or badly placed supports. Fewer than six reactions, or all supports on one line, leaves a rigid-body rotation and a singular matrix.
- Axis conventions. Decide which axis is vertical before entering coordinates and loads. StiffStruct uses Y up, as in this example.
- Direction cosines taken the wrong way. Measure them from the first joint to the second, and use the same \(\boldsymbol\lambda\) for the matrix and for the force.
- Treating a space frame as a truss. If members carry bending or torsion, they need frame elements (12 degrees of freedom each), not truss bars.
Analyse a 3D truss in StiffStruct
Open the tripod with its member forces, or build your own space truss and rotate it in 3D.
Frequently asked questions
How many support reactions does a 3D truss need?
At least six that are independent, to stop three translations and three rotations. A determinate truss has exactly \(3j-m\) reactions; with more, it is statically indeterminate, which the stiffness method handles without extra work.
What is the stiffness matrix of a 3D truss element?
It is the 6×6 matrix \(\frac{EA}{L}\) times the block matrix of \(\boldsymbol\lambda\boldsymbol\lambda^{T}\) and its negative, with \(\boldsymbol\lambda=(l,m,n)\) the direction cosines of the member.
Is the global matrix of a space truss always singular?
Before supports are applied, yes, because the structure can move freely. After the supports are applied it is invertible only if the truss is stable.
Can the same method analyse a space frame?
Yes, with 12×12 element matrices that add bending about both axes and torsion. StiffStruct solves 3D frames as well as 3D trusses.