You are on page 1of 10

>> E=200e6

E=
200000000
>> A1=0.001
A1 =
1.0000e-03
>> A2=0.002
A2 =
0.0020
>> A3=0.0010
A3 =
1.0000e-03
>> L1=SpaceTrussElementLength(0,0,-4,5,0,0)
L1 =
6.4031
>> L2=SpaceTrussElementLength(-3,0,0,0,5,0)
L2 =
5.8310
>> L3=SpaceTrussElementLength(0,0,4,0,5,0)
L3 =
6.4031
>> theta1x=acos(0/L1)*180/pi
theta1x =
90
>> theta1y=acos(5/L1)*180/pi
theta1y =
38.6598
>> theta1z=acos(4/L1)*180/pi
theta1z =
51.3402

>> theta2x=acos(3/L2)*180/pi

0000 -0.0000 -0.theta1z) k1 = 1.0000 1.0000 -1.5236 0.2189 >> k2=SpaceTrussElementStiffness(E.9046 -1.theta1x.6598 >> theta3z=acos(-4/L3)*180/pi theta3z = 128.0000 0.theta2x = 59.9046 1.0000 0.theta2z) k2 = .5236 -1.0362 >> theta2y=acos(5/L2)*180/pi theta2y = 30.L2.0000 -0.0e+04 * 0.5236 1.0000 -1.5236 -1.A1.5236 0.9638 >> theta2z=acos(0/L2)*180/pi theta2z = 90 >> theta3x=acos(0/L3)*180/pi theta3x = 90 >> theta3y=acos(5/L3)*180/pi theta3y = 38.0000 1.theta2y.6598 >> k1=SpaceTrussElementStiffness(E.0000 0.2189 -0.2189 0.L1.5236 -0.0000 -1.0000 -1.0000 0.0000 1.0000 -0.0000 -0.0000 -0.5236 -0.5236 1.9046 1.0000 0.A2.2189 -0.theta1y.9046 -1.0000 1.0000 0.theta2x.

0441 0.8159 3.L3.0000 -0.8159 -3.0000 1.0000 1.9046 -1.0264 5.5236 -0.0000 -1.0264 5.0000 -1.0264 -0.theta3z) k3 = 1.0000 -0.9046 -1.0000 0.theta3y.0000 0.1.0000 -1.0000 1.2189 0.0000 -0.0000 -0.0264 -0.0000 -0.0000 -1.5236 -1.0000 3.0000 0.5236 1.0000 -3.0000 0.A3.0000 -0.0000 0.0000 -0.5236 -0.0000 3.8159 3.0264 -5.0264 0.8159 -3.0441 -0.2189 -0.0000 -0.0000 -1.0000 0.0000 1.0000 -0.0000 -3.0441 0.0000 0.0000 -0.0000 -1.0000 0.0000 -0.0000 0.2189 .2189 -0.0e+04 * 1.9046 1.5236 >> K=zeros(12.5236 0.5236 -1.9046 1.theta3x.0000 0.5236 0.0000 -0.0e+04 * 0.0000 0.0264 -5.0000 0.12) K= Columns 1 through 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.0000 >> k3=SpaceTrussElementStiffness(E.0264 0.0000 1.0441 -0.

0000 0 0 0 0.0000 0.1.4) K= 1.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 11 through 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> K=SpaceTrussAssemble(K.0e+04 * Columns 1 through 6 0.0000 0.0000 1.5236 0 0 0 0.9046 1.5236 1.k1.0000 1.2189 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .

8159 -3.0000 0 0 0 0.k2.0000 1.2189 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0000 0.2189 >> K=SpaceTrussAssemble(K.0000 0 0 0 -0.0000 0.0000 0 0 0 0 0 0 1.0000 -0.5236 0 0 0 0 0 0 0.5236 -1.0e+04 * 0.9046 1.5236 -0.0000 -1.2189 0 0 0 0 0 0 0.0000 1.9046 -1.0000 1.0000 1.0000 -0.0000 -0.0264 .0000 0 0 0 0 0 0 0.5236 1.5236 1.4) K= 1.0000 -1.8159 -1.5236 0 0 0 0.5236 -1.5236 0 0 0 -0.2189 0 0 0 Columns 7 through 12 0 0 0 -0.0000 -0.0000 0.2.5236 0 0 0 -0.0000 3.9046 -1.0000 -1.5236 -1.0000 -0.0000 -1.0000 -0.-0.0000 0 0 0 -0.0264 -0.9046 -1.0000 -0.0000 0.0000 -1.9046 1.2189 -0.0000 -1.

2189 0 0 0 0 0 0 0 0 0 1.0000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0.0000 1.0000 -1.0e+04 * 0.9486 1.0264 -0.2189 -0.0000 -0.0000 5.0000 -1.0000 0 0.8159 -3.0000 0 0 0.8159 -3.0000 -1.0000 -1.0000 -0.0000 0 0 0 0 0 0 0.0000 -0.0000 1.5236 -0.0000 0.8159 3.5236 0 0 -0.9046 -1.0441 0.0000 5.0000 -0.5236 .5236 0 0 0.5236 -1.0000 0 0 0 0 0 -0.0000 0 0 0 0 0 0 0.0000 0.0000 -1.5236 -3.0000 0 0 0 0 0 0 3.0264 -5.8159 -1.4) K= 1.0000 0 0 -0.0264 -5.0000 1.5236 1.0000 -0.0000 0 0 0.0000 -1.0000 0.0441 -0.3.0264 -0.0000 0.0264 0.2189 0 0 >> K=SpaceTrussAssemble(K.9046 -1.0000 -0.0441 0.0 0 0 3.0264 -3.0000 0.0000 1.0000 -0.9046 -1.5236 1.0441 -0.0000 -0.0264 6.2189 -0.0000 -0.0000 -0.0441 -0.k3.0264 0.0000 0.0000 0 0 0 0 0 0 0.0000 -0.0264 -5.0000 -0.0000 0 3.0000 -0.0000 -0.9046 0 0 1.0000 0.0000 0 1.5236 0 0 0 0 0 0 0.0000 3.5236 -1.0000 -0.9046 1.0000 0 0 -0.0264 -3.

0 .0015 -0.0264 0.0000 -0.0000 -1. 0 .0000 -0. 0 .0000 0.0000 -0.0005 -0.9046 1.0000 -1.8159 3.0000 1.0264 -5.0000 -0.0000 -1.0000 0 2.5236 3.0000 -0. 0 . 0 .0000 0 2.0264 8.0000 -0.8532 0 -0.0264 0.4378 >> k=K(10:12.0000 -1.0000 -0.2189 0.0000 0 0 0 1.0000 >> U=[0 . 0 .2189 -0.8532 0 0.0000 1.0264 8.0000 3.0441 -0.0264 -0. 0 .2189 0 0 -0.4378 >> f=[12 . 0 .8159 3.8159 -3.0 0. 0] f= 12 0 0 >> u=k\f u= 0.0000 -0.0000 -1.9046 -1.0000 -1.0e+04 * 1.5236 .5236 1.5236 -1.5236 -1. 0 .10:12) k= 1. u] U= 0 0.5236 -3.2189 -0.

0000 -8. U(2) .0000 -0. U(12)] u1 = .0000 >> u1=[U(1) .0015 -0.0000 10.0 0 0 0 0 0 0 0 0.0000 -20.0000 >> F=K*U F= 0. U(11) .0000 -0.0000 12.0000 -12.0000 10. U(3) .0000 0.0005 -0.0000 -0.0000 8. U(10) .

L1. U(12)] u3 = 0 0 0 0.0 0 0 0.theta1x.0015 -0. U(10) . U(11) .0000 >> u2=[U(4) . U(8) . U(6) . U(11) .0015 -0.0015 -0.u1) .0005 -0.0000 >> sigma1=SpaceTrussElementStress(E.theta1z.0000 >> u3=[U(7) .0005 -0. U(12)] u2 = 0 0 0 0. U(5) . U(9) . U(10) .theta1y.0005 -0.

u3) sigma3 = -1.u2) sigma2 = 1.1662e+04 >> sigma3=SpaceTrussElementStress(E.theta3y.sigma1 = -1.theta3x.2806e+04 >> sigma2=SpaceTrussElementStress(E.theta3z.theta2x.theta2y.L3.theta2z.2806e+04 .L2.