Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.18 MB, 12 trang )
<span class="text_page_counter">Trang 2</span><div class="page_container" data-page="2">
Tìm đáp ứng chuyển vị và vận tốc bằng phương pháp Newmark và sai phân trung tâm.
</div><span class="text_page_counter">Trang 8</span><div class="page_container" data-page="8">tt=0:h:tmax; % time range
xk=xk+a1*xm+a1d*xd; % effective. stiff. matrix acc=xm\p; % initial acceleration
dis=zeros(2,1); % initial displacements vel=zeros(2,1); % initial velocities t=0; % initial time
kk=0; % step counter
kmax=round(tmax/h); % how many steps for tmax % dimensions of arrays to be plotted later dis1=zeros(kmax,1);
while t<=tmax, % integate while t <= tmax
[disn,veln,accn] =VTRnewmd(beta,gama,dis,vel,acc,xm,xd,xk,p,h); kk=kk+1; % increment step counter
t=t+h; % increment time value
dis1(kk)=dis(1); dis2(kk)=dis(2); % save for plotting dis=disn; vel=veln; acc=accn; % new values for next step p1=p10*sin(ome*t); p2=p20*sin(ome*t); % excitation forces % calculate steady-state response % displacements according to (5.182) are
lab=['gamma for Newmark is ' num2str(gama)]; title(lab); xlabel('time'); ylabel('particle 2')
11
</div><span class="text_page_counter">Trang 12</span><div class="page_container" data-page="12">sgama = gama*100; str_sgama = int2str(sgama); file_name = ['V2Etwodof3a' str_sgama]; print('-deps', file_name); print('-dmeta',file_name);
function [disn,veln,accn] =VTRnewmd(beta,gama,dis,vel,acc,xm,xd,xk,p,h) % Newmark integration method
% beta, gama coefficients
% dis,vel,acc displacements, velocities, accelerations at the begining of time step % disn,veln,accn corresponding quantities at the end of time step
% xm,xd mass and damping matrices % xk effective rigidity matrix % p loading vector at the end of time step
</div>