-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerateTrussTables.m
47 lines (42 loc) · 1.33 KB
/
generateTrussTables.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
function [compression_table, tension_table, joint_table, member_table]...
= generateTrussTables()
%generateTrussTables Generates tables to be looked up for later
%calculations
% Generates predetermined cost and relative strengh tables
compression_table = table({...
'Type 1 * 1';...
'Type 1 * 2';...
'Type 2 * 1';...
'Type 4' ;...
'Type 3 * 1';...
'Type 5' ;...
},...
[1;2;8;26;27;56],[1;2;1;1;1;1],...
'VariableNames',{'Member Type','Relative Strength','Joint Thickness'});
tension_table = table({...
'Type 1 * 1';...
'Type 1 * 2';...
'Type 2 * 1';...
'Type 3 * 1';...
'Type 2 * 2';...
'Type 3 * 2';...
},...
[1;2;1.14*2;1.2*3;1.14*4;1.2*6],[1;2;2;3;4;6],...
'VariableNames',{'Member Type','Relative Strength','Joint Thickness'});
joint_table = table([150;300],{'<= 5Sticks';'>5sticks'},'VariableNames',{'Cost','Stick Count'});
member_table = table({...
'Type 1 * 1';...
'Type 1 * 2';...
'Type 2 * 1';...
'Type 4' ;...
'Type 3 * 1';...
'Type 2 * 2';...
'Type 5' ;...
'Type 3 * 2';...
},...
[2200;2200*2;6600 ;8250 ;9900 ;6600*2 ;11000;9900*2 ],...
[5250;5250*2;15750;19680;23620;15750*2;26000;23620*2],...
[1;2;2;3;3;4;4;6],...
'VariableNames',...
{'Member Type','<= 90mm long', '> 90mm long','thickness'});
end