# Beam structures

## Background: Beam bending and beam element

In the previous chapter, truss structures were modelled and analysed. A truss structure is made up of tensile bars that are connected in their nodes to each other and/or to the fixed world. The connection point can be seen as a hinge. A truss element can only transfer an axial force $F$ that is related to the
extension ∆l of the element: $F= \frac{E A_0}{l0}\Delta l$, where $E$ is the elastic modulus of the material, $A_0$ the undeformed cross-sectional area and $l_0$ the undeformed length of the truss element.

A beam is a construction element that, just like a truss element, oﬀers resistance to axial deformation, but also to bending and torsion. The resistance to bending results in a bending moment and the resistance to torsion in a torque.

Structures that are built from beams can be modelled and analysed with the finite element method, using beam elements. We limit ourselves here to two-dimensional beam constructions, which can be modelled with beam elements that can only deform in one plane – here the $xy$ plane –.

### beam bending

The figure below shows a beam that is successively loaded by an axial force $F$ , a shear force $D$ and a bending moment $M$. The horizontal and vertical displacements are represented by $u$ and $v$ on the right end of the beam and by the rotation $\phi$ of the beam axis at that point.

```{figure-md} M-fig18
<img src="Media/Mentat/Mentat-fig18.png" width="600px">

Construction crane truss structure.
```

The beam behaves itself exactly the same as a truss element with regard to the axial deformation. The extension $Delta l= u$ is related to the axial force $F$ via the elasticity modulus $E$ of the material and the undistorted geometry, $A_0$ and $l_0$:

$$
\Delta l = u = \frac{l_0}{E A_0} F
$$

The vertical displacement $v$ perpendicular to the beam axis and the rotation $\phi$ of the beam axis are related to the shear force $D$ and the moment $M$:

$$
v = \frac{l_0^3}{3EI}D + \frac{l_0^2}{2EI}M \quad ; \quad \phi = \frac{l_0^2}{2EI}D + \frac{l_0}{EI}M
$$

Here we again recognize the modulus of elasticity $E$ and the undistorted beam length $l_0$. The distortion also appears to be dependent, and inversely proportional to, a quantity $I$, the so-called second moment of area of the cross-section. The value of $I$ is completely determined by the shape of the cross section. The {numref}`M-fig19` below illustrates that this shape is of great importance for the resistance to bending.

```{figure-md} M-fig19
<img src="Media/Mentat/Mentat-fig19.png" width="600px">

Illustration on the importance of shape.
```

With equal loading ($D$ and/or $M$) beam 1 will bend more than beam 2. Without derivation – see the lecture notes of the course Mechanics (4RA00) – we state that the drawn rectangularly shaped cross section $I$ is given by:

$$
I = \frac{1}{12} bh^3 \quad [\textrm{L}^4]
$$

For beam 2, $I$ is (much) greater than for beam 1. All kinds of cross sections can appear. Frequently the $I$- and box-profile are found.

```{figure-md} M-fig20
<img src="Media/Mentat/Mentat-fig20.png" width="600px">

Frequent cross section shapes.
```

### element stiffness matrix

The mechanical behaviour of a beam element is described by a number of equations that relate the node movements and rotations to the node forces and moments. These internal node forces/moments represent the resistance to deformation. For the modelling using Mentat/MARC we use a three-dimensional beam element. This element has the MARC name elastic beam (element no. 52) and is drawn in the figure below with all 12 displacement components and rotations (the so-called degrees of freedom) and associated internal forces/moments.

```{figure-md} M-fig21
<img src="Media/Mentat/Mentat-fig21.png" width="600px">

Schematic of the three-dimensional elastic beam element (MARC element no.\,52), showing at each node (1 and 2) the six kinematic degrees of freedom—translations $u_x, u_y, u_z$ and rotations $\phi_x, \phi_y, \phi_z$—and the corresponding internal nodal forces $(f_x, f_y, f_z)$ and moments $(m_x, m_y, m_z)$ that resist deformation.
```

Because in the context of this manual we will always use the element in the xy-plane, we must suppress some of these degrees of freedom when modelling, namely the movement in z-direction and the rotations around the x- and y-axis. The relevant degrees of freedom and the corresponding internal
forces/moments are indicated in the figure below.

