Modal Analysis for 3 pendulum with springs problem
by Nasser M Abbasi
This small note shows how to use Mathematica to solve symbolically for a problem in vibration to find the natural frequencies that a system of 3 masses will vibrate in. This digram below describes the problem. We use Lagrangian formulation to determine the equation of motions, then use modal analysis to decouple the system and solve it. In this system , the springs are attached at a distant α From the edge. Each pendulum has length L and has masses m1,m2,m3 attached to the end. The initial conditions are θ(0)={Pi/4,Pi/4,Pi/4} and
={0,0,0}
Define a function which accepts the kinetic and potential energy and return back the stiffness and the mass matrix
In[1]:=
In[2]:=
In[8]:=
Now define the kinetic and potenatial energy
In[9]:=
Now call the above function to generate the stiffness and mass matrix. It also prints the 3 equations of motion
In[11]:=
Now print the STIFFNESS and MASS matrix
In[12]:=
Now that we have the stiffness and mass matrix, we can perform modal analysis. Start by doing the first transformation
In[16]:=
In[20]:=
Out[23]=
In[24]:=
In[26]:=
Now find Λ matrix
In[29]:=
Out[29]=
Hence the decoupled system of differential equations is
In[30]:=
Now convert the IC from θ (t) space to r (t) space
In[35]:=
Out[36]=
In[37]:=
Out[38]=
Now solve the r (t) system
In[42]:=
In[45]:=
In[48]:=
Now convert solution from r (t) to θ (t)
In[51]:=
Out[51]//MatrixForm=
In[52]:=
Now plot the solutions
In[55]:=
In[56]:=
In[57]:=
In[58]:=
Out[58]=