MATLAB_PROJECT

11

Click here to load reader

Transcript of MATLAB_PROJECT

Page 1: MATLAB_PROJECT

NAME OF APPLICANT: MS ARIADNE A. TSAMBALI

PhD. RESEARCH PROGRAM ON MATLAB:-

Materials Science and Engineering

Thessaloniki, August 2014

ARISTOTLE UNIVERSITY OF THESSALONIKI –

POLYTECHNIC SCOOL – SCHOOL OF CIVIL ENGINEERING –

LABORATORY OF MECHANICS AND MATERIALS

Page 2: MATLAB_PROJECT

2 MS ARIADNE TSAMBALI

Instructions of the Project:-

Page 3: MATLAB_PROJECT

3 MS ARIADNE TSAMBALI

Page 4: MATLAB_PROJECT

4 MS ARIADNE TSAMBALI

Page 5: MATLAB_PROJECT

5 MS ARIADNE TSAMBALI

Page 6: MATLAB_PROJECT

6 MS ARIADNE TSAMBALI

Page 7: MATLAB_PROJECT

7 MS ARIADNE TSAMBALI

Page 8: MATLAB_PROJECT

8 MS ARIADNE TSAMBALI

The Algorithmic Code under Matlab Program v13.0, for this Model is given on next

page:-

Page 9: MATLAB_PROJECT

9 MS ARIADNE TSAMBALI

t=0:3/5000:3; t=t'; m=2; k=5000; c=30; Po=1000; W=20; xo=0.01; vo=0; wn=sqrt(k/m); z=c/(2*wn*m); wd=wn*sqrt(1-z^2); D=Po/sqrt((k-m*W^2)^2+(c*W)^2); fs=atan(c*W/(k-m*W^2)); for i=1:size(t,1); xp(i)=D*sin(W*t(i)-fs); if z<1; B=xo+D*sin(fs); C=(vo-D*W*cos(fs)+z*wn*B); A=sqrt(((B*wd)^2+(C+z*wn*B)^2)/wd^2); fc=atan((C+z*wn*B)/(wd*B)); xh(i)=A*cos(wd*t(i)-fc)*exp(-z*wn*t(i)); else if z>1; D1=(vo-D*W*cos(fs)+wn*(z+sqrt(z^2-1))*(xo+D*sin(fs)))/(2*wn*sqrt(z^2-1)); D2=xo+D*sin(fs)-D1; xh(i)=(D1*exp(t(i)*wn*sqrt(z^2-1))+D2*exp(-t(i)*wn*sqrt(z^2-1)))*exp(-z*wn*t(i)); else; B=xo+D*sin(fs); C=vo-D*W*cos(fs)+B*wn; xh(i)=(B+C*t(i))*exp(-wn*t(i)); end; end; x(i)=xp(i)+xh(i); end; x=x' plot(t,xh,'Marker', 'O') hold on plot(t,xp, 'color', 'r') hold on plot(t,x, 'color','g') hold off

Page 10: MATLAB_PROJECT

10 MS ARIADNE TSAMBALI

0 20 40 60 80 100 1200

0.5

1

1.5

2

2.5

3

3.5

4x 10

4

Page 11: MATLAB_PROJECT

11 MS ARIADNE TSAMBALI

0 0.5 1 1.5 2 2.5 3-0.4

-0.3

-0.2

-0.1

0

0.1

0.2

0.3