```{figure-md} M-fig22
<img src="Media/Mentat/Mentat-fig22.png" width="600px">

Schematic of the two‐dimensional elastic beam element, showing at each node (1 and 2) the planar kinematic degrees of freedom—translations $u_x$, $u_y$ and out‐of‐plane rotation $\phi_z$—and the corresponding internal nodal forces $(f_{ix}, f_{iy})$ and bending moment $m_{iz}$ that resist deformation.
```

The six degrees of freedom and six force quantities are stored in columns:

$$
\col{u}^e = [u_x^1\; u_y^1 \; \phi_z^1 \; u_x^2 \; u_y^2 \phi_z^2]^T \quad ; \quad \coli{f}^{\;e} = [f_{ix}^1\; f_{ix}\; f_{iy}^1 \; m_{iz}^1 \; f_{ix}^2 \; f_{iy}^2 \; m_{i7}^2 ]^T
$$

The superscript $^e$ denotes the element and $^T$ indicates that the column is transposed. The relation between $\col{u}^e$ and $\coli{f}^e$ is mathematically written by using a $6 \times 6$ matrix: the element stiﬀness matrix $\mat{K}^e: \; \coli{f}^e = \mat{K}^e \col{u}^{e~i}$. In the Appendix {numref}`Mentat_Appendix` the stiffness matrix is explained in more detail.

### assembly

In the beam structure, beam elements are connected to each other. When connecting or assembling the beam elements the same considerations apply that were previously described for the truss structures: in a node, internal forces/moments of the joining elements are added together and their degrees of
freedom must have equal values. When beams are interconnected, the rotations must be equal in a node in addition to the displacement components. This means that beams are not connected with hinges but are as it were welded together.

### Boundary conditions and solving

After prescribed displacements/rotations and/or forces/moments are applied, the unknown nodal degrees of freedom can be determined by solving a system of algebraic equations as previously explained for the truss structures. Once again, a solution can only be determined if the rigid movement of the
structure is suppressed.

## Two-dimensional beam structure

In this example we consider a simple two-dimensional beam structure, as shown in the figure below. The dimensions are indicated in the figure and are in meters [m].

```{figure-md} M-fig23
<img src="Media/Mentat/Mentat-fig23.png" width="600px">

Two-dimensional beam structure.
```

All beams are undeformed and located in the $xy$-plane. The load $F=1000$ [N], acts in $x$-direction. The beams are made of steel and the material properties are given below:

$$
\begin{align*}
\text{Young’s modulus:}\quad E &= 2.1 \times 10^{11}\,\mathrm{N\,m^{-2}},\\
\text{Poisson’s ratio:}\quad \nu &= 0.3\;[-]
\end{align*}
$$

The cross sections of the beams are a square and have a surface area of $A_0 = 0.0004$ [$\textrm{m}^2$].

### Modelling and analysis

<span class="greyblue"> GEOMETRY $\&$ MESH </span> <br>

```{admonition} info
:class: custom-box
We start in the main menu. First, the geometry of the model must be defined.
This is done within the <span class="green"> GEOMETRY $\&$ MESH </span> submenu. First we ensure that we get a em grid on the screen with standard dimensions: $-1 \le x \le 1 \quad\text{and}\quad -1 \le y \le 1.$. The standard spacing is 0.1 in both directions. We then immediately define line elements between relevant points in the xy plane. Nodes can be ”laid down” in grid points by clicking with the left mouse button.
```

<span class="green"> GEOMETRY $\&$ MESH </span> <br>
&nbsp;&nbsp;&nbsp; ☑ <span class="green">GRID</span> (Coordinate System) <br>
&nbsp;&nbsp;&nbsp; <span class="lightblue">(ELEMENTS)</span> <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(ELEMENTS)</span> <span class="blue">ADD</span> <br>

&nbsp;&nbsp;&nbsp; *Defend the line elements between the various vertices of the construction.* <br>


```{admonition} info
:class: custom-box
The defined elements are now subdivided into elements with a length of 0.1 [m].
The direction along the beam axis is indicated by U. The direction perpendicular
to the beam axis is indicated by V.
```

