請教時域動力响應分析
情況如下:我想在每一個時間間隔加一個脈沖,上一個時間間隔的速度,位移,加速度為下一個時間間隔的初始值for i=1:nt
P_(:,i+1)=P(:,i+1)+mm*(A1*disp(:,i)+A3*vel(:,i)+A4*acc(:,i))+c*(A2*disp(:,i)+A6*vel(:,i)+A5*acc(:,i)); % effective force vector at time(i+1)
disp(:,i+1)=iK*P_(:,i+1); % displacement at time t(i+1)
acc(:,i+1)=A1*(disp(:,i+1)-disp(:,i))-A3*vel(:,i)-A4*acc(:,i); % acceleration at time t(i+1)
vel(:,i+1)=vel(:,i)+a6*acc(:,i)+a7*acc(:,i+1); % velocity at time t(i+1)
dispp(:,i)=disp(:,i+1)
accc(:,i)=acc(:,i+1);
vell(:,i)=vel(:,i+1);
P_(:,i+2)=P(:,i+2)+mm*(A1*dispp(:,i)+A3*vell(:,i)+A4*accc(:,i))+c*(A2*dispp(:,i)+A6*vel(:,i)+A5*accc(:,i)); % effective force vector at time(i+1)
dispp(:,i+2)=iK*P_(:,i+1); % displacement at time t(i+1)
accc(:,i+2)=A1*(dispp(:,i+1)-disp(:,i))-A3*vell(:,i)-A4*accc(:,i); % acceleration at time t(i+1)
vell(:,i+2)=vell(:,i)+a6*accc(:,i)+a7*accc(:,i+1); % velocity at time t(i+1)
end
页:
[1]