This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 2- 60Problems and Solutions Section 2.8 (2.80 through 2.86) 2.80*.Numerically integrate and plot the response of an underdamped system determined by m= 100 kg, k= 20,000 N/m, and c= 200 kg/s, subject to the initial conditions of x= 0.01 m and v= 0.1 m/s, and the applied force F(t) = 150cos5t.Then plot the exact response as computed by equation (2.33). Compare the plot of the exact solution to the numerical simulation. Solution: The solution is presented in Matlab: First the m file containing the state equation to integrate is set up and saved as ftp2_72.m function xdot=f(t, x) xdot=[-(200/100)*x(1)-(20000/100)*x(2)+(150/100)*cos(5*t); x(1)]; % xdot=[x(1)'; x(2)']=[-2*zeta*wn*x(1)-wn^2*x(2)+fo*cos(w*t) ; x(1)] % which is a state space form of % x" + 2*zeta*wn*x' + (wn^2)*x = fo*cos(w*t) (fo=Fo/m) clear all; Then the following m file is created and run: %---- numerical simulation --- x0=[0.1; 0.01]; %[xdot(0); x(0)] tspan=[0 10]; [t,x]=ode45('fp2_72',tspan,x0); plot(t, x(:,2), '.'); hold on; %--- exact solution ---- t=0: .002: 10; m=100; k=20000; c=200; Fo=150 ; w=5 wn=sqrt(k/m); zeta=c/(2*wn*m); fo=Fo/m; wd=wn*sqrt(1-zeta^2) x0=0.01; v0= 0.1; xe= exp(-zeta*wn*t) .* ( (x0-fo*(wn^2-w^2)/((wn^2-w^2)^2 ......
View Full Document
- Spring '09
- Kilogram, initial conditions