Generating 4-degree of freedom beam stiffness matrix
by Nasser M. Abbasi  oct 26,2009

This diagram below is from the book "Concepts and applications of finite element methods" 4th edition. The goal is to find the stiffness matrix for this beam. It has 2 degrees of freedom per node. I will start by assuming the deflection w(x) to be a approximated by a cubic polynomial as a function of x, and then use minimum potential energy approach to find the stiffness matrix.

"finding_beam_shape_functions_from_generalized_dof_1.gif"

Assume that the deflection is approximated by "finding_beam_shape_functions_from_generalized_dof_2.gif"and from this we need to obtain the shape function N so that we can write "finding_beam_shape_functions_from_generalized_dof_3.gif" hence we see that N must be a 1 by 4 row vector. We call "finding_beam_shape_functions_from_generalized_dof_4.gif" the generalized coordinates, and "finding_beam_shape_functions_from_generalized_dof_5.gif" as the nodal degrees of freedom.

In[1]:=

"finding_beam_shape_functions_from_generalized_dof_6.gif"

Now find an expression for each of the above 4 nodal unknowns in terms of the deflection. Notice that the angle "finding_beam_shape_functions_from_generalized_dof_7.gif" as it is being approximated for small deflection (as in the angle of an arc (in radian) is the arc length over radius)

In[6]:=

"finding_beam_shape_functions_from_generalized_dof_8.gif"

Now to solve for the generalized d.o.f "finding_beam_shape_functions_from_generalized_dof_9.gif"

In[42]:=

"finding_beam_shape_functions_from_generalized_dof_10.gif"

"finding_beam_shape_functions_from_generalized_dof_11.gif"

To write the above in the form w = N d we do

In[46]:=

"finding_beam_shape_functions_from_generalized_dof_12.gif"

"finding_beam_shape_functions_from_generalized_dof_13.gif"

Now that we have found the shape functions, we can find the B matrix. Notice that for beam, the strain matrix B is given by "finding_beam_shape_functions_from_generalized_dof_14.gif"

In[50]:=

"finding_beam_shape_functions_from_generalized_dof_15.gif"

Out[50]=

"finding_beam_shape_functions_from_generalized_dof_16.gif"

and now Π, the element potential energy is found (here I only consider strain energy, no loading is needed since we only need to find the element stiffness matrix, not solve a system for unknowns).

In[53]:=

"finding_beam_shape_functions_from_generalized_dof_17.gif"

Out[56]=

"finding_beam_shape_functions_from_generalized_dof_18.gif"

Out[57]=

"finding_beam_shape_functions_from_generalized_dof_19.gif"

Out[58]=

"finding_beam_shape_functions_from_generalized_dof_20.gif"

In[59]:=

"finding_beam_shape_functions_from_generalized_dof_21.gif"

Out[60]=

"finding_beam_shape_functions_from_generalized_dof_22.gif"

Now that we have the element potential energy, we can generate the element stiffness matrix

In[61]:=

"finding_beam_shape_functions_from_generalized_dof_23.gif"

"finding_beam_shape_functions_from_generalized_dof_24.gif"

Spikey Created with Wolfram Mathematica 7.0