Vous êtes sur la page 1sur 1

%ASSIGNMENT -1 : FORCED DAMPED OSCILLATION

syms m k1 b G W Fo
syms Wo
syms z(t)
Wo=sqrt(k1/m);
G=b/(2*m);
z(t)=dsolve(diff(z,t,t) == -2*G*diff(z,t)-(Wo.^2)*z+Fo*exp((-i)*W*t))
% note that the first two terms in the solution that we get while compiling this with the constants C1
%and C2 are the general solution of without external force acting. And as t tends to infinity they will
tend to zero thus we are left with only the last term that is .
-Wt
% Fom
% -
% 2 2
% W m + Wb - Wo m

% now easily equating the i terms and other terms we find the amplitude and phase lag.
% plotting it .
% we are assuming values for the system .
m=2; %mass
K1=10; %spring constant
b=3; %viscous constant
Fo=20; %magnitude of the force
W=[0:.1:10]; %angular frequency of force
%The equation or amplitude is given as
A=(Fo./m)./sqrt((Wo.*Wo-W.*W).^2 + (2.*G.*W).^2);
%Plotting this
plot(W,A);
% the equation or phase is given by
Del=atan((2*G*W)./(Wo.*Wo-W.*W));
Del(Del<0) = Del(Del<0) + pi ;
plot(W,Del);

Vous aimerez peut-être aussi