&nbsp;&nbsp;&nbsp; <span class="green">SUBDIVIDE</span> (Operations) <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">DIVISIONS</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter number of divisions in the U, V and W: **6, 1, 1** <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">ELEMENTS</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter subdivide element list:
&nbsp;&nbsp;&nbsp; *Now select the desired elements.* <br>
&nbsp;&nbsp;&nbsp; *The other elements must also be divided in an analogous way.* <br>

```{admonition} info
:class: custom-box
We do not need the grid any more. Switch it oﬀ and select <img src="Media/Mentat/Mentat-fillview.png" alt="Dropdown Icon" width="15"/>.
```

```{admonition} info
:class: custom-box
To reduce coincidental nodes to a single point, the <span class="green">SWEEP</span> button is selected followed by a number of other actions that speak for themselves.
```

&nbsp;&nbsp;&nbsp; <span class="green">SWEEP</span> (Operations) <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(SWEEP)</span> <span class="blue">ALL</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(REMOVE UNUSED)</span> <span class="blue">NODES</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(REMOVE UNUSED)</span> <span class="blue">POINTS</span> <br>


```{admonition} info
:class: custom-box
We will now enter the geometric parameters of the cross section. First we have
to specify the element type by turning oﬀ <span class="lightblue">(TRANSVERSE SHEAR)</span> , whereby the element type 52 is selected.

Next, we specify the properties of the cross section: the surface and the second
moment of area. We then specify in relation to which axes these are defined.
```

&nbsp;&nbsp;&nbsp; <span class="greyblue">GEOMETRIC PROPERTIES</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">NEW (STRUCTURAL)</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">3-D</span>  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="green">SOLID SECTION BEAM</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="blue">PROPERTIES</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">ELEMENT TYPES</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(TRANSVERSE SHEAR)</span> ☑ → ☐ <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">OK</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(PROPERTIES)</span> <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/> <br> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">ENTERED</span>  <br> 

```{admonition} info
:class: custom-box
By selecting <span class="blue">ENTERED</span> (values) the menu is adjusted so that we can enter data.

With the given $A_0 = 0.0004$ [m] we know that $b = h = 0.02$ [m] and therefore $I_{xx} = I_{yy} = \frac{1}{12}(0.02)^4 \; [\textrm{m}^4]$.
```

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Area: **0.0004** <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $I_{xx}$: **(0.002^4)/12** <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $I_{yy}$: **(0.002^4)/12** <br>

````{admonition} info
:class: custom-box
What are $I_{xx}$ and  $I_{yy}$?
Well, it has been described in the foregoing that we use a three-dimensional beam element for modelling. Although we only use this element in the xy plane, it is suitable for modelling three-dimensional beam constructions. In that case, bending around two axes can occur and two second moments of area will play a role. To be able to quantify and enter it into the program, we must define a **local coordinate system** for each beam element. $I_{xx}$ and $I_{yy}$ are the second moments of area relative to the local $x$ and the local $y$ axes respectively.

The $z$ axis of the local element coordinate system always lies along the element axis and is positively oriented from node 1 to node 2. The user (you) must define the local $x$ axis. To that end, we must specify the global coordinates of a spatial point. The connecting line between this point and the first element node defines a flat plane together with the beam axis. In that plane the local $x$ axis is perpendicular to the beam axis. The local $y$ axis is now also fixed: starting at the first element node and perpendicular to the plane of the local $x$ and the local $z$ axes such that
the $xyz$ system is according to the corkscrew rule.

```{figure-md} M-fig24
<img src="Media/Mentat/Mentat-fig24.png" width="600px">

corkscrew rule
```

All this seems complicated and it is, at least when three-dimensional beam structures must be modelled. Because we limit ourselves to two-dimensional constructions in the $x$ plane, we have it a lot easier. To define the local $x$-axis, select a point at the global z-axis – so this is a point on a line perpendicular to the $xy$
plane (screen) – for example, [0 0 1].

