-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgroup.py
More file actions
41 lines (37 loc) · 1.43 KB
/
group.py
File metadata and controls
41 lines (37 loc) · 1.43 KB
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
from __future__ import division
def support_group(n_col, n_row, col_spacing, row_spacing): # fasteners at exterior and interior supports (ref: Fig D1-1
# of AISI S310-16)
x_support = []
y_support = []
for i in range(n_col):
for j in range(n_row):
x_support.append(i*col_spacing - (n_col-1) * col_spacing/2)
y_support.append(j*row_spacing - (n_row-1) * row_spacing/2)
return x_support, y_support
def end_group(n_col, n_row, col_spacing, row_spacing): # fasteners at exterior and interior supports (ref: Fig D1-1
# of AISI S310-16)
x_end = []
y_end = []
for i in range(n_col):
for j in range(n_row):
x_end.append(i*col_spacing - (n_col-1) * col_spacing/2)
y_end.append(j*row_spacing - (n_row-1) * row_spacing/2)
return x_end, y_end
def edge_group(n_col, n_row, col_spacing, row_spacing): # fasteners at arc spot welds (edge connection)
#w=width
x_edge = []
y_edge = []
for i in range(n_col):
for j in range(n_row):
x_edge.append(i*col_spacing - (n_col-1) * col_spacing/2)
y_edge.append(j*row_spacing - (n_row-1) * row_spacing/2)
return x_edge, y_edge
def side_group(n_col, n_row, col_spacing, row_spacing): # fasteners at arc spot welds (edge connection)
#w=width
x_side = []
y_side = []
for i in range(n_col):
for j in range(n_row):
x_side.append(i*col_spacing - (n_col-1) * col_spacing/2)
y_side.append(j*row_spacing - (n_row-1) * row_spacing/2)
return x_side, y_side