Simulink files to download
A two degrees of freedom system consisting of two masses connected by springs and subject to 3 different type of input forces is analyzed and simulated using Simulink
The system that is being analyzed is show in the following diagram
In the above,
It is required to find
The mathematical model of the system is first developed and the equation of motions
obtained using Lagrangian formulation then the analytical solution is found by
solving the resulting coupled second order differential equations for
The following is the free body diagram of the above system
Assuming positive is downwards and that
Or in matrix form
We start by finding
From the last equation above, we see that to obtain a solution we must have
Let
For
From the first equation above, we have
Similarly for
Hence now
There are 3 different
For each of the above, we find
Using the standard response for a unit impulse which for a single degree of freedom system is
Since unit step is
Then, since now we have 2 natural frequencies, we can write
In this case, we guess that
We obtain the following
Hence by comparing coefficients, we obtain
or
Therefore
In simulink, we will directly solve the system from the original formulation
or
Hence
The simulink block diagram will be as follows for the unit step input
For an initial run with parameters
EDU>> simulink Warning: Using a default value of 0.2 for maximum step size. The simulation step size will be equal to or less than this value. You can disable this diagnostic by setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics page of the configuration parameters dialog.
And this is the output for
To verify the above output from Simulink, I solved the same coupled differential equations
for zero initial conditions numerically (using a numerical differential equation solver) and
plotted the solution for
And the output for
To verify the above output from Simulink, The same coupled differential equations were
solved numerically for zero initial conditions numerically and the solution plotted for
The simulink block diagram will be as follows for the
For an initial run with parameters
A coupled system of two masses and springs was analyzed using Simulink. The simulation was done for one set of parameters (masses and stiffness). Simulink made the simulation of this system under different loading conditions easy to do. The 2 masses response were recorded using simulink scope and the signals captured on the same plot to make it easy to compare the response of the first mass to the second mass.
The analytical analysis was more time consuming than actually making the simulation in simulink. The ability to easily change different sources to the system was useful as well as the ability to change the frequency of the input and immediately see the effect on the response.
This was my first project using Simulink, and I can see that this tool will be useful to learn more as it allows one to easily analyze engineering problems.