Question: MATLAB - Assignment # 2 Problem # 1 Your engineering firm has tasked you with conducting a simple vibration analysis of new shock absorbers that

MATLAB - Assignment #2
Problem #1
Your engineering firm has tasked you with conducting a simple vibration analysis of new shock
absorbers that are being rolled out. The shocks can be modeled as a mass-spring-damper
system, as shown in Figure 1.
Figure 1: The Mass-Spring Damper System
Mathematically, the resulting damped motion of the vehicle, after it hits a bump in the road, can
be described as:
x(t)=xe^(-\zeta \omega _(n)t)cos(\sqrt(1-\zeta ^(2))\omega _(n)t-\phi )
Where x(t) is the time-variant displacement of the vehicle from some equilibrium position, x is
the initial magnitude of the displacement, \zeta is the damping ratio, \omega _(n) is the angular frequency
and \omega is the phase shift. The angular frequency can be further expanded as:
\omega _(n)=2\pi f_(n)
Where f_(n) is the natural frequency. You have three different shock absorbers to model, which vary only in the magnitude of their damping ratios. Those values are: \(\zeta=0.1 ; 0.3\) and 0.5. The remaining parameters are shown in Table 1.
Table 1: Shock Absorber Parameters
Substituting these values into the displacement equation, we can find \( X(t)\) for any time, \( t \). However, we are not interested in a discrete solution to the problem. To analyze the transient behavior, we will have to obtain the results over a finite period of time i.e. multiple values of \( t \). Determine the variation in displacement of the system over the period \(0\leq t \leq 3\mathrm{~s}\).
Tasks
Using MATLAB, create a vector of time values, where each value will correspond to a solution of the displacement equation. Once you have obtained a vector of solutions (numerical displacement values), these can be plotted against time, allowing you to analyze the performance of each of the three shock absorbers.
Using MATLAB's plot and subplot commands, create separate graphs for the transient response of the three shocks, within the same figure. Create a fourth graph in the same figure that contains all three plots, superimposed on top of one another. All of the plots in the figure should be arranged as a \(2\times 2\) grid. Also, include: a legend; axis titles and graph titles. Tasks
Using MATLAB, create a vector of time values, where each value will correspond to a solution of the displacement equation. Once you have obtained a vector of solutions (numerical displacement values), these can be plotted against time, allowing you to analyze the performance of each of the three shock absorbers.
Using MATLAB's plot and subplot commands, create separate graphs for the transient response of the three shocks, within the same figure. Create a fourth graph in the same figure that contains all three plots, superimposed on top of one another. All of the plots in the figure should be arranged as a \(2\times 2\) grid. Also, include: a legend; axis titles and graph titles.
Things to Think About
The time vector should be of the form: \(\boldsymbol{t}=\mathbf{t 0}\) : dt: \( t \boldsymbol{f}\), where to represents the initial time \((t=0),\mathrm{dt}\) is the time-step and \( t f \) is the final time \((t=3\mathrm{~s})\). The size of the time-step can be varied. What size of time-step would you use? What happens to the simulation as you decrease the value of dt?
You may encounter an error when inserting the time vector directly into the displacement equation. What does the error message mean? How can you resolve it? Hint: Research element-wise multiplication of vectors in MATLAB.
MATLAB - Assignment # 2 Problem # 1 Your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mechanical Engineering Questions!