-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbeam_col_section.py
More file actions
91 lines (57 loc) · 4.48 KB
/
Copy pathbeam_col_section.py
File metadata and controls
91 lines (57 loc) · 4.48 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import openseespy.opensees as ops
import opsvis as opsv
import matplotlib.pyplot as plt
import numpy as np
from Dimensions_and_nodes import *
from Materials import *
def area(diameter):
return (np.pi * diameter ** 2) / 4.0
Beam_SecTag = 1
Col_1_2_SecTag = 2
Col_3_4_SecTag = 3
matcolor = ['tab:blue', 'gray', 'tab:orange', 'w', 'w', 'w']
# Beam ------------------------------------------------------------
fiber_section_beam = [
['section', 'Fiber', Beam_SecTag, '-GJ', 1.0e6],
['patch', 'rect', confined_concrete_tag, 6, 6, *[-5.5 * inch, -3.5 * inch], *[5.5 * inch, 3.5 * inch]], # core
['patch', 'quad', unconfined_concrete_tag, 2, 6, *[5.5 * inch,-3.5 * inch], *[6.5 * inch,-4.5 * inch], *[6.5 * inch, 4.5 * inch], *[5.5 * inch,3.5 * inch]], # right side cover
['patch', 'quad', unconfined_concrete_tag, 2, 6, *[-6.5 * inch,-4.5 * inch], *[-5.5 * inch,-3.5 * inch], *[-5.5 * inch,3.5 * inch], *[-6.5 * inch, 4.5 * inch]], # left side cover
['patch', 'quad', unconfined_concrete_tag, 6, 2, *[-5.5 * inch,3.5 * inch], *[5.5 * inch,3.5 * inch], *[6.5 * inch, 4.5 * inch], *[-6.5 * inch,4.5 * inch]], # top side cover
['patch', 'quad', unconfined_concrete_tag, 6, 2, *[-6.5 * inch,-4.5 * inch], *[6.5 * inch,-4.5 * inch], *[5.5 * inch,-3.5 * inch], *[-5.5 * inch,-3.5 * inch]], # bottom side cover
['layer', 'straight', steel_tag, 3, area(12), *[5.5 * inch, 3.5 * inch], *[5.5 * inch, -3.5 * inch]], # right layer
['layer', 'straight', steel_tag, 3, area(12), *[-5.5 * inch, 3.5 * inch], *[-5.5 * inch, -3.5 * inch]] # left layer
]
opsv.fib_sec_list_to_cmds(fiber_section_beam)
# opsv.plot_fiber_section(fiber_section_beam, matcolor=matcolor)
# plt.title("Beam Section")
# Column for floor 1 and 2 ------------------------------------------------------------
fiber_section_col_1_2 = [
['section', 'Fiber', Col_1_2_SecTag, '-GJ', 1.0e6],
['patch', 'rect', confined_concrete_tag, 6, 6, *[-3.5 * inch, -3.5 * inch], *[3.5 * inch, 3.5 * inch]], # core
['patch', 'quad', unconfined_concrete_tag, 2, 6, *[3.5 * inch,-3.5 * inch], *[4.5 * inch,-4.5 * inch], *[4.5 * inch, 4.5 * inch], *[3.5 * inch,3.5 * inch]], # right side cover
['patch', 'quad', unconfined_concrete_tag, 2, 6, *[-4.5 * inch,-4.5 * inch], *[-3.5 * inch,-3.5 * inch], *[-3.5 * inch,3.5 * inch], *[-4.5 * inch, 4.5 * inch]], # left side cover
['patch', 'quad', unconfined_concrete_tag, 6, 2, *[-3.5 * inch,3.5 * inch], *[3.5 * inch,3.5 * inch], *[4.5 * inch, 4.5 * inch], *[-4.5 * inch,4.5 * inch]], # top side cover
['patch', 'quad', unconfined_concrete_tag, 6, 2, *[-4.5 * inch,-4.5 * inch], *[4.5 * inch,-4.5 * inch], *[3.5 * inch,-3.5 * inch], *[-3.5 * inch,-3.5 * inch]], # bottom side cover
['layer', 'straight', steel_tag, 2, area(16), *[3.5 * inch, 3.5 * inch], *[3.5 * inch, -3.5 * inch]], # right layer
['layer', 'straight', steel_tag, 2, area(16), *[-3.5 * inch, 3.5 * inch], *[-3.5 * inch, -3.5 * inch]], # left layer
]
opsv.fib_sec_list_to_cmds(fiber_section_col_1_2)
opsv.plot_fiber_section(fiber_section_col_1_2, matcolor=matcolor)
plt.title("Column Section for floor 1 and 2")
# Column for floor 3 and 4 ------------------------------------------------------------
fiber_section_col_3_4 = [
['section', 'Fiber', Col_3_4_SecTag, '-GJ', 1.0e6],
['patch', 'rect', confined_concrete_tag, 6, 6, *[-3.5 * inch, -3.5 * inch], *[3.5 * inch, 3.5 * inch]], # core
['patch', 'quad', unconfined_concrete_tag, 2, 6, *[3.5 * inch,-3.5 * inch], *[4.5 * inch,-4.5 * inch], *[4.5 * inch, 4.5 * inch], *[3.5 * inch,3.5 * inch]], # right side cover
['patch', 'quad', unconfined_concrete_tag, 2, 6, *[-4.5 * inch,-4.5 * inch], *[-3.5 * inch,-3.5 * inch], *[-3.5 * inch,3.5 * inch], *[-4.5 * inch, 4.5 * inch]], # left side cover
['patch', 'quad', unconfined_concrete_tag, 6, 2, *[-3.5 * inch,3.5 * inch], *[3.5 * inch,3.5 * inch], *[4.5 * inch, 4.5 * inch], *[-4.5 * inch,4.5 * inch]], # top side cover
['patch', 'quad', unconfined_concrete_tag, 6, 2, *[-4.5 * inch,-4.5 * inch], *[4.5 * inch,-4.5 * inch], *[3.5 * inch,-3.5 * inch], *[-3.5 * inch,-3.5 * inch]], # bottom side cover
['layer', 'straight', steel_tag, 2, area(16), *[3.5 * inch, 3.5 * inch], *[3.5 * inch, -3.5 * inch]], # right layer
['layer', 'straight', steel_tag, 2, area(16), *[-3.5 * inch, 3.5 * inch], *[-3.5 * inch, -3.5 * inch]] # left layer
]
opsv.fib_sec_list_to_cmds(fiber_section_col_3_4)
opsv.plot_fiber_section(fiber_section_col_3_4, matcolor=matcolor)
plt.title("Column Section for floor 3 and 4")
#Plotting of the sections ------------------------------------------------------------
plt.axis('equal')
plt.show()