

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Professor: Ferri; Class: Computing Techniques; Subject: Mechanical Engineering; University: Georgia Institute of Technology-Main Campus; Term: Fall 2016;
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


=
10
1
i
x
y
W
φ
L L^ L
H
1 2 3
4
5 6 7
1 2
3
4 5
6 7
8 9 10
% Function returns a weighted sum of truss length and max load % taking the height of the truss, H, as input
function J = jcostf01(H);
% Define weighting parameter and assign other parameters
global R_parameter
r=R_parameter; % copy from global parameter
L = 2; phi=atan(H/L); c=cos(phi); s=sin(phi);
% Create A and B and solve for X
% F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 R1x R1y R4x A=[ 1 0 c 0 0 0 0 0 0 0 1 0 0 ; % 1x 0 0 -s 0 0 0 0 0 0 0 0 1 0 ; % 1y -1 1 0 0 c 0 0 0 0 0 0 0 0 ; % 2x 0 0 0 -1 -s 0 0 0 0 0 0 0 0 ; % 2y 0 -1 0 0 0 0 c 0 0 0 0 0 0 ; % 3x 0 0 0 0 0 -1 -s 0 0 0 0 0 0 ; % 3y 0 0 0 0 0 0 0 1 0 0 0 0 1 ; % 4x 0 0 -c 0 0 0 0 -1 1 0 0 0 0 ; % 5x 0 0 s 1 0 0 0 0 0 0 0 0 0 ; % 5y 0 0 0 0 -c 0 0 0 -1 1 0 0 0 ; % 6x 0 0 0 0 s 1 0 0 0 0 0 0 0 ; % 6y 0 0 0 0 0 0 -c 0 0 -1 0 0 0 ; % 7x 0 0 0 0 0 0 s 0 0 0 0 0 0 ];% 7y
B = [0 0 0 0 0 0 0 0 0 0 0 0 1000 ]';
x=A\B
F_max = max(abs(x(1:10))) F_max = F_max/1000 % convert from N to kN