Laplace transforms:Mass-Spring Oscillator: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 198: Line 198:


==Part 4==
==Part 4==
From the transfer function in the [[#Laplace Transform|Laplace Transform]] section,

<math>
H(s)=\frac{.1}{s^2 + 3.066s +50}
</math>

it can be seen that there are no zeros (no s variables in the numerator that would make the function equal zero), but there are places in the s-domain in the denominator that would exhibit some interesting behavior. This will occur when the <math>s^2</math> and the <math>k/m</math> term, in this case "50", are on the same order of magnitude. When this happens, one value will quit dominating the other, and therefore cause problems on the real-imaginary coordinate system. This point can be visually observed by finding the intersection of the asymptotes in the Bode Plot. Where they intersect is (roughly) a breakpoint. It looks as though this is also the max of the Bode Plot and possibly the resonant frequency.


==Part 5==
==Part 5==
The convolution is a equation that relates the output to the input in terms of the transfer function. As derived in class, it is

<math>
x(t)=x_{in}(t) * h(t) = \int_{0}^{t} {x(t_0) \, h(t-t_0) \, dt_0}
</math>

Where <math>h(t)</math> is the inverse laplace of the transfer function.

<math>
h(t)=\mathcal{L}^{-1} \left\{ \frac{.1}{s^2 + 3.066s + 50} \right\} = x(t)=0.2cos(6.9029t)e^{-1.533t}
</math>

So

<math>
x(t)=
x_{in}(t)*h(t) =
\int_{0}^{t} {\delta(t)0.2cos(6.9029(t-t_0))e^{-1.533(t-t_0)} \, dt_0}
</math>

To solve the integral, one must do two integration by parts, or alternatively plug it into a calculator, which yields

<math>
x(t)= \frac{-3}{2120} \, g \, \sin{\theta} \, e^{\frac{-1}{6}t} \left( 159 \cos{\left( \frac{\sqrt{159} \, t}{6} \right)} + \sqrt{159} \sin{\left( \frac{\sqrt{159} \, t}{6} \right)} - 159 \, e^{\frac{1}{6}t} \right)
</math>

----
----



Revision as of 15:34, 3 November 2009

Problem Statement

Part 1

An ideal mass m=10kg is sitting on a plane, attached to a rigid surface via a spring. The spring with k=500N/m is exerting zero force when the mass is centered at x=0. Between the mass and plane there is a 1 mm layer of a viscous fluid and the block has an area of .1m^2 in contact the plane. Find the equation of motion that the spring mass system follows if there is an initial impulse applied, and then find the viscosity value of the fluid so that the mass comes to a stop within three seconds with the initial impulse used. Below is a picture/FBR of the system.


Fig. 1


As set up, the mass is sitting at x=0 with positive being to the right.

Part 2

Apply the Initial Value and Final Value Theorems to this problem.

Part 3

Make a bode plot.

Part 4

Find how to use the break points and asymptotes to obtain the magnitude frequency response.

Part 5

Use convolution to find the output.


Solution

Part 1

Using the FBR from the problem statement we can set up our differential equation:




We now have a second order differential equation that governs the motion of the mass. If we make our initial conditions equal to zero, we save a few steps. Taking the Laplace transform of both sides gives:













Now that we have the Laplace transform of the differential equation that governs the motion of the spring and mass system, we need to solve for X(s):



We now have the function in terms of X(s). We will use the above equation to help in part 3, but for now we want to continue with part 1. We now want to find the value of b so that the mass stops oscillating after t=3s. However, we know that it will never actually be zero until a long time after, so for now we will consider motion >2% of original to be stopped. The below formula helps us find the value of b:





Now using the relationship below, we are able to compute the value of b:




When we plug this number into the Laplace transform equation along with the values given:




The next step of taking the inverse Laplace transform is pretty complicated since we have complex roots, so I will just show the equation after it has been put back through:



If we want to plot the equation above to see whether or not it looks good, we can use the below code in Matlab:

t=0:.01:4;
x=0.2.*cos(6.9029.*t).*exp(-1.533.*t);
plot(t,x);
grid
xlabel('time (sec)');
ylabel('amplitude (m)');
Fig. 1


Well, it looks good within that 2% value that we were looking for.


We have found the equation that the mass follows with the value of b that brings the mass to a "stop" within three seconds. But now we need to find the viscosity of the fluid that goes with that b value.


The equation below is one of the standard shear stress equations:


.....where is the film thickness and is the kinematic viscosity.


We know that force is just a certain stress applied to an area, so:




Now we just plug in the values that are given and what we have found and we get:




We have now found the viscosity value of the fluid used to damper the system. If we look that value up in a book, we find that this is about the viscosity of some SAE-10W oils at reasonable temperatures.


Part 2

The Initial Value Theorem states:



So if we plug our equation into this we have:





As expected, the Initial Value Theorem shows us that the initial value is just the initial x value.


The Final Value Theorem States:






As expected, the final value will be zero because the mass will come back to rest in the position from which it began at x=0.


Part 3

I used maple to plot the bode plots of the system using the below code which is pretty simple.


g = tf([.1],[1 3.066 50]);
bode(g);
grid 
Fig. 2

Part 4

From the transfer function in the Laplace Transform section,

it can be seen that there are no zeros (no s variables in the numerator that would make the function equal zero), but there are places in the s-domain in the denominator that would exhibit some interesting behavior. This will occur when the and the term, in this case "50", are on the same order of magnitude. When this happens, one value will quit dominating the other, and therefore cause problems on the real-imaginary coordinate system. This point can be visually observed by finding the intersection of the asymptotes in the Bode Plot. Where they intersect is (roughly) a breakpoint. It looks as though this is also the max of the Bode Plot and possibly the resonant frequency.

Part 5

The convolution is a equation that relates the output to the input in terms of the transfer function. As derived in class, it is

Where is the inverse laplace of the transfer function.

So

To solve the integral, one must do two integration by parts, or alternatively plug it into a calculator, which yields


Written by: David Steinweg

Checked by: Nathan Reeves