Вы находитесь на странице: 1из 5

Gheorghe Asach Technical University of Iasi

Faculty of Civil Engineering and Building Services


Master of Structural Engineering
A.Y. 2016-2017, 2nd Semester
Andvaced Earthquake Engineering

HOMEWORK NO.2
Programming portfolio

Master student: Ionescu Giovanni

Iasi, May 2017


Problem no.5
Title: 1d.o.f.s. cantilever in free damped vibrations

Requirements
Be the cantilever in the next figure:
Get the free damped vibration with initial conditions:
u0=0.01m and
u 0=5 m s .

Analysis
u 0 +u 0
u ( t ) =et (u0 cos ( D t ) + sin ( D t ))

Programming the problem


% author: Ionescu Cristian % velocity
% master Structural Engineering, first year, ud=-niu*omega*u+...
2016-2017 exp(-niu*omega*time).*...
clear all (-u0*omegad*sin(omegad*time)+...
close all (ud0+niu*omega*u0)*cos(omegad*time));
disp('Free damped response of a 1DOFS') % graphics
% Dynamic characteristics of the catilever h21=figure;
% input data set(h21,'color',[1. 0.8 0.8])
m=1e5; % mass in kg h22=plot(time,ud,[0,time(end)],[0,0]);
E=2.1e11; % Young modulus in N/m^2 set(h22(1),'color',[0.0 0.0
h=3; % height of the cantilever 0.5],'linewidth',2)
bs=0.25; % section base in m set(h22(2),'color',[0.0 0.0 0.0])
hs=0.40; % section height in m h23=title('1DOFS Damped velocity response');
niu=0.05; % damping coefficient set(h23,'fontname','times','fontsize',18)
% intemediate calculus h24=xlabel('time(sec)');
I=bs*hs^3/12; % moment of inertia in m^4 set(h24,'fontname','times','fontsize',16)
delta=h^3/3/E/I; % flexibility in m/N h25=ylabel('velocity(m/s)');
k=1/delta; % stiffness in N/m set(h25,'fontname','times','fontsize',16)
omega=sqrt(k/m); % circular frequency in rad/s set(gca,'color',[0.7 0.9 0.7])
T=2*pi/omega; % period of vibration in sec.
f=1/T; % frequency in Hz
% more input data
ud0=5; % initial velocity in m/s % acceleration
u0=0.01; % initial displacement in m udd=-niu*omega*ud+...
% time of display -niu*omega*exp(-niu*omega*time).*...
time=0:0.01:3; (-u0*omegad*sin(omegad*time)+...
% displacement (ud0+niu*omega*u0)*cos(omegad*time))-...
omegad=omega*sqrt(1-niu^2); -omega^2*u;
u=exp(-niu*omega*time).*... % graphics acceleration
(u0*cos(omegad*time)+... h31=figure;
set(h31,'color',[1. 0.8 0.8])
h32=plot(time,udd,[0,time(end)],[0,0]);
(ud0+niu*omega*u0)/omegad*sin(omegad*time)); set(h32(1),'color',[0.0 0.0
% graphics 0.5],'linewidth',2)
h11=figure; set(h32(2),'color',[0.0 0.0 0.0])
set(h11,'color',[1. 0.8 0.8]) h33=title('1DOFS Damped acceleration
h12=plot(time,u,[0,time(end)],[0,0]); response');
set(h12(1),'color',[0.0 0.0 set(h33,'fontname','times','fontsize',18)
0.5],'linewidth',2) h34=xlabel('time(sec)');
set(h12(2),'color',[0.0 0.0 0.0]) set(h34,'fontname','times','fontsize',16)
h13=title('1DOFS Damped displacement h35=ylabel('acceleration(m/s^2)');
response'); set(h35,'fontname','times','fontsize',16)
set(h13,'fontname','times','fontsize',18) set(gca,'color',[0.7 0.9 0.7])
h14=xlabel('time(sec)');
set(h14,'fontname','times','fontsize',16)
h15=ylabel('displacement(m)'); % graphics of comparison
set(h15,'fontname','times','fontsize',16) h41=figure;
set(gca,'color',[0.7 0.9 0.7]) set(h41,'color',[1. 0.8 0.8])
subplot(3,1,1)
h42=plot(time,u,[0,time(end)],[0,0]); set(h61,'color',[1. 0.8 0.8])
set(h42(1),'color',[0.0 0.0 M=V*h;
0.5],'linewidth',2) h62=plot(time,M,[0,time(end)],[0,0]);
set(h42(2),'color',[0.0 0.0 0.0]) set(h62(1),'color',[0.0 0.0
h45=title('1DOFS Damped responses'); 0.5],'linewidth',2)
set(h45,'fontname','times','fontsize',18) set(h62(2),'color',[0.0 0.0 0.0])
h47=ylabel('displacement(m)'); h63=title('1DOFS Damping bending moment
set(h47,'fontname','times','fontsize',12) response');
set(gca,'color',[0.7 0.9 0.7]) set(h63,'fontname','times','fontsize',18)
subplot(3,1,2) h64=xlabel('time(sec)');
h43=plot(time,ud,[0,time(end)],[0,0]); set(h64,'fontname','times','fontsize',16)
set(h43(1),'color',[0.0 0.0 h65=ylabel('Bending Moment (Nm)');
0.5],'linewidth',2) set(h65,'fontname','times','fontsize',16)
set(h43(2),'color',[0.0 0.0 0.0]) set(gca,'color',[0.7 0.9 0.7])
h48=ylabel('velocity(m/s)'); % graphics of sigma max. at the base
set(h48,'fontname','times','fontsize',12) h71=figure;
set(gca,'color',[0.7 0.9 0.7]) set(h71,'color',[1. 0.8 0.8])
subplot(3,1,3) sigma=6*M/bs/hs^2*h;
h44=plot(time,udd,[0,time(end)],[0,0]); h72=plot(time,sigma,[0,time(end)],[0,0]);
set(h44(1),'color',[0.0 0.0 set(h72(1),'color',[0.0 0.0
0.5],'linewidth',2) 0.5],'linewidth',2)
set(h44(2),'color',[0.0 0.0 0.0]) set(h72(2),'color',[0.0 0.0 0.0])
h46=xlabel('time(sec)'); h73=title('1DOFS Damped sigma max. response');
set(h46,'fontname','times','fontsize',16) set(h73,'fontname','times','fontsize',18)
h49=ylabel('acceleration(m/s^2)'); h74=xlabel('time(sec)');
set(h49,'fontname','times','fontsize',12) set(h74,'fontname','times','fontsize',16)
set(gca,'color',[0.7 0.9 0.7]) h75=ylabel('Sigma max. (N/m^2)');
% graphics of shear force set(h75,'fontname','times','fontsize',16)
h51=figure; set(gca,'color',[0.7 0.9 0.7])
set(h51,'color',[1. 0.8 0.8]) % graphics of tau max. at the base
V=m*udd; h81=figure;
h52=plot(time,V,[0,time(end)],[0,0]); set(h81,'color',[1. 0.8 0.8])
set(h52(1),'color',[0.0 0.0 tau=3/2*V/bs/hs;
0.5],'linewidth',2) h82=plot(time,tau,[0,time(end)],[0,0]);
set(h52(2),'color',[0.0 0.0 0.0]) set(h82(1),'color',[0.0 0.0
h53=title('1DOFS Damped shear force 0.5],'linewidth',2)
response'); set(h82(2),'color',[0.0 0.0 0.0])
set(h53,'fontname','times','fontsize',18) h83=title('1DOFS Damped tau max. response');
h54=xlabel('time(sec)'); set(h83,'fontname','times','fontsize',18)
set(h54,'fontname','times','fontsize',16) h84=xlabel('time(sec)');
h55=ylabel('Shear force (N)'); set(h84,'fontname','times','fontsize',16)
set(h55,'fontname','times','fontsize',16) h85=ylabel('Sigma max. (N/m^2)');
set(gca,'color',[0.7 0.9 0.7]) set(h85,'fontname','times','fontsize',16)
% graphics of bending moment at the base set(gca,'color',[0.7 0.9 0.7])
h61=figure;
Results

1DOFSDampeddisplacementresponse
0.3

0.2

0.1
displacement(m)

-0.1

-0.2

-0.3

-0.4
0 0.5 1 1.5 2 2.5 3
time(sec)

Conclusions
In order to solve the proposed problem Matlab was a tool very useful for this goal.

Вам также может понравиться