Sei sulla pagina 1di 8

Q1

a) Determine the element stiffness matrix for each element


(b) Assemble the structural global stiffness matrix [K].
(c) Solve for the nodal displacement.
(d) Stresses in each element
(e) Calculate the reaction forces.

clc;
clear all;
E1=200e9;
E2=200e9;
A1=1250e-6;
A2=1000e-6;
theta1=34;
theta2=180;
L1=0.9014;
L2=750e-3;
k1=PlaneTrussElementStiffness(E1,A1,L1, theta1)
k2=PlaneTrussElementStiffness(E2,A2,L2, theta2)
K=zeros(6);
K= PlaneTrussAssemble(K,k1,1,2);
K= PlaneTrussAssemble(K,k2,2,3)
knew=K(3:4,3:4);
f=[0;-50];
u=inv(knew)*f
U=[0;0;u;0;0]
F=K*U
RESULT

k1 =

1.0e+008 *

1.9062 1.2858 -1.9062 -1.2858

1.2858 0.8673 -1.2858 -0.8673

-1.9062 -1.2858 1.9062 1.2858

-1.2858 -0.8673 1.2858 0.8673

k2 =

1.0e+008 *

2.6667 -0.0000 -2.6667 0.0000

-0.0000 0.0000 0.0000 -0.0000

-2.6667 0.0000 2.6667 -0.0000

0.0000 -0.0000 -0.0000 0.0000


K=

1.0e+008 *

1.9062 1.2858 -1.9062 -1.2858 0 0

1.2858 0.8673 -1.2858 -0.8673 0 0

-1.9062 -1.2858 4.5729 1.2858 -2.6667 0.0000

-1.2858 -0.8673 1.2858 0.8673 0.0000 -0.0000

0 0 -2.6667 0.0000 2.6667 -0.0000

0 0 0.0000 -0.0000 -0.0000 0.0000

u=

1.0e-006 *

0.2780

-0.9887
U=

1.0e-006 *

0.2780

-0.9887

F=

74.1280

50.0000

-50.0000

-74.1280

0.0000
Q2
(a) Determine the element stiffness matrix for each element
(b) Assemble the structural global stiffness matrix [K].
(c) Solve for the nodal displacement.
(d) Stresses in each element
(e) Calculate the reaction forces.

clc;
clear all;
E=70e9;
A=200e-6;
theta1=0;
theta2=90;
theta3=216.87;
theta4=180;
L1=400e-3;
L2=300e-3;
L3=500e-3;
L4=400e-3;
k1=PlaneTrussElementStiffness(E,A,L1, theta1)
k2=PlaneTrussElementStiffness(E,A,L2, theta2)
k3=PlaneTrussElementStiffness(E,A,L3, theta3)
k4=PlaneTrussElementStiffness(E,A,L4, theta4)
K=zeros(8);
K= PlaneTrussAssemble(K,k1,1,2);
K= PlaneTrussAssemble(K,k2,2,3);
K= PlaneTrussAssemble(K,k3,3,1);
K= PlaneTrussAssemble(K,k4,3,4);
knew=K(3:6,3:6);
f=[20e3;0;0;-25e3];
u=inv(knew)*f
U=[0;0;u;0;0]
F=K*U
RESULT

k1 =

35000000 0 -35000000 0

0 0 0 0

-35000000 0 35000000 0

0 0 0 0

k2 =

1.0e+007 *

0.0000 0.0000 -0.0000 -0.0000

0.0000 4.6667 -0.0000 -4.6667

-0.0000 -0.0000 0.0000 0.0000

-0.0000 -4.6667 0.0000 4.6667

k3 =

1.0e+007 *
1.7920 1.3440 -1.7920 -1.3440

1.3440 1.0080 -1.3440 -1.0080

-1.7920 -1.3440 1.7920 1.3440

-1.3440 -1.0080 1.3440 1.0080

k4 =

1.0e+007 *

3.5000 -0.0000 -3.5000 0.0000

-0.0000 0.0000 0.0000 -0.0000

-3.5000 0.0000 3.5000 -0.0000

0.0000 -0.0000 -0.0000 0.0000

u=

0.0006

-0.0037

0.0010

-0.0037
U=

0.0006

-0.0037

0.0010

-0.0037

F=

1.0e+004 *

1.3333

2.5000

2.0000

-0.0000

-2.5000

-3.3333

0.0000

Potrebbero piacerti anche