Question

Consider the Spring-Mass-Damper system: 17 →xt) linn M A Falt) Ffl v) Consider the following system parameter values: Case 1:

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The following equations are solved in matlab:

mx + bxtkn=F HT let, 4,= * 9 = my + b => ý = = = Uz = ý, + ky, = F - - t-ky, - byz m

MATLAB code:

%Given time span

tspan = [0 20];

%Given Inputs - case 1

m1 = 7;

b1 = 1;

Fa1= 3;

k1 = 2;

y01 = [4 0];

%Given Inputs - case 1

m2= 30;

b2 = 1;

Fa2= 3;

k2 = 2;

y02 = [2 0];

%Numerical solution of differential equations

[T1,Y1] = ode45(@(t,y) coupled_diff(t,y,m1,b1,Fa1,k1),tspan,y01);

[T2,Y2] = ode45(@(t,y) coupled_diff(t,y,m2,b2,Fa2,k2),tspan,y02);

tiledlayout(2,1)

nexttile

plot(T1,Y1(:,1),'LineWidth',2);

hold on

plot(T2,Y2(:,1),'LineWidth',2);

hold off

legend('case-1','case-2','Location','best')

title('Displacement')

xlabel('time,s')

ylabel('x,m')

nexttile

plot(T1,Y1(:,2),'LineWidth',2);

hold on

plot(T2,Y2(:,2),'LineWidth',2);

hold off

legend('case-1','case-2','Location','best')

title('Velocity')

xlabel('time,s')

ylabel('velocity,m/s')

%Function definition

function f = coupled_diff(t,y,m,b,F,k)

f = zeros(2,1);

f(1) = y(2);

f(2) = (F-k*y(1)-b*y(2))/m;

end

Output:

Displacemen . Eman case-1 -case-2 X,m 15 10 time, s Velocity velocity,mis case-1 case 2 10 time, s

It takes longer for case-1 to stabilize because of higher initial displacement and relatively lower mass. Higher masses are damped faster.

Add a comment
Know the answer?
Add Answer to:
Consider the Spring-Mass-Damper system: 17 →xt) linn M A Falt) Ffl v) Consider the following system...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • a can be skipped Consider the following second-order ODE representing a spring-mass-damper system for zero initial...

    a can be skipped Consider the following second-order ODE representing a spring-mass-damper system for zero initial conditions (forced response): 2x + 2x + x=u, x(0) = 0, *(0) = 0 where u is the Unit Step Function (of magnitude 1). a. Use MATLAB to obtain an analytical solution x(t) for the differential equation, using the Laplace Transforms approach (do not use DSOLVE). Obtain the analytical expression for x(t). Also obtain a plot of .x(t) (for a simulation of 14 seconds)...

  • Solve the question in Matlab and please show Matlab code Consider a double Spring-Mass-Damper System as...

    Solve the question in Matlab and please show Matlab code Consider a double Spring-Mass-Damper System as shown in the figure below: U >F(t) A. Create a Simulink model to simulate the dynamics of the above system for the following parameter values: F(t) = Step input force of magnitude 5 N ml = 7 kg, b1 = 3 Nsec/m, kl = 4 N/m m2 = 3 kg, b2 = 1 Nsec/m, k2= 2 N/m B. Submit a snapshot of the Simulink...

  • Consider the following second-order ODE representing a spring-mass-damper system for zero initial...

    Consider the following second-order ODE representing a spring-mass-damper system for zero initial conditions (forced response): where u is the Unit Step Function (of magnitude 1 a. Use MATLAB to obtain an analytical solution x() for the differential equation, using the Laplace Transforms approach (do not use DSOLVE). Obtain the analytical expression for ao. Also obtain a plot of x() (for a simulation of 14 seconds) b. Obtain the Transfer Function representation for the system. c. Use MATLAB to obtain the...

  • Problem 1. Consider the following mass, spring, and damper system. Let the force F be the...

    Problem 1. Consider the following mass, spring, and damper system. Let the force F be the input and the position x be the output. M-1 kg b- 10 N s/m k 20 N/nm F = 1 N when t>=0 PART UNIT FEEDBACK CONTROL SYSTEM 5) Construct a unit feedback control for the mass-spring-damper system 6) Draw the block diagram of the unit feedback control system 7) Find the Transfer Function of the closed-loop (CL) system 8) Find and plot the...

  • Consider the spring-mass-damper system shown. Assume M-1kg. B - 20 N-s/m, K-25 N/m and f(t) =...

    Consider the spring-mass-damper system shown. Assume M-1kg. B - 20 N-s/m, K-25 N/m and f(t) = ON (zero-input case). The initial conditions are: x(O) = 1 m, x(0) = 0 m/s Select the correct plot of "x vs. t" for this zero-input case. They M B 0 0 O O o

  • 3. Consider the following mass-spring-damper system. Let m= 1 kg, b = 10 Ns/m, and k...

    3. Consider the following mass-spring-damper system. Let m= 1 kg, b = 10 Ns/m, and k = 20 N/m. b m F k a) Derive the open-loop transfer function X(S) F(s) Plot the step response using matlab. b) Derive the closed-loop transfer function with P-controller with Kp = 300. Plot the step response using matlab. c) Derive the closed-loop transfer function with PD-controller with Ky and Ka = 10. Plot the step response using matlab. d) Derive the closed-loop transfer...

  • Problem Set A Problem 6. (20%) A ordinary differential equation for a mass-damper-spring system is following....

    Problem Set A Problem 6. (20%) A ordinary differential equation for a mass-damper-spring system is following. The mass m 1, damping coetfic e initial position y(o) O, and the initial velocity i constant k 3 and force 10, all are in appropriate units. Th 1, spring zero, within the time range of O to 20 unit of time, use Matlab find the solution of function y(t)? Hint: you need to convert the 2nd order ODE into two 1st order ODEs....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT