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

# Deformation of trusses. Statically indeterminate systems. The finite element method

**Book: Section 3.4 (excluding subsections 3.4.2 and 3.4.3),introduction Chapter 4 and section 4.2 (excluding subsections 4.2.2 and 4.2.3).**

## Deformation of statically determinate systems

For each member of a **statically determinate truss** under isothermal conditions (constant temperature) the following **stress-strain relation** applies: 

$$  e = \frac{\sigma}{E} = \frac{T}{AE} \qquad \Rightarrow \qquad \Delta L = eL = \frac{TL}{AE} $$ (eq1-L5)

Here, $T$ is the member force, which is positive (negative) under tension (compression). If the strain is small in all members, it is allowed (as an approximation) to apply equilibrium of forces in each joint using the **undeformed geometry**. This allows *all* forces in the system to be determined without knowing the
deformation of the truss.

In order to determine the displacement of a joint (node), we have to satisfy **compatibility of strains**. In other words: the displacements of the joints must be such that the members are still connected *after* the deformation.
For a truss consisting of only two members, satisfying compatibility of strains is rather straightforward. It is explained on the pages 123-126, first in an exact way and
then in an approximate way (Figure 3.13b). The approximate approach is what we will be using from now on
for exercises and exam questions.

Deformation of a truss having multiple members is more difficult to analyse by analytical methods
and we will be using the finite element method instead (i.e. Marc/Mentat in this course). By default Marc/Mentat uses a geometrically linear approach. This means that equilibrium of forces is applied with respect to the undeformed geometry and that expressions for the strains in the members are linearised and only valid for small displacements and rotations. The solutions are therefore also only valid if the
displacements and rotations are very small with respect to the global dimensions of the undeformed structure. From a practical point of view, this means that the deformation is hardly noticeable with the naked eye.

If deformation and rotation of the structure become large the geometrically linear approach is insufficient and the change in geometry needs to be taken into account for the equilibrium of forces. In Marc/Mentat the option “large displacements” needs to be used. Also, if the strains become large the linear elastic material behaviour given by Hooke's law is insufficient and needs to be replaced by a nonlinear material law (sometimes called physically nonlinear). In both cases, geometric and material nonlinearity, it means that the equations to solve are nonlinear in the displacements. Solving these equations requires a special approach, where the load is applied in several small steps (increments) and the equations are solved for each load step using iteration. 

**Sections 3.4.2 and 3.4.3 are not part of the exam**

**Section 4.1 is not part of the exam**.
Instead the following short text is a simple replacement without equations, sufficient to use the program Marc/Mentat in
a meaningful way.

**The finite element method for statically determinate and indeterminate trusses**

In the finite element method the joints in the truss are called **nodes**.
In each node three displacement components (in $x$, $y$ and $z$ direction) and three force components are defined. The strains in the members can be expressed in terms of the displacements of the nodes,
assuming the members remain connected to the nodes after deformation (compatibility). Using Hooke's law, the stresses and  normal forces in the members can be expressed in the displacements of the nodes.
After substituting these expressions into the equilibrium of forces of all the nodes, a set of equations expressed in the displacements of the nodes is obtained. Note, that the external forces (dynamical boundary conditions) end up in the right-hand side of the system.
In nodes where a displacement component is suppressed or imposed (kinematic boundary conditions), unknown reaction forces are still present. These unknown forces can be discarded by substituting the value of the imposed displacement and simply discarding the corresponding equilibrium equation from the set of equations. In this way, a set of linear equations is obtained for the unknown degrees of freedom: the unknown displacement components. Since the unknowns in the linear system are displacements (not forces), this is called the **displacement method**.


**Displacement method:**

- **Displacements** of the joints/nodes are the unknowns.  
- **Strains** in the members can be expressed in terms of the displacements of the joints/nodes (strain-displacements relations).  
- Using Hooke’s law, **forces** can be expressed in terms of the displacements.  
- Substitution of the force expressions into the **equilibrium equations** for the joints/nodes leads to a system of equations for the displacements.  
- Substitute:  
  - Kinematic (essential) boundary conditions: **prescribed displacements**.  
  - Dynamic (natural) boundary conditions: prescribed external forces.  
- Omit the equations containing **reaction forces**.  

*System of equation in the unknown displacements only.*  


If the kinematic boundary conditions are such that all rigid body modes are suppressed, the system will be regular and can be solved. If rigid body modes are not sufficiently suppressed, the connectivity of the members is such that the structure is a mechanism, or some members have zero stiffness, the system will be singular and can not be solved. In that case, in Marc/Mentat gives an error message with the number 2004.

