Starting with only one element beam which is subject to bending and shear forces. There are 4 nodal degrees of freedom. Rotation at the left and right nodes of the beam and transverse displacements at the left and right nodes. The following diagram shows the sign convention used for external forces. Moments are always positive when anti-clockwise direction and vertical forces are positive when in the positive \(y\)
direction.
The two nodes are numbered \(1\) and \(2\) from left to right. \(M_{1}\) is the moment at the left node (node 1), \(M_{2}\) is the moment at the right node (node 2). \(V_{1}\) is the vertical force at the left node and \(V_{2}\) is the vertical force at the right node.
The above diagram shows the signs used for the applied forces direction when acting in the positive sense. Since this is a one dimensional problem, the displacement field (the unknown being solved for) will be a function of one independent variable which is the \(x\) coordinate. The displacement field in the vertical direction is called \(v\left ( x\right ) \). This is the vertical displacement of point \(x\) on the beam from the original \(x-axis\). The following
diagram shows the notation used for the coordinates.
Angular displacement at distance \(x\) on the beam is found using \(\theta \left ( x\right ) =\frac {dv\left ( x\right ) }{dx}.\) At the left node, the degrees of freedom or the displacements, are called \(v_{1},\theta _{1}\) and at the right node they are called \(v_{2},\theta _{2}\). At an arbitrary location \(x\) in the beam, the vertical displacement is \(v\left ( x\right ) \) and the rotation at that location is \(\theta \left ( x\right ) \).
The following diagram shows the displacement field \(v\left ( x\right ) \)
In the direct method of finding the stiffness matrix, the forces at the ends of the beam are found directly by the use of beam theory. In beam theory the signs are different from what is given in the first diagram above. Therefore, the moment and shear forces obtained using beam theory (\(M_{B}\) and \(V_{B}\) in the diagram below) will have different signs when compared to the external forces. The signs are then adjusted to reflect the
convention as shown in the diagram above using \(M\) and \(V\).
For an example, the external moment \(M_{1}\) is opposite in sign to \(M_{B1}\) and the reaction \(V_{2}\) is opposite to \(V_{B2}\). To illustrate this more, a diagram with both sign conventions is given below.
The goal now is to obtain expressions for external loads \(M_{i}\) and \(R_{i}\) in the above diagram as function of the displacements at the nodes \(\left \{ d\right \} =\{v_{1},\theta _{1},v_{2},\theta _{2}\}^{T}\).
In other words, the goal is to obtain an expression of the form \(\left \{ p\right \} =\left [ K\right ] \left \{ d\right \} \) where \(\left [ K\right ] \) is the stiffness matrix where \(\left \{ p\right \} =\left \{ V_{1},M_{1},R_{2},M_{2}\right \} ^{T}\) is the nodal forces or load vector, and \(\left \{ d\right \} \) is the nodal displacement vector.
In this case \(\left [ K\right ] \) will be a \(4\times 4\) matrix and \(\left \{ p\right \} \) is a \(4\times 1\) vector and \(\left \{ d\right \} \) is a \(4\times 1\) vector.
Starting with \(V_{1}\). It is in the same direction as the shear force \(V_{B1}\). Since \(V_{B1}=\frac {dM_{B1}}{dx}\) then
\[ V_{1}=\frac {dM_{B1}}{dx}\]
Since from beam theory \(M_{B1}=-\sigma \left ( x\right ) \frac {I}{y}\), the above becomes
Since \(\frac {1}{\rho }=\frac {\left ( \frac {d^{2}u}{dx^{2}}\right ) }{\left ( 1+\left ( \frac {du}{dx}\right ) ^{2}\right ) ^{3/2}}\) and for a small angle of deflection \(\frac {du}{dx}\ll 1\) then \(\frac {1}{\rho }=\left ( \frac {d^{2}u}{dx^{2}}\right ) \), and the above now becomes
Before continuing, the following diagram illustrates the above derivation. This comes from beam
theory.
Now \(M_{1}\) is obtained. \(M_{1}\) is in the opposite sense of the bending moment \(M_{B1}\) hence a negative sign is added giving \(M_{1}=-M_{B1}\). But \(M_{B1}=-\sigma \left ( x\right ) \frac {I}{y}\) therefore
The following is a summary of what was found so far. Notice that the above expressions are evaluates at \(x=0\) and at \(x=L\). Accordingly to obtain the nodal end forces vector \(\left \{ p\right \} \)
The RHS of the above is now expressed as function of the nodal displacements \(v_{1},\theta _{1},v_{2},\theta _{2}\). To do that, the field displacement \(v\left ( x\right ) \) which is the transverse displacement of the beam is assumed to be a polynomial in \(x\) of degree \(3\)
or
Knowing the stiffness matrix means knowing the nodal displacements \(\left \{ d\right \} \) when given the forces at the nodes. The power of the finite element method now comes after all the nodal displacements \(v_{1},\theta _{1},\) \(v_{2},\theta _{2}\) are calculated by solving \(\left \{ p\right \} =\left [ K\right ] \left \{ d\right \} \). This is because the polynomial \(v\left ( x\right ) \) is now completely determined and hence \(v\left ( x\right ) \) and \(\theta \left ( x\right ) \) can now be evaluated for any \(x\) along the beam and not just at
its end nodes as the case with finite difference method. Eq. 5A above can now be used to find the displacement \(v\left ( x\right ) \) and \(\theta \left ( x\right ) \) everywhere.
\(v\left ( x\right ) =\left [ N\right ] \left \{ d\right \} \) is calculated by assuming \(v\left ( x\right ) \) is a polynomial. This gives the displacement \(v\left ( x\right ) \) to use to evaluate the transverse displacement anywhere on the beam and not just at the end nodes.
\(\theta \left ( x\right ) =\frac {dv\left ( x\right ) }{dx}=\frac {d}{dx}\left [ N\right ] \left \{ d\right \} \) is obtained to evaluate the rotation of the beam any where and not just at the end nodes.
The strain \(\epsilon \left ( x\right ) =-y\left [ B\right ] \left \{ d\right \} \) is found, where \(\left [ B\right ] \) is the gradient matrix \(\left [ B\right ] =\frac {d^{2}}{dx^{2}}\left [ N\right ] \).
The stress from \(\sigma =E\epsilon =-Ey\left [ B\right ] \left \{ d\right \} \) is found.
The bending moment diagram from \(M\left ( x\right ) =EI\left [ B\right ] \left \{ d\right \} \) is found.
The shear force diagram from \(V\left ( x\right ) =\frac {d}{dx}M\left ( x\right ) \) is found.
2.1 Examples using the direct beam stiffness matrix
The beam stiffness matrix is now used to solve few beam problems. Starting with simple one span beam
2.1.1 Example 1
A one span beam, a cantilever beam of length \(L\), with point load \(P\) at the free end
The first step is to make the free body diagram and show all moments and forces at the nodes
\(P\) is the given force. \(M_{2}=0\) since there is no external moment at the right end. Hence \(\left \{ p\right \} =\left [ K\right ] \left \{ d\right \} \) for this system is
Now is an important step. The known end displacements from boundary conditions is substituted into \(\left \{ d\right \} \), and the corresponding row and columns from the above system of equations are
removed1. Boundary conditions
indicates that there is no rotation on the left end (since fixed). Hence \(v_{1}=0\) and \(\theta _{1}=0\). Hence the only unknowns are \(v_{2}\) and \(\theta _{2}\). Therefore the first and the second rows and columns are removed, giving
Now the above is solved for \(\begin {Bmatrix} v_{2}\\ \theta _{2}\end {Bmatrix} \). Let \(E=30\times 10^{6}\) psi (steel), \(I=57\) \(in^{4}\), \(L=144\ in\), and \(P=400\) lb, hence
Therefore the vertical displacement at the right end is \(v_{2}=0.2324\) inches (downwards) and \(\theta _{2}=-0.0024\) radians. Now that all nodal displacements are found, the field displacement function is completely determined.
The above system is now solved as before. \(E=30\times 10^{6}\) psi, \(I=57\) \(in^{4}\), \(L=144\ \)in, \(P=400\) lb
P=400;L=144;E=30*10^6;I=57.1;A=(E*I/L^3)*[126*L -12 6*L;6*L4*L^2 -6*L 2*L^2;-12-6*L 12 -6*L;6*L2*L^2 -6*L 4*L^2];load=[0;0;-P;0];%putzeros for known B.C.A(:,1)=0;A(1,:)=0; A(1,1)=1;%put1 on diagonalA(:,2)=0;A(2,:)=0; A(2,2)=1;%put1 on diagonalA
The same solution is obtained as before, but without the need to remove rows/column from the stiffness matrix. This method might be easier for programming than the first method of removing rows/columns.
The rest now is the same as was done earlier and will not be repeated.
2.1.2 Example 2
This is the same example as above, but the vertical load \(P\) is now placed in the middle of the beam
In using stiffness method, all loads must be on the nodes. The vector \(\left \{ p\right \} \) is the nodal forces vector. Hence equivalent nodal loads are found for the load in the middle of the beam. The equivalent loading is the following
Therefore, the problem is as if it was the following problem
Now that equivalent loading is in place, we continue as before. Making a free body diagram showing all loads (including reaction forces)
There is no need to determine \(R\) and \(M_{1}\) at this point since these rows will be removed due to boundary conditions \(v_{1}=0\) and \(\theta _{1}=0\) and hence those quantities are not needed to solve the equations. Note that the rows and columns are removed for the known boundary displacements before solving \(\left \{ p\right \} =\left [ K\right ] \left \{ d\right \} \). Hence, after removing the first two rows and columns, the above system simplifies to
The above is now solved for \(\begin {Bmatrix} v_{2}\\ \theta _{2}\end {Bmatrix} \) using the same
numerical values for \(P,E,I,L\) as in the first example
This is enough to obtain \(v\left ( x\right ) \) as before. Now the reactions \(R\) and \(M_{1}\) can be determined if needed. Going back to the full \(\left \{ p\right \} =\left [ K\right ] \left \{ d\right \} \), results in
Assuming the beam is fixed on the left end as above, but simply supported on the right end, and the vertical load \(P\) now at distance \(a\) from the left end and at distance \(b\) from the right end, and a uniform distributed load of density \(m\) lb/in is on the beam.
Using the following values: \(a=0.625L,b=0.375L,E=30\times 10^{6}\) psi (steel), \(I=57\) \(in^{4}\), \(L=144\ \)in\(,~P=1000\) lb, \(m=200\) lb/in.
In the above, the left end reaction forces are shown as \(R_{1}\) and moment reaction as \(M_{1}\) and the reaction at the right end as \(R_{2}\). Starting by finding equivalent loads for the point load \(P\) and equivalent loads for for the uniform distributed load \(m\). All external loads must be transferred to the nodes for the stiffness method to work. Equivalent load for the above point load
is
Equivalent load for the uniform distributed loading is
Using free body diagram, with all the loads on it gives the following diagram (In this diagram \(M\) is the reaction moment and \(R_{1},R_{2}\) are the reaction forces)
Now that all loads are on the nodes, the stiffness equation is applied
1Instead of removing rows/columns for known boundary conditions, we can also just put a \(1\) on the diagonal of the stiffness matrix for that boundary conditions. I will do this example again using this method