Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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 *
k2 =
1.0e+008 *
1.0e+008 *
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 *
k3 =
1.0e+007 *
1.7920 1.3440 -1.7920 -1.3440
k4 =
1.0e+007 *
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