````

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(VECTOR DEFINING LOCAL ZX-PLANE)</span> <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">COMPONENTS IN GLOBAL SYSTEM</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">VECTOR</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter first component: **0** <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter second component: **0** <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter first third: **1** <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">OK</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(ELEMENTS)</span> <span class="blue">ADD</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter geometry add element list:  <img src="Media/Mentat/Mentat-all_existing.png" alt="Dropdown Icon" width="15"/> (All existing) <br>

```{admonition} info
:class: custom-box
Now we are going to define the material properties of the elements. To do this, we select <span class="blue">MATERIAL PROPERTIES</span> and specify the values of the *Young’s modulus* and the *Poisson’s ratio*.
```

&nbsp;&nbsp;&nbsp; <span class="greyblue">MATERIAL PROPERTIES</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">NEW</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">STANDARD</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">STRUCTURAL</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *Young’s modulus*: **2.1e11** <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *Poisson’s ratio*: **0.3** <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">OK</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(ELEMENTS)</span> <span class="blue">ADD</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter add material element list:  <img src="Media/Mentat/Mentat-all_existing.png" alt="Dropdown Icon" width="15"/> (All existing) <br>

```{admonition} info
:class: custom-box
Finally, we apply the boundary conditions.
The naming of the six degrees of freedom at the node of the three-dimensional
beam element is as follows:

$$
\begin{align*}
u_x &= \text{x-displacement} &= \text{Displacement X} &= \text{dof 1} \\
u_y &= \text{y-displacement} &= \text{Displacement Y} &= \text{dof 2} \\
u_z &= \text{z-displacement} &= \text{Displacement Z} &= \text{dof 3} \\
\phi_x &= \text{rotation around } x\text{-axis} &= \text{Rotation X} &= \text{dof 4} \\
\phi_y &= \text{rotation around } y\text{-axis} &= \text{Rotation Y} &= \text{dof 5} \\
\phi_z &= \text{rotation around } z\text{-axis} &= \text{Rotation Z} &= \text{dof 6}
\end{align*}
$$

First, we suppress the $z$-displacement and the rotation around $x$- and $y$-axes in all nodes.
```

&nbsp;&nbsp;&nbsp; <span class="greyblue">BOUNDARY CONDITIONS</span> <br>
&nbsp;&nbsp;&nbsp; <span class="green">NEW (STRUCTURAL)</span> <br> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">FIXED DISPLACEMENTS</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">PROPERTIES</span> <br>
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ☑ Displacement Z <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ☑ Rotation X <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ☑ Rotation Y <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">OK</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(NODES)</span> <span class="blue">ADD</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter add apply node list:  <img src="Media/Mentat/Mentat-all_existing.png" alt="Dropdown Icon" width="15"/> (All existing) <br>


&nbsp;&nbsp;&nbsp; Enter the desired boundary conditions and nodal force (see figure). <br>

```{admonition} info
:class: custom-box

To make all defined boundary conditions visible select ☑ identify in the tab <span class="blue">BOUNDARY CONDITIONS</span> 

```

```{admonition} info
:class: custom-box

We are back in the main menu and have now finished all the buttons. The model
of the construction is almost ready. However, a few essential items are still missing and we must specify these in the <span class="greyblue"> JOBS </span> tab.

```

&nbsp;&nbsp;&nbsp; <span class="greyblue">JOBS</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">NEW</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">STRUCTURAL</span> <br>

```{admonition} info
:class: custom-box

The load acting on the structure can be composed of the defined boundary conditions in <span class="blue">PROPERTIES</span> → <span class="blue">INITIAL LOADS</span> **Always check if the desired load has been applied.**

```


```{admonition} info
:class: custom-box

The desired calculation results, to be viewed afterwards, must be selected in <span class="blue">PROPERTIES</span> → <span class="blue">JOB RESULTS</span> from a large number of options. We choose:

$$
\begin{align*}
\textrm{Beam Axial Force} &= N \\
\textrm{Beam Bending Moment Local X} &= M_{xx} \\
\textrm{1st Comp of Total Strain} &= \varepsilon \\
\textrm{2nd Comp of Total Strain} &= \kappa_{xx}
\end{align*}
$$

```

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">PROPERTIES</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(ANALYSIS DIMENSION)</span> <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">3-D</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">JOB RESULTS</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(AVAILABLE ELEMENT SCALARS)</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ☑ Beam Axial Force <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ☑ Beam Bending Moment Local X <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ☑ 1st Comp of Total Strain <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ☑ 2nd Comp of Total Strain <br>
Comp of Total Strain <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">OK</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="blue">OK</span> <br>

