---
jupytext:
    formats: md:myst
    text_representation:
        extension: .md
        format_name: myst
        format_version: 0.13
        jupytext_version: 1.10.3
kernelspec:
    display_name: Python 3 (ipykernel)
    language: python
    name: python3
---


# Trusses

**Book: Introduction Chapter 2 and Section 2.1.** 

A **truss** is a structure consisting of slender members that are jointed together at their ends.
The joints can be modelled as frictionless pin (2D) or ball-socket (3D) connections.
Since the members can only transfer forces (no moments), they are also called “two-force members”. {numref}`L2-fig1` shows a visualization of a two forc member below.

```{figure-md} L2-fig1
<img src="Media/L2_Media/L2-fig1.svg" width="450px">

A two force member body.
```

- $F>0$: member in tension
- $F<0$: member in compression
- $F=0$: zero force member

## Planar or 2D trusses (Pin-jointed Structures)

Two-dimensional trusses are called pin-jointed structures.
The members are connected at the joints and only forces (no moments) can be transferred in these joints.
The members itself can transfer only axial (normal) forces.
In practice the joints do not have to be real frictionless pin-joints as long as they can be modelled as such.
A truss is always a model (an approximation) of the real structure.
Various designs exist for connecting slender members in order
to be able to model the structure as a truss (no transfer of moments between members). Below in figures {numref}`L2-vid1` and {numref}`L2-fig2` the dynamics of a pin joint can be seen. 

```{figure-md} L2-vid1
<img src="Media/Videos/L2_video1.gif" width="450px">

Pin joint in action
```

```{figure-md} L2-fig2
<img src="Media/L2_Media/L2-fig2.svg" width="450px">

Pin joint overview
```

A joint, when isolated from it's environment, has to be in equilibrium. The forces on the joint can be computed from the forces in the members connected to the joint and applying Newton's third law, i.e. action is reaction. Equilibrium of the joint, means that
the sum of all forces on the joint is zero. Applying this procedure to **all** joints, including the ones where the structure is supported, is called the **method of joints**. The unknown forces in the structure are the (normal) forces in the members and
the reaction forces at the supports. A structure is called **statically determinate** if all the unknown forces can be determined by equilibrium only. In this case, it means that the method of joints should be able to solve all the unknown forces in a statically determinate truss structure. In {numref}`L2-fig3` below we can see how the Method of Joints should be applied. Here we apply the method to **all joints**. Also in the support nodes having reaction forces. Optionally apply global equilibrium to the structure.

```{figure-md} L2-fig3
<img src="Media/L2_Media/L2-fig3.svg" width="600px">

Method of joints
```

For the system above in {numref}`L2-fig3` we can write the system of equations

$$
\begin{align*}
\Sigma F_H &= 0 \rightarrow -T_{A} -T_{B} \cos \phi_1  + T_{C} \cos \phi_2+ T_{D}  =0,\\
\Sigma F_V& = 0 \rightarrow  -T_{B} \sin \phi_1 -  T_{C} \sin \phi_2 -F=0.
\end{align*}
$$ (eq1-L2)

