Beruflich Dokumente
Kultur Dokumente
07.06.2016
T1=0,208190511279744 s
T2=0,0913175262451025 s
T3=0,0594127365370903
s
A1=0.080 m^2
A2=0.3969 m^2
A3=0.3467 m^2
The Frame will be verified with Robot
Structural Analysis
%
%
%
%
%
close all
clear all
disp('Seismic Response of a n-DOF Structure')
Input Data
% the structure is a in-plane frame
% input data
% Modulus of elasticity (Young Modulus)
E=2.1e11; %N/m^2
% mass
m1=1e5; %kg
m2=m1;
m3=2*m1;
% the mass matrix
M=[m1 0 0;
0 m2 0;
0 0 m3;];
% no. of dynamic degrees of freedom
ndof=length(diag(M));
% damping
niu=0.05; % 5% damping
% section dimensions
bs=0.2; %meters
hs=0.40; %meters
% Calculus
% moment of inertia
I=bs*hs^3/12;
yn(1)=0; % node 1
yn(2)=4;
yn(3)=4;
yn(4)=2;
yn(5)=0;
yn(6)=4;
yn(7)=2;
yn(8)=0;
eqt(2)=5;
eqt(3)=8;
eqt(4)=10;
eqt(5)=15;
eqt(6)=13;
eqt(7)=15;
eqt(8)=16;
% beams description
A1=bs*hs; A2=bs*(24*I/bs)^(-1/3); A3=bs*(36*I/bs)^(-1/3); %
cross-section areas of the beams, as in the notebook drawing
node1(1)=1;
of the beam
node1(2)=2;
node1(3)=3;
node1(4)=4;
node1(5)=3;
node1(6)=6;
node1(7)=7;
node2(1)=2; bI(1)=2*I;
1; moment of inertia I
node2(2)=3; bI(2)=2*I;
node2(3)=4; bI(3)=3*I;
node2(4)=5; bI(4)=3*I;
node2(5)=6; bI(5)=I;
node2(6)=7; bI(6)=2*I;
node2(7)=8; bI(7)=2*I;
% beam lengths
for i=1:nbeams
bL(i)=sqrt((xn(node2(i))-xn(node1(i)))^2+...
(yn(node2(i))-yn(node1(i)))^2);
end
h13=xlabel('X(m)');
4
set(h13,'FontName','Times','FontSize',14)
h14=ylabel('Y(m)');
set(h14,'FontName','Times','FontSize',14)
h15=title('In-Plane Frame');
set(h15,'FontName','Times','FontSize',18)
ax=axis;
procx=0.05*abs(ax(2)-ax(1));
procy=0.05*abs(ax(4)-ax(3));
ax(1)=ax(1)-procx;
ax(2)=ax(2)+procx;
ax(3)=ax(3)-procy;
ax(4)=ax(4)+procy;
axis(ax);
set(gca,'color',[0.6 0.6 0.0]);
InPlaneFrame
4
beam2
node2
beam5
node3
node6
3.5
beam3
beam6
Y(m)
2.5
2
beam1
node4
node7
1.5
beam4
beam7
0.5
0
node1
0
node5
1
node8
4
X(m)
case 2
6
disp('type 2, fixed-pinned')
kloc(1,1)=E*bA(i)/bL(i);
kloc(1,4)=-kloc(1,1);
kloc(2,2)=3*E*bI(i)/bL(i)^3;
kloc(2,3)=3*E*bI(i)/bL(i)^2;
kloc(2,5)=-kloc(2,2);
kloc(3,3)=3*E*bI(i)/bL(i);
kloc(3,5)=-kloc(2,3);
kloc(4,4)=kloc(1,1);
kloc(5,5)=kloc(2,2);
kloc(5,6)=-kloc(2,3);
% symmetrisation
kloc=kloc+kloc';
for j=1:6
kloc(j,j)=kloc(j,j)/2;
end
otherwise
disp('mistake')
end
sd=(yn(node2(i))-yn(node1(i)))/bL(i); % cosine direction
cd=(xn(node2(i))-xn(node1(i)))/bL(i); % sine direction
tt=[cd sd 0; -sd cd 0; 0 0 1;]; % time matrix
tm=[tt zeros(3,3); zeros(3,3) tt;]; % transformation matrix
kgen=tm'*kloc*tm; % general kloc matrix
%vector of equations for beam i
veq=[eqx(node1(i)) eqy(node1(i)) eqt(node1(i))...
eqx(node2(i)) eqy(node2(i)) eqt(node2(i))];
neqig=8+1;
Kred=Ktot(1:tndof-neqig,1:tndof-neqig); % reduced matrix
r11=Kred(1:ndof,1:ndof);
r12=Kred(1:ndof,ndof+1:end);
r21=Kred(ndof+1:end,1:ndof);
r22=Kred(ndof+1:end,ndof+1:end);
% dynamic stiffness matrix (along the masses vibration
directions)
K=r11-r12*inv(r22)*r21;
% classical eigenproblem
[U,W]=eig(K,M);
omegasq=diag(W);
omega=sqrt(omegasq);
T=2*pi./omega;
% frequency
fr=1./T; % Hz
% Generation of Damped Omega
omegad=omega*sqrt(1-niu^2);
% Generation of Damping Coefficient
Mg=U'*M*U; % generalized mass matrix
Cg=diag(2*niu*omega.*diag(Mg)); % generalized damping matrix
C=inv(U')*Cg*inv(U);
System Theory
% System Matrices
8
ns=vran(:,2); % acceleration
h11=figure;
set(h11,'color',[0.7 0.5 0.7]) % culoarea exteriorului
graficului
h12=plot(time,ns,[0,time(end)],[0,0]);
set(h12(1),'LineWidth',1.5,'color',[0.2 0.7 0.1]) % coloreaza
linia care defineste graficul
set(h12(2),'LineWidth',2.5,'LineStyle','-.')
h13=xlabel('Time(sec)');
set(h13,'FontName','Times','FontSize',14)
h14=ylabel('Acceleration (cm/sec^2)');
set(h14,'FontName','Times','FontSize',14)
h15=title('Vrancea Earthquake 1977, North-South Component');
set(h15,'FontName','Times','FontSize',18)
[maxy,imax]=max(ns); % min and max of values
[miny,imin]=min(ns);
maxabs=max(abs(ns)); % max absolut
ax=axis; % variabila care stocheaza axele
ax(2)=time(end);
ax(3)=miny-maxabs/15; % spatiul de sus sa fie la fel ca spatiul
de jos in varfurile graficului
ax(4)=maxy+maxabs/15;
axis(ax); % scurtarea din dreapta a graficului
h16=text(time(imax),maxy,['-- max=',num2str(maxy),'cm/s^2 at
time=',num2str(time(imax))]); % valoarea maximului de pe grafic
cu fct num2str si timpul inregistrat
set(h16,'FontName','Times','FontSize',12)
h17=text(time(imin),miny,['-- min=',num2str(miny),'cm/s^2 at
time=',num2str(time(imin))]); % valoarea minimului de pe grafic
cu fct num2str si timpul inregistrat
set(h17,'FontName','Times','FontSize',12)
set(gca,'color',[0.4 0.4 0.8])
10
VranceaEarthquake1977,NorthSouthComponent
2
max=177.62cm/s attime=3.43
100
Acceleration(cm/sec )
150
50
0
-50
-100
-150
-200
min=194.927cm/s attime=3.06
0
10
12
Time(sec)
14
16
18
20
set(h24,'FontName','Times','FontSize',14)
h25=title('Seismic response of the frame Vrancea NS, M1
direction');
set(h25,'FontName','Times','FontSize',18)
SeismicresponseoftheframeVranceaNS,M1direction
x 10
-3
Displacement(m)
6
4
2
0
-2
-4
-6
10
12
Time(sec)
14
16
18
20
13
SeismicresponseoftheframeVranceaNS,M1direction
x 10
-3
6
5
4
Velocity(m/s)
3
2
1
0
-1
-2
-3
-4
10
12
Time(sec)
14
16
18
20
14
SeismicresponseoftheframeVranceaNS,M1Direction
x 10
-3
Acceleration(m/s )
3
2
1
0
-1
-2
-3
10
12
Time(sec)
14
16
18
20
16
VranceaEarthquake1977,EastWestComponent
2
max=162.338cm/s attime=2.8
100
Acceleration(cm/sec )
150
50
-50
-100
2
min=126.12cm/s attime=3.07
0
10
12
Time(sec)
14
16
18
20
t=time;
u=y(:,1); % doua puncte inseamna toate liniile, o coloana
h64=ylabel('Displacement(m)');
set(h64,'FontName','Times','FontSize',14)
h65=title('Seismic response of the frame Vrancea EW, M1
direction');
set(h65,'FontName','Times','FontSize',18)
SeismicresponseoftheframeVranceaEW,M1direction
x 10
-3
6
5
4
Velocity(m/s)
3
2
1
0
-1
-2
-3
-4
10
12
Time(sec)
18
14
16
18
20
19
SeismicresponseoftheframeVranceaEW,M1direction
x 10
-3
6
5
4
Velocity(m/s)
3
2
1
0
-1
-2
-3
-4
10
12
Time(sec)
14
16
18
20
ax(2)=t(end);
%ax(3)=miny-maxabs/15; % spatiul de sus sa fie la fel ca
spatiul de jos in varfurile graficului
%ax(4)=maxy+maxabs/15;
axis(ax); % scurtarea din dreapta a graficului
set(gca,'color',[0.4 0.4 0.8]) % culoarea interiorului
graficului
SeismicresponseoftheframeVranceaEW,M1Direction
x 10
-3
Acceleration(m/s )
3
2
1
0
-1
-2
-3
10
12
Time(sec)
21
14
16
18
20
max=66.407cm/s attime=2.64
60
Acceleration(cm/sec )
40
20
0
-20
-40
-60
-80
-100
0
min=105.763cm/s attime=2.5
2
10
12
Time(sec)
14
16
18
20
23
SeismicresponseoftheframeVranceaUD,M1direction
x 10
-3
Displacement(m)
6
4
2
0
-2
-4
-6
10
12
Time(sec)
24
14
16
18
20
25
SeismicresponseoftheframeVranceaUD,M1direction
x 10
-3
6
5
4
Velocity(m/s)
3
2
1
0
-1
-2
-3
-4
10
12
Time(sec)
26
14
16
18
20
27
SeismicresponseoftheframeVranceaUD,M1Direction
x 10
-3
Acceleration(m/s )
3
2
1
0
-1
-2
-3
10
12
Time(sec)
28
14
16
18
20