```{admonition} info
:class: custom-box
At an earlier stage we opted for line elements. However, the MARC calculation
program has a number of line element types. We choose element no. 52 here.
```

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">ELEMENT TYPES</span> (Element Types) <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(ANALYSIS DIMENSION)</span> <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">3-D</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">TRUSS/BEAM</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(THIN ELASTIC BEAM)</span> <span class="blue">52</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">OK</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter element list:  <img src="Media/Mentat/Mentat-all_existing.png" alt="Dropdown Icon" width="15"/> (All existing) <br>

```{admonition} info
:class: custom-box
The model is now ready. We now need to save the model, so that we can adjust
it later, if necessary.
```

<table class="compact-table">
   <tr>
       <td>file</td>
       <td>→</td>
       <td>save as</td>
       <td>→</td>
       <td>File name: beam1</td>
       <td>→</td>
       <td><span class="blue">SAVE</span></td>
   </tr>
</table>

```{admonition} info
:class: custom-box
The model of the construction can now be analysed. This is done with the finite
element method program MARC. This calculation program can be started from
Mentat. For this we go to <span class="greyblue">JOBS</span>.
```

<span class="greyblue">JOBS</span> <br>
&nbsp;&nbsp;&nbsp; <span class="blue">RUN</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">SUBMIT (1)</span> <br>

```{admonition} info
:class: custom-box
The MARC calculation program is now started and the model calculated. The <span class="lightblue">(RUN)</span>-menu provides information about the progress of the calculation. The word ”working” appears in the status menu.
When MARC gives the status ”ready”, the calculation is finished. If everything
went well, the <span class="lightblue">(RUN)</span>-menu will display exit number 3004. The results of the calculation can now be viewed with Mentat.
```


### Results

Let’s assume everything went well and we can see the results.

```{admonition} info
:class: custom-box
We select in the main menu <span class="greyblue">RESULTS</span>. The results of the calculation by MARC have been written in the file with extension **.t16** (or **.t19**), which is read by Mentat after it has been opened.
```

&nbsp;&nbsp;&nbsp; <span class="greyblue">RESULTS</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file → open default <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <img src="Media/Mentat/Mentat-fillview.png" alt="Dropdown Icon" width="15"/> (Fill view) <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(DEFORMED SHAPE)</span>  <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/>  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">DEFORMED & ORIGINAL</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(DEFORMED SHAPE)</span>  <span class="blue">SETTINGS</span>  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(DEFORMED SCALING)</span>  &#9679; Automatic  <br>

```{admonition} info
:class: custom-box
The *Beam Axial Force* and the *Beam Bending Moment Local X* around the local
$x$-axis in the beam element can be visualized with diﬀerent colour coding.
```

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="green">MODEL PLOT</span>  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(SCALAR PLOT)</span> <span class="blue">SCALAR</span> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &#9679; *Beam Axial Force* <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(SCALAR PLOT)</span> <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">BEAM CONTOURS</span>  <br> 


```{admonition} info
:class: custom-box
The colours do not indicate the precise numerical value of these quantities, because certain averaging procedures have been applied. The exact value of the axial force in a beam element can be read as follows.
```

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(SCALAR PLOT)</span> <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">NUMERICS</span>  <br> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="blue">ISOLATE</span>  <br> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="lightblue">(ISOLATE ELEMEND)</span> <span class="blue">ADD</span> <br> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **select element** <img src="Media/Mentat/Mentat-endlist.png" alt="Dropdown Icon" width="15"/> (End list) <br> 


```{admonition} info
:class: custom-box
The value of the force can now be read at the two nodes between which the
element is located. With positive force being a tensile force, with negative value a compressive force. Multiple elements may be selected simultaneously. However, the specified elements must not be adjacent to each other, because then again average node values appear.
```

