You are on page 1of 1

%elemento 1 nodos 4-1

e=10000;
l1=sqrt(600^2+0^2); a=10; c1=1; s1=0; r1=a*e/l1;
k1=[r1 -r1;-r1 r1];
t1=[0 0 0 0 0 0 c1 s1;c1 s1 0 0 0 0 0 0];
kg1=t1'*k1*t1

%elemento 2 nodos 1-3

e=10000;
l2=sqrt(300^2+0^2); a=10; c2=0; s2=1; r2=a*e/l2;
k2=[r2 -r2;-r2 r2];
t2=[c2 s2 0 0 0 0 0 0;0 0 0 0 s2 c2 0 0];
kg2=t2'*k2*t2

%elemento 3 nodos 1-2

e=10000;
l3=sqrt(400^2+300^2); a=10; c3=-400/l3; s3=300/l3; r3=a*e/l3;
k3=[r3 -r3;-r3 r3];
t3=[c3 s3 0 0 0 0 0 0;0 0 c3 s3 0 0 0 0];
kg3=t3'*k3*t3

%elemento 4 nodos 2-3

e=10000;
l4=sqrt(400^2+0^2); a=10; c4=1; s4=0; r4=a*e/l4;
k4=[r4 -r4;-r4 r4];
t4=[0 0 c4 s4 0 0 0 0;0 0 0 0 s4 c4 0 0];
kg4=t4'*k4*t4

%elemento 5 nodos 4-2

e=10000;
l5=sqrt(200^2+300^2); a=10; c5=200/l5; s5=300/l5; r5=a*e/l5;
k5=[r5 -r5;-r5 r5];
t5=[0 0 0 0 0 0 c5 s5;0 0 c5 s5 0 0 0 0];
kg5=t5'*k5*t5

%matriz de rigidez de la estructura

KG=kg1+kg2+kg3+kg4+kg5

% vector de fuerzas y desplazamiento

syms r6 r7 r8 d1 d2 d3 d4 d5
Q=[0 0 -200*cosd(45) 200*sind(45) 50*cosd(30) 50*sind(30)+r6 r7 r8]'
D=[d1 d2 d3 d4 d5 0 0 0]'

%ecuaciom de comportamiento

ec=Q==KG*D

You might also like