When these types of systems are **statically determinate** they can be analytically solved. In [Example 2.1](#example-L2-1) a simple application of this kind of system is shown.

<a name="example-L2-1"></a>
`````{admonition} Method of joints
:class: examp dropdown

```{figure-md} L2-fig4
<img src="Media/L2_Media/L2-fig4.svg" width="600px">

Method of joints truss example
```
For this example in {numref}`L2-fig4`a simple truss structure is given where forces are present on points $A$,$B$ and $C$. We define the angle $\angle CBA$ as $\phi$. The distance between points $C$ and $A$ is $h$ and between $C$ and $B$ we call $b$. The point $B$ feels a certain force $F_B$ where $A$ and $C$ feel reaction forces which are given as $H_A$, $V_A$, $H_C$ and $V_C$. Next to this it is given that

$$
\begin{align*}
F_B &= 25 \textrm{kN},\\
\phi &= \arctan{\frac{h}{b}} = 56.31^\circ.   
\end{align*}
$$

Please find the force in all members and the reaction at the fixed supports at $A$￼ and $C$.

````{admonition} Solution
:class: sol dropdown

The first step is to define the tensile compontents $T_{AB}$ and $T_{BC}$ at the point $B$. This is shown in {numref}`L2-fig5`.

```{figure-md} L2-fig5
<img src="Media/L2_Media/L2-fig5.svg" width="200px">

Tension at $B$
```
With this we can now set up the horizontal and vertical force balances in $B$, given by

$$
\begin{align*}
\Sigma F_H&= 0,\\
-{\color{red}T_{AB}} \cos \phi - {\color{red}T_{BC}} &=0 \quad
\textrm{and}\\
\Sigma F_V&= 0,\\
{\color{red}T_{AB}} \sin \phi - F_{B} &=0.   
\end{align*}
$$

Where we can now cumpute the “tension” and the “compression” terms

$$
\begin{align*}
{\color{red}T_{AB}}  &=\frac{ F_{B}}{\sin \phi}  = 30.05 \ \rm kN \quad \ (\textrm{tension}) \quad \rm and \\
 {\color{red}T_{BC}} &=-{\color{red}T_{AB}} \cos \phi = - F_B \frac{\cos \phi}{\sin \phi} = -F_B \frac{1}{\tan \phi} = -\frac{b}{h}F_B\\ 
 &= -\frac{2}{3}F_B = - 16.67 \ \rm kN \quad (\textrm{compression}).    
\end{align*}
$$

```{figure-md} L2-fig6
<img src="Media/L2_Media/L2-fig6.svg" width="300px">

Tension at $A$
```
The next step is to now go to point $A$ ({numref}`L2-fig6`) and compute the reaction forces $H_A$ and $V_A$ by the horizontal and vertical force balances with tenion components of $T_{AB}$ given by

$$
\begin{align*}
\Sigma F_H&= 0, \\ 
T_{AB} \cos \phi + {\color{red}H_{A}} &=0 \quad
\textrm{and}\\
\Sigma F_V= 0, \\ 
-T_{AB} \sin \phi + \color{red}V_{A} =0.
\end{align*}
$$

The reaction forces are now found to be 

$$
\begin{align*}
{\color{red}H_{A}}  &=- T_{AB}\cos \phi  = -F_B \frac{\cos \phi}{\sin \phi} = -F_B \frac{1}{\tan \phi}\\
&= -\frac{b}{h}F_B = -\frac{2}{3}F_B = -16.67 \ \rm kN \quad \rm and \\
{\color{red}V_{A}} &={T_{AB}} \sin \phi = F_B \frac{\sin \phi}{\sin \phi} = F_B = 25 \ \rm kN.  
\end{align*}
$$

```{figure-md} L2-fig7
<img src="Media/L2_Media/L2-fig7.svg" width="250px">

Tension at $C$
```

Finally in {numref}`L2-fig7` point $C$ the reaction forces can be found with similar procedures as done in $A$ where 

$$
\begin{align*}
\Sigma F_H= 0,\\
T_{BC} + {\color{red}H_{C}} =0\quad \rm and
\Sigma F_V= 0,\\
{\color{red}V_{C}} =0\ {\rm kN},    
\end{align*}
$$

with as a last result

$$
{\color{red}H_{C}}  =- T_{BC} = \frac{2}{3}F_B = 16.67 \ \rm kN.
$$

As a final check we can combine all the horizontal, vertical and moment elements which can be summed seperately and should give no net forces for a global equilibrium. 

The horizontal components

$$
\begin{align*}
\Sigma F_H= 0,\\
H_A + H_C = -\frac{2}{3}F_B +\frac{2}{3}F_B = 0,
\end{align*}
$$
give an equilibrium with the vertical compontens

$$
\begin{align*}
\Sigma F_V= 0, \\ 
V_A + V_C - F_B = F_B + 0 - F_B = 0,
\end{align*}
$$

doing the same. The equilibrium of moments holds with 

$$
\begin{align*}
\Sigma M_C&= 0, \\
H_A h + F_B b &= -\frac{b}{h}F_B h + F_Bb \\
&= -F_Bb +F_Bb = 0
\end{align*}
$$

and thus a global equilibrium is found showing that indeed the system is not in motion as expected.

````

`````

<a name="example-L2-2"></a>
`````{admonition} Global equilibrium
:class: examp dropdown


```{figure-md} L2-fig8
<img src="Media/L2_Media/L2-fig8.svg" width="600px">

Multi component truss structure
```

The system in {numref}`L2-fig8` above is a statically determinate, planar truss. It is described by a network of pin-connected members forming joints (labeled $A$, $B$, $C$, etc.). The external load $F$ is applied to the structure. Establish the overall balance of forces and moments to find the support reaction forces. Examinie each joint individually to compute the internal forces in the connecting members. The length between joints $C$ and $D$ (and similar) is defined as $L$.

Some give numeical values are

$$
\begin{align*}
    L&=4,\\
    F&=108 \rm kN.
\end{align*}
$$




````{admonition} Solution
:class: sol dropdown

The first step to find the reaction forces on the system is to concider the global equilibrium. Here the moment of the system also needs to be concidered. We thus find

$$
\begin{align*}
    \Sigma F_H= 0,\\
    {\color{red}H_A} = 0,\\
    \Sigma F_V= 0,\\
    {\color{red}V_A} + {\color{red} V_E} - F = 0,\\
    \Sigma M_A= 0,\\
    FL - {\color{red}V_E}3L = 0,
\end{align*}
$$

which gives us the necessary relations to find that $\displaystyle \implies {\color{red}V_E} = \frac{F}{3} $
and thus $\displaystyle \implies {\color{red}V_A} = - V_E + F = -\frac{F}{3}+F=\frac{2}{3}F$.


```{figure-md} L2-fig9
<img src="Media/L2_Media/L2-fig9.svg" width="200px">

Equilibrium of joint $A$
```

Similar as to in [Example 2.1](#example-L2-1) the force balances in each relevant joint are set up. We start with joint $A$ which is depicted in {numref}`L2-fig9`. That the angle $\theta$ at $\angle GAB$ is found to be $60^\circ$ just comes from the triangle between joints being equilateral.

We find the force balanes

$$
\begin{align*}
    \Sigma F_H&= 0,\\
    {\color{red}T_{AG}} + {\color{red}T_{AB}} \cos \theta &= 0 \quad \rm and\\
    \Sigma F_V&= 0,\\
    V_A + {\color{red}T_{AB}} \sin \theta &= 0.
\end{align*}
$$

With this the tensire forces can now be calculated by 

$$
\begin{align*}
{\color{red}T_{AB}}&= -\frac{V_A}{\sin 60^\circ} = -\frac{4\sqrt{3}}{9}F \ {\rm(compression)}\quad \rm and\\
{\color{red}T_{AG}} &= T_{AB} \cos 60^\circ = \frac{2\sqrt{3}}{9}F \ {\rm(tension)}.
\end{align*}
$$


```{figure-md} L2-fig10
<img src="Media/L2_Media/L2-fig9.svg" width="200px">

Equilibrium of joint $B$
```

Now the same procedure for $B$ as depited in {numref}`L2-fig10` gives

$$
\begin{align*}
    \Sigma F_H&= 0,\\
    {\color{red}T_{BC}} + {\color{red}T_{BG}} \cos \theta -T_{AB}\cos \theta &= 0 \quad \rm and \\
    \Sigma F_V&= 0,\\
    -T_{AB}\sin \theta - {\color{red}T_{BG}} \sin \theta &= 0,
\end{align*}
$$

for the force balances for the horizontal and vertical components in $B$ with

$$
\begin{align*}
{\color{red}T_{BG}}&= - T_{AB} =  \frac{4\sqrt{3}}{9}F \ {\rm(tension)},\\
{\color{red}T_{BC}} &= \left(T_{AB}-T_{BG}\right)\cos 60^\circ = -\frac{4\sqrt{3}}{9}F \ {\rm(compression)},
\end{align*} 
$$

as the tensile forces. Below in {numref}`L2-fig11` The last type of free body diagram is shown. It is important that the force $F$ also is included when setting up the force balances.

```{figure-md} L2-fig11
<img src="Media/L2_Media/L2-fig11.svg" width="350px">

Equilibrium of joint $G$
```

With all these types of cases concidred with similar procedures all tensile forces can be computed. 

$$
\begin{align*}
{\rm reactions:\ } &H_A = 0, \ V_A =\frac{2}{3}F, \ V_E = \frac{1}{3}F.\\
{\rm member \ forces:\ } & T_{AB} =-\frac{4\sqrt{3}}{9}F, T_{AG}=\frac{2\sqrt{3}}{9}F,\\
& T_{BG} =\frac{4\sqrt{3}}{9}F, T_{BC}=-\frac{4\sqrt{3}}{9}F,\\
& T_{GC} =\frac{2\sqrt{3}}{9}F, T_{GF}=\frac{\sqrt{3}}{9}F,\\
& T_{CF} =-\frac{2\sqrt{3}}{9}F, T_{CD}=-\frac{2\sqrt{3}}{9}F,\\
& T_{FD} =\frac{2\sqrt{3}}{9}F, T_{FE}=\frac{\sqrt{3}}{9}F,\\
& T_{DE} =-\frac{2\sqrt{3}}{9}F.
\end{align*} 
$$

````

`````


Consider a 2D truss having $N_\text{j}$ joints, $N_\text{m}$ members and $N_\text{r}$ unknown reaction forces. Assume we use a fixed Cartesian co-ordinate system $(x,y)$. At a joint $i$, with $1\leq i\leq N_\text{j}$, we have external forces $F_x^{(i)}$ and $F_y^{(i)}$ and/or reaction forces $R_x^{(i)}$ and $R_y^{(i)}$ (only at joints with support). The axial **tensile** forces in the members are denoted by $T_m$, $1\leq m\leq N_\text{m}$ and the angle of member $m$ with respect to the positive $x$-axis is denoted by $\theta_\text{m}$. For each joint $i$ we have two equilibrium equations

$$
 \begin{align*}
\sum T_\text{m} \cos{\theta_\text{m}} + R_x^{(i)} = -F_x^{(i)} \\
\sum T_\text{m} \sin{\theta_\text{m}} + R_y^{(i)} = -F_y^{(i)}
\end{align*}
$$ (eq2-L2)

where the sum is over the members $m$ that are connected to joint $i$.
Note, that the left-hand side contains the unknown and the right-hand side the known forces. Apparently, we have $2N_\text{j}$ equations for $N_\text{m}+N_\text{r}$ unknown forces. For equilibrium to be sufficient for determining the forces in a truss (statically determinate) the number of equilibrium equations must be equal to the unknown forces, thus:

* A truss is statically determinate if: $N_\text{m} + N_\text{r} = 2N_\text{j}$ 
* A truss is statically indeterminate if: $N_\text{m} + N_\text{r} > 2N_\text{j}$
* A truss is a mechanism if: $N_\text{m} + N_\text{r} < 2N_\text{j}$
  
```{admonition} Note
:class: note

In order for the truss to be statically determinate, $N_\text{m} + N_\text{r} = 2N_\text{j}$ must be valid for parts of the structure as well. In practice it means that the members are evenly distributed over the structure.
```


For statically determinate trusses the member forces and reaction forces can often be computed by determining the reaction forces from the global equilibrium of the structure first and then applying equilibrium of joints or equilibrium of whole sections of the structure. The latter procedure is called the **method of sections**, which can 
also be applied if only one or two member forces are needed for checking other (numerical) solution methods.

In the analysis of a truss it is advisable to quickly find the members that have zero force. These members are called **zero-force members**. Although zero-force members do not `carry the load', they can increase the stability of the structure by supporting other members that would otherwise buckle due to compressive forces.
These members usually have a smaller cross-sectional area than the members carrying load. 
Also, the structure could be designed for multiple load cases and that for the current load the member force is zero and for the other load cases it is not. Finding the zero-force members requires some training. For a 2D truss we can say that for a joint **having no external or reaction forces** and

* there are two non-aligned members attached to the joint, both are zero-force members, or
* there are three members attached to the joint, of which two are aligned, the third one is a zero-force member.

<a name="example-L2-3"></a>
`````{admonition} Method of Sections
:class: examp dropdown

```{figure-md} L2-fig12
<img src="Media/L2_Media/L2-fig12.svg" width="500px">

Method of sections visualised
```

When the same case as in [Example 2.2](#example-L2-2) is concidered but only $T_{CD}$ is asked, what is the most efficient way to go about this? A method that takes less time is the **method of sections**, an **isolated part of the structure** is in equilibrium as long as we account for the forces at the sections created.

```{figure-md} L2-fig13
<img src="Media/L2_Media/L2-fig13.svg" width="500px">

Subsection of initial problem
```

```{figure-md} L2-fig14
<img src="Media/L2_Media/L2-fig14.svg" width="250px">

Method of finding $b$
```
The above {numref}`L2-fig13` and {numref}`L2-fig14` illustrate how 

$$
V_A \left(2L\right) + {\color{red}T_{CD}}\ b - FL= 0
$$

states the sum of moments $\displaystyle \Sigma M_F= 0$. With the relation for $b$ given in {numref}`L2-fig14` the tensile force $T_{CD}$ is related as 

$$
\begin{align*}
{\color{red}T_{CD}}&= \frac{FL-V_A \left(2L\right)}{b},\\
&= \frac{2}{\sqrt{3}}\left(F-\frac{4}{3}F\right),\\
&= -\frac{2\sqrt{3}}{9}F.
\end{align*}
$$


`````

### Analysis of 3D trusses

In 3D there are three equilibrium equations for each joint and then we have the rule $N_\text{m} + N_\text{r} = 3N_\text{j}$ for a statically determinate truss.
The video below in {numref}`L2-vid2` shows an example of how a 3D truss structure can look like.

```{figure-md} L2-vid2
<img src="Media/Videos/L2_video2.gif" width="300px">

Ball and socket joint in action
```


## Software for truss structures

This section is not part of the exam. It is replaced by solving truss structures using the finite element package Marc/Mentat. There will be a separate training and your skill in using this package is
tested in the intermediate and final tests during the quarter.

Although Marc/Mentat basically solves the equilibrium equations as derived using the method of joints, it doesn't solve for the forces directly. The reason is, that it would only work for statically determined structures. In reality the forces are expressed in the displacements of the joints (called **nodes** in the finite element method). For that, the constitutive model for the material and strain-displacement relations (compatibility) are used. The equilibrium equations are solved for the displacement of the nodes, after first applying the correct support conditions 
for the displacements. This is called the **displacement method**. From the displacements other quantities such as the strains, stresses, member forces and reaction forces can be computed as a post-processing step. This works for both statically determinate and statically indeterminate structures.


## Additional Video

Below a video can be seen by The Efficient Engineer which explains trusses in an intuitive way. This is non mandatory material but just to give another perspective on the topic.

<div class="video-wrapper">
  <iframe width="560" height="315" 
    src="https://www.youtube.com/embed/Hn_iozUo9m4" 
    frameborder="0" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
    allowfullscreen>
  </iframe>
</div>

## Quiz
### Question 1
```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q1.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions)
```

### Question 2

```{figure-md} L2-figQ2
<img src="Media/Quizzes/L2_quiz/quiz2c-1.PNG" width="200px">

Figure for question below.
```

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q2.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions)
```
### Question 3

```{figure-md} L2-figQ3
<img src="Media/Quizzes/L2_quiz/quiz2a.PNG" width="600px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q3.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions)
```

### Question 4

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q4.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions)
```
### Question 5

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q5.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions)
```
### Question 6

```{figure-md} L2-figQ6
<img src="Media/Quizzes/L2_quiz/quiz2.png" width="450px">

Figure for question below.
```

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q6.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=False)
```
### Question 7

```{figure-md} L2-figQ7
<img src="Media/Quizzes/L2_quiz/quiz2d-1.png" width="450px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q7.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions, shuffle_answers=False)
```

### Question 8

```{figure-md} L2-figQ8
<img src="Media/Quizzes/L2_quiz/quiz2e-1.png" width="450px">

Figure for question below.
```

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q8.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions)
```

### Question 9

```{figure-md} L2-figQ9
<img src="Media/Quizzes/L2_quiz/quiz2f.png" width="300px">

Figure for question below.
```


```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q9.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions)
```

### Question 10

```{figure-md} L2-figQ10
<img src="Media/Quizzes/L2_quiz/quiz2g-1.png" width="450px">

Figure for question below.
```

```{code-cell} ipython3
:tags: ["remove-input"]

import json
from jupyterquiz import display_quiz

with open("Quizzes/L2_quizzes/q10.json", "r", encoding="utf-8") as f:
    questions = json.load(f)

display_quiz(questions)
```


