beam1eΒΆ
Ke = beam1e(ex, ep)
[Ke, fe] = beam1e(ex, ep, eq)
- Description:
beam1eprovides the global element stiffness matrix \({\mathbf{K}}^e\) for a one dimensional beam element.The input variables
ex\(= [x_1 \;\; x_2]\) \(\qquad\)ep\(= [E \; I]\)supply the element nodal coordinates \(x_1\) and \(x_2\), the modulus of elasticity \(E\) and the moment of inertia \(I\).
The element load vector \({\mathbf{f}}_l^e\) can also be computed if a uniformly distributed load is applied to the element. The optional input variable
eq\(= [q_{\bar{y}}]\)then contains the distributed load per unit length, \(q_{\bar{y}}\).
- Theory:
The element stiffness matrix \(\bar{\mathbf{K}}^e\), stored in
Ke, is computed according to\[\begin{split}\bar{\mathbf{K}}^e = \frac{D_{EI}}{L^3} \begin{bmatrix} 12 & 6L & -12 & 6L \\ 6L & 4L^2 & -6L & 2L^2 \\ -12 & -6L & 12 & -6L \\ 6L & 2L^2 & -6L & 4L^2 \end{bmatrix}\end{split}\]where the bending stiffness \(D_{EI}\) and the length \(L\) are given by
\[D_{EI} = EI; \quad L = x_2 - x_1\]The element loads \(\bar{\mathbf{f}}_l^e\) stored in the variable
feare computed according to\[\begin{split}\bar{\mathbf{f}}_l^e = q_{\bar{y}} \begin{bmatrix} \dfrac{L}{2} \\ \dfrac{L^2}{12} \\ \dfrac{L}{2} \\ -\dfrac{L^2}{12} \end{bmatrix}\end{split}\]