-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbeam_col_section_Retrofit_Concrete_Jacketing.py
More file actions
111 lines (72 loc) · 6.69 KB
/
Copy pathbeam_col_section_Retrofit_Concrete_Jacketing.py
File metadata and controls
111 lines (72 loc) · 6.69 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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_Retrofit_Concrete_Jacketing 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', 'brown', 'orange', 'skyblue']
# 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(16), *[5.5 * inch, 3.5 * inch], *[5.5 * inch, -3.5 * inch]], # right layer
['layer', 'straight', steel_tag, 3, area(16), *[-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]], # existing core
['patch', 'quad', confined_concrete_tag_retrofit, 4, 6, *[3.5*inch,-3.5*inch], *[8*inch,-8*inch], *[8*inch, 8*inch], *[3.5*inch,3.5*inch]], # right confined cover retrofit
['patch', 'quad', unconfined_concrete_tag_retrofit, 2, 6, *[8*inch,-8*inch], *[9*inch,-9*inch], *[9*inch, 9*inch], *[8*inch,8*inch]], # right unconfined cover retrofit
['patch', 'quad', confined_concrete_tag_retrofit, 4, 6, *[-8*inch,-8*inch], *[-3.5*inch,-3.5*inch], *[-3.5*inch,3.5*inch], *[-8*inch, 8*inch]], # left confined cover retrofit
['patch', 'quad', unconfined_concrete_tag_retrofit, 2, 6, *[-9*inch,-9*inch], *[-8*inch,-8*inch], *[-8*inch,8*inch], *[-9*inch, 9*inch]], # left unconfined cover retrofit
['patch', 'quad', confined_concrete_tag_retrofit, 6, 4, *[-3.5*inch,3.5*inch], *[3.5*inch,3.5*inch], *[8*inch, 8*inch], *[-8*inch,8*inch]], # top confined cover retrofit
['patch', 'quad', unconfined_concrete_tag_retrofit, 6, 2, *[-8*inch,8*inch], *[8*inch,8*inch], *[9*inch, 9*inch], *[-9*inch,9*inch]], # top unconfined cover retrofit
['patch', 'quad', confined_concrete_tag_retrofit, 6, 4, *[-8*inch,-8*inch], *[8*inch,-8*inch], *[3.5*inch,-3.5*inch], *[-3.5*inch,-3.5*inch]], # bottom confined cover retrofit
['patch', 'quad', unconfined_concrete_tag_retrofit, 6, 2, *[-9*inch,-9*inch], *[9*inch,-9*inch], *[8*inch,-8*inch], *[-8*inch,-8*inch]], # bottom unconfined cover retrofit
['layer', 'straight', steel_tag, 2, area(16), *[3.5 * inch, 3.5 * inch], *[3.5 * inch, -3.5 * inch]], # right existin layer
['layer', 'straight', steel_tag, 2, area(16), *[-3.5 * inch, 3.5 * inch], *[-3.5 * inch, -3.5 * inch]], # left existing layer
['layer', 'straight', steel_tag, 2, area(12), *[0 * inch, 3.5 * inch], *[0 * inch, -3.5 * inch]], # middle existing layer
['layer', 'straight', steel_tag_retrofit, 3, area(20), *[8*inch, 8*inch], *[8*inch, -8*inch]], # right retrofit layer
['layer', 'straight', steel_tag_retrofit, 3, area(20), *[-8*inch, 8*inch], *[-8*inch, -8*inch]], # left retrofit layer
['layer', 'straight', steel_tag_retrofit, 2, area(20), *[0*inch, 8*inch], *[0*inch, -8*inch]] # middle retrofit 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', confined_concrete_tag_retrofit, 4, 6, *[3.5*inch,-3.5*inch], *[8*inch,-8*inch], *[8*inch, 8*inch], *[3.5*inch,3.5*inch]], # right confined cover retrofit
['patch', 'quad', unconfined_concrete_tag_retrofit, 2, 6, *[8*inch,-8*inch], *[9*inch,-9*inch], *[9*inch, 9*inch], *[8*inch,8*inch]], # right unconfined cover retrofit
['patch', 'quad', confined_concrete_tag_retrofit, 4, 6, *[-8*inch,-8*inch], *[-3.5*inch,-3.5*inch], *[-3.5*inch,3.5*inch], *[-8*inch, 8*inch]], # left confined cover retrofit
['patch', 'quad', unconfined_concrete_tag_retrofit, 2, 6, *[-9*inch,-9*inch], *[-8*inch,-8*inch], *[-8*inch,8*inch], *[-9*inch, 9*inch]], # left unconfined cover retrofit
['patch', 'quad', confined_concrete_tag_retrofit, 6, 4, *[-3.5*inch,3.5*inch], *[3.5*inch,3.5*inch], *[8*inch, 8*inch], *[-8*inch,8*inch]], # top confined cover retrofit
['patch', 'quad', unconfined_concrete_tag_retrofit, 6, 2, *[-8*inch,8*inch], *[8*inch,8*inch], *[9*inch, 9*inch], *[-9*inch,9*inch]], # top unconfined cover retrofit
['patch', 'quad', confined_concrete_tag_retrofit, 6, 4, *[-8*inch,-8*inch], *[8*inch,-8*inch], *[3.5*inch,-3.5*inch], *[-3.5*inch,-3.5*inch]], # bottom confined cover retrofit
['patch', 'quad', unconfined_concrete_tag_retrofit, 6, 2, *[-9*inch,-9*inch], *[9*inch,-9*inch], *[8*inch,-8*inch], *[-8*inch,-8*inch]], # bottom unconfined cover retrofit
['layer', 'straight', steel_tag, 2, area(12), *[3.5 * inch, 3.5 * inch], *[3.5 * inch, -3.5 * inch]], # right existing layer
['layer', 'straight', steel_tag, 2, area(12), *[-3.5 * inch, 3.5 * inch], *[-3.5 * inch, -3.5 * inch]], # left existing layer
['layer', 'straight', steel_tag_retrofit, 3, area(20), *[8*inch, 8*inch], *[8*inch, -8*inch]], # right retrofit layer
['layer', 'straight', steel_tag_retrofit, 3, area(20), *[-8*inch, 8*inch], *[-8*inch, -8*inch]], # left retrofit layer
['layer', 'straight', steel_tag_retrofit, 2, area(20), *[0*inch, 8*inch], *[0*inch, -8*inch]] # middle retrofit 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()