After successfully solving the displacements of the nodes, the strains, stresses, normal forces and reaction forces can be computed in a post-processing step.

```{admonition} Note
:class: note
The displacement method does not differentiate between statically determinate and indeterminate systems and works for both in the same way.
```

## Other statically indeterminate systems

Study Examples 4.6 and 4.7, showing typical statically indeterminate problems.
**Sections 4.2.2 and 4.2.3 are not part of the exam.**


<a name="example-L5-1"></a>
`````{admonition} Supported rigid bar
:class: examp dropdown


```{figure-md} L5-fig1
<img src="Media/L5_Media/L5-fig1.svg" width="600px">

Rigid horizontal bar $AB$ pinned at $A$ and connected at $D$ and $B$ to vertical rods $CD$ and $EB$.
```

```{figure-md} L5-fig2
<img src="Media/L5_Media/L5-fig2.svg" width="600px">

Free-body diagram of bar $AB$.
```

In this problem we have a rigid horizontal bar $AB$, pinned at $A$ and tied to the ceiling by two vertical elastic rods at $D$ and $B$. A concentrated load $F$ hangs at the mid-span of the bar. Because there are three unknown support reactions (at $A$, $D$ and $B$) but only two equilibrium equations for the bar, the system is statically indeterminate. Find the small rotation $\theta$ of the bar (and thereby the vertical displacements at $D$ and $B$).


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

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

Strain displacement relations.
```

The moment balance about the hinge $A$ must be zero in equilibrium. This gives

$$
\sum M_A = 0 \ \implies \ 2T_{CD}+4T_{EB} = 3F.
$$

$\displaystyle v_D = 2 L \theta$ and $v_B = 4 L \theta$ as shown in {numref}`L5-fig3` express the vertical drops of the rod attachment points $D$ and $B$ purely in terms of the bar’s small rotation angle $\theta$.

The Constitutive (force–displacement) relations are 

$$
\begin{align*}
T_{CD}  &= \frac{E_{CD}A_{CD}}{L_{CD}} \upsilon_D, \\
T_{EB}  &= \frac{E_{EB}A_{EB}}{L_{EB}} \upsilon_B,   
\end{align*}
$$

for member $CD$ and $EB$ respectively. By substituting the compatibility and constitutive relations into the equilibrium equation, yielding a single equation in the unknown $\theta$ then finally gives

$$
\theta = \frac{9F}{24 E_{CD}A_{CD}+64 E_{EB}A_{EB}}.
$$

Also, practice the case where $k_{CD}$ and $k_{EB}$ are given (not $E$, $A$ and the length of $CD$ and $EB$). This gives 

$$
\theta = \frac{3F}{4L(k_{CD}+4k_{EB})}.
$$

````

`````






<a name="example-L5-2"></a>
`````{admonition} Steel bolt and copper tube
:class: examp dropdown


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

Steel bolt and copper tube
```

```{figure-md} L5-fig5
<img src="Media/L5_Media/L5-fig5.svg" width="300px">

View of forces on the bolt
```

The figures {numref}`L5-fig4` and {numref}`L5-fig5` show a simple description of a steel bolt and copper tube where the dimensions and forces present have been provided. Below in figures {numref}`L5-fig6` and {numref}`L5-fig7` The equilibrium and strain displacement relations (compatibility) of the system are visible.

```{figure-md} L5-fig6
<img src="Media/L5_Media/L5-fig6.svg" width="600px">

View of forces on the bolt
```

```{figure-md} L5-fig7
<img src="Media/L5_Media/L5-fig7.svg" width="600px">

View of forces on the bolt
```


Solve for the joint shortening $\delta$, the common axial force $F$ (with $F_S=F_C$) induced by the $\frac{1}{8}$-turn advance $\frac{s}{8}$, and the resulting stresses $\sigma_S$ and $\sigma_C$ in the steel bolt and copper tube.

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

The constitutive relations for this system are found to be 

$$
\begin{align*}
F_C &= -\,k_C\,\Delta L_C, 
   &k_C &= \frac{E_C\,A_C}{L_C},\\
F_S &= \phantom{-}\,k_S\,\Delta L_S, 
   &k_S &= \frac{E_S\,A_S}{L_S}.
\end{align*}
$$

The solution strategy is to follow go from 

Strain-displacement $\implies$ Constitutive relation $\implies$ Equilibrium.

This provides us with enough information to find 

$$
\delta = \frac{1}{8}\frac{sk_S}{k_C+k_S}
$$
and with $\delta$ we can find $\displaystyle \implies F_S, \ F_C, \ \sigma_S, \ \sigma_C$.


````

`````


















### Some typical examples