```{admonition} info
:class: custom-box
When we have studied the results suﬃciently, it is possible that we will come to
the conclusion that the model needs to be adjusted. The file **beam1_job1.t16**
must first be closed, after which the model file **beam1.mud** can be opened and
modified. To remove the colour bar that is still present, you can select in the menu <span class="lightblue">(SCALAR PLOT)</span> → <img src="Media/Mentat/Mentat-dropdown.png" alt="Dropdown Icon" width="15"/> → <span class="blue">OFF</span>.
```

<table class="compact-table">
   <tr>
       <td>file</td>
       <td>→</td>
       <td>close</td>
   </tr>
</table>

```{admonition} info
:class: custom-box
The model file (**beam1.mud**) is reopened immediately upon closing the &#42;.t16 file. If this does not happen, it can still be opened via *file* in the main navigation menu.
If we have had enough, we can stop Mentat.
```

<table class="compact-table">
   <tr>
       <td>file</td>
       <td>→</td>
       <td>exit</td>
   </tr>
</table>

## Exercises

A few simple beam structures are presented in this section, that can be modelled and analysed with Mentat/MARC. Use the three-dimensional beam element in all cases (element no. 52) and suppress the deformations from the $xy$-plane.

### Simple beam bending

In the {numref}`M-fig25` below a clamped beam is drawn, of which the relevant dimensions and (linearly elastic) material parameters are given.

```{figure-md} M-fig25
<img src="Media/Mentat/Mentat-fig25.png" width="600px">

Simple beam bending structure.
```


| Property          | Symbol | Value            | Units |
|-------------------|:------:|------------------|:-----:|
| Length            | $l_0$  | 2                | m |
| Height            | $h$    | 0.1              | m |
| Width             | $b$    | 0.1              | m |
| Young’s modulus   | $E$    | $2\!\cdot\!10^{11}$ | N m$^{-2}$ |
| Poisson’s ratio   | $\nu$  | 0.3              | – |
| Density           | $\rho$ | 7850             | kg m$^{-2}$ |


Exact solutions for horizontal movement $u$, vertical displacement $v$ and rotation $\phi$ from the end of the beam are given in the table below for the diﬀerent loading conditions. In these relationships $A_0$ is the undistorted cross-sectional area ($A_0 = bh$) and $I$ the second moment of area ($I= \frac{1}{12} bh^3$). The load consists of either a force $N$ or $D$ [N] or a bending moment $M$ [Nm] or a distributed load $q$ [N/m] resulting from its own weight.


| Case | $u$ | $v$ | $\phi$ |
|:----:|:-------------------------------------:|:-------------------------------------------:|:-----------------------------------------:|
| a | $\dfrac{N\,l_0}{E\,A_0}$ | 0 | 0 |
| b | 0 | $\dfrac{D\,l_0^{3}}{3\,E\,I}$ | $\dfrac{D\,l_0^{2}}{2\,E\,I}$ |
| c | 0 | $\dfrac{M\,l_0^{2}}{2\,E\,I}$ | $\dfrac{M\,l_0}{E\,I}$ |
| d | 0 | $\dfrac{q\,l_0^{4}}{8\,E\,I}$ | $\dfrac{q\,l_0^{3}}{6\,E\,I}$ |

Calculate the deformation of the beam for each of the above load situations and compare the result with the exact solution according to the formulas in the table. Use 40 elements.

The solution, calculated with the finite element method, is an approximation of the exact solution, so that in some cases the deviation can be considerable. What could be the cause of the diﬀerence in results, in particular for the loading condition in d? How could this diﬀerence be reduced?

### Beam structure I

A construction is drawn in the left-hand side of the figure below.  
It consists of two beams that are attached to the fixed world with a clamp.  
The structure is loaded with a vertical force $F = 8000\;\text{N}$.  
The undeformed length of both beams is $l_{0} = 1\;\text{m}$.  
The beams have a square cross-section with an area $A_{0} = 0.01\;\text{m}^2$.  
The material behaviour is linear-elastic with a modulus of elasticity  
$E = 10^{11}\;\text{N/m}^2$ and Poisson’s ratio $\nu = 0.3$.


```{figure-md} M-fig26
<img src="Media/Mentat/Mentat-fig26.png" width="600px">

Schematic of a V-shaped two-beam frame (each beam of undeformed length $l_0$) clamped at supports $A$ and $C$ and loaded at the apex $B$ by a vertical force $F$.
```




#### Tasks

1. **Beam-element model**  
   Model the construction with **40 beam elements** and calculate the displacement of the point where the load is applied.  

   $$v = 7.921 \times 10^{-6}\;\text{m}$$  

   **Question:** Is it necessary to model *both* beams?

2. **Truss-element model**  
   Model the same construction but now with **truss elements** and compare the result.  

   $$v = 8 \times 10^{-6}\;\text{m}$$  

   Vary the boundary conditions and the cross-sectional area of the beam/truss elements.

3. **Longer beams**  
   Model the construction anew but now with **beam lengths of $l_{0}=2\;\text{m}$**.  
   Again use 40 elements and compare the difference between beam and truss elements.  

   $$v_{\text{beam}} = 15.960 \times 10^{-6}\;\text{m},\qquad
     v_{\text{truss}} = 16.000 \times 10^{-6}\;\text{m}$$


### Beam structure II

In {numref}`M-fig27` below a beam construction is drawn that consists of three beams with lengths $l_{0}=1\;\text{m}$, a square cross-section with area $A_{0}=0.0004\;\text{m}^{2}$, an elastic modulus of $E = 2\!\cdot\!10^{11}\;\text{N/m}^{2}$ and a Poisson’s ratio of $\nu = 0.3$.

```{figure-md} M-fig27
<img src="Media/Mentat/Mentat-fig27.png" width="600px">

Schematic of a three-member frame: uprights $AB$ and $CD$ (each length $l_{0}$) joined by top beam $BC$, fixed at support $A$ and pinned at $D$, with a horizontal \SI{1000}{N} load applied at joint $D$.
```


---

#### Tasks

1. **Beam-element model**  
   Model the structure with **beam elements** (beam nr. 52) and calculate the  
   reaction forces and moments.

2. **Stress locations and magnitudes**  
   Determine where the largest stresses occur in the construction and compute  
   their magnitudes, using  

   $$
   N = \sigma_{0}\,A_{0},
   \qquad
   M_{xx} = \frac{I}{h/2}\,\sigma_{b,\max},
   $$

   where  

   * $\sigma_{0}$ is the axial stress due to the axial force $N$, and  
   * $\sigma_{b,\max}$ is the maximum bending stress produced by the beam  
     bending moment $M_{xx}$ about the local $x$-axis.

### Beam structure III

A beam structure shown in {numref}`M-fig28` below is made from a number of beams of  equal length $l_{0}=1\;\text{m}$. Relevant dimensions and boundary conditions are indicated in the sketch. Each beam has a box-profile cross-section; two options are to be analysed:

$$
\begin{align*}
A &= 1536 \times 10^{-6}\;\text{m}^{2} , &\qquad I &= 2.36 \times 10^{-6}\;\text{m}^{4} \\[2pt]
A &=   64 \times 10^{-6}\;\text{m}^{2} , &\qquad I &= 7.25333 \times 10^{-10}\;\text{m}^{4}
\end{align*}
$$

The elastic modulus is $E = 2 \times 10^{11}\;\text{Pa}$ and Poisson’s ratio $\nu = 0.3$.


```{figure-md} M-fig28
<img src="Media/Mentat/Mentat-fig28.png" width="600px">

Schematic of a truss-like beam assembly (members of length $l_{0}$) fixed at the
left support and roller-supported at the right, loaded by a vertical
$F=1000\;\text{N}$ at joint $A$. The unknown reaction $f$ is to be determined
at joint $B$. Two alternative box-profile cross-sections are provided below the
structure.
```

```{figure-md} M-fig29
<img src="Media/Mentat/Mentat-fig29.png" width="600px">

Two alternative box-profile cross-sections provided for the structure.
```


---

#### Tasks

1. **Beam-element model**  
   Model the structure twice—once for each of the cross-sections above—and  
   compute the vertical displacement of point $B$.

2. **Truss-element model**  
   Model the same geometry with truss elements. Compare the displacement of  
   point $B$ with the beam-element results. What can you conclude?