For statically indeterminate systems the procedure is as follows.
First, express the forces in the system in terms of the unknown displacements, using the strain-displacement relations (compatibility) and the stress-strain relations. Then substitute the force expressions into the equilibrium of forces. From the resulting equations the unknown
displacements can be solved. Finally, the strains, stresses and forces can be computed. See Example 4.4. This procedure for solving statically indeterminate systems very much resembles the displacement method as used in the finite element method.

Results derived in this section:

- For $n$ elastic elements in **parallel**, where $k_i$ with $i = 1,2,...,n$ 
are the individual stiffnesses of the elements, the total stiffness $k$ is given by
$k = \sum_{i = 1}^{n} k_i$. See Example 4.4. 



<a name="example-L5-3"></a>
`````{admonition} Chest expanders
:class: examp dropdown


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

parallel spring arrangement
```
```{figure-md} L5-fig9
<img src="Media/L5_Media/L5-fig9.svg" width="400px">

Synonymous chest expander system
```

For the parrallel spring arrangement visible in {numref}`L5-fig8` $n$ springs are parallel to eachother with 

$$
\Delta L_1 = \Delta L_2 = ... =\Delta L_n (= \Delta L)
$$

for the spring extension and with this

$$
F = \sum F_i = \sum \left(k_i\Delta L\right) = \left(\sum k_i\right)\Delta L
$$

for the total net force in the entire system. With $n$ elements in the series we can define $k$ by 

$$
 k = \sum_{i=1}^n k_i.
$$

For a parallel circuit for a Force $F_i$ we use the defenition

$$
F_i = k_i \Delta L=k_i \frac{F}{k}=\frac{k_i}{\sum k_i}F.
$$

This parallel spring system that we worked out above has the same type of dynamics as a chest expander as described by {numref}`L5-fig9`.
`````


- For $n$ elastic elements in **series**, where $k_i$ with $i = 1,2,...,n$ 
are the individual stiffnesses of the elements, the total *flexibility* $f=1/{k}$ is given by $f =  \sum_{i = 1}^n f_i$ where the individual flexibilities are $f_i=1/{k_i}$ with $i = 1,2,...,n$. See Example 4.6.


<a name="example-L5-4"></a>
`````{admonition} Springs in series
:class: examp dropdown


```{figure-md} L5-fig10
<img src="Media/L5_Media/L5-fig10.svg" width="600px">

parallel spring arrangement
```


For in series spring arrangement visible in {numref}`L5-fig10` $n$ springs are linearly in series with different spring constants that run with stiffness

$$
k_i = \frac{E_i A_i}{L_i}.
$$

The forces are described by

$$
F_1=F_2=...=F_n \left(=F\right) \quad {\rm with\,\, relations} \quad F = k \Delta L \ {\rm or}\ \Delta L = \frac{F}{k}.
$$

The total displacement equals the sum of all of the displacemnts of the individual springs described as

$$
 \Delta L = \sum \Delta L_i =\sum \left(\frac{F}{k_i}\right)=\sum \left(\frac{1}{k_i}\right)F,
$$

using $\displaystyle \frac{1}{k}=\sum_{i=1}^n \frac{1}{k_i}$. Now the necessary tools have been established to find the total flexibility 

$$
 f = \sum f_i \quad {\rm with \quad }f = \frac{1}{k}, \ f_i = \frac{1}{k_i}, \ k = \frac{1}{f}.
$$

`````



## Quiz
### Question 1
```{figure-md} L5-figQ1
<img src="Media/Quizzes/L5_quiz/q1.PNG" width="600px">

Figure for question below.
```


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

import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```
### Question 2
```{code-cell} ipython3
:tags: ["remove-input"]


import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```
### Question 3


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


import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```
### Question 4

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


import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```
### Question 5



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


import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```
### Question 6
```{figure-md} L5-figQ6
<img src="Media/Quizzes/L5_quiz/quiz5a-1.png" width="600px">

Figure for question below.
```

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


import json
from jupyterquiz import display_quiz

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

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

```{figure-md} L5-figQ7
<img src="Media/Quizzes/L5_quiz/quiz5b.PNG" width="600px">

Figure for question below.
```

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


import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```
### Question 8

```{figure-md} L5-figQ8
<img src="Media/Quizzes/L5_quiz/quiz5c.png" width="600px">

Figure for question below.
```

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


import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```

### Question 9

```{figure-md} L5-figQ9
<img src="Media/Quizzes/L5_quiz/quiz5d.png" width="600px">

Figure for question below.
```


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


import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```

### Question 10

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


import json
from jupyterquiz import display_quiz

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

display_quiz(questions, shuffle_answers=True)
```







