File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
sectionproperties/pre/library Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,11 @@ def concrete_rectangular_section(
92
92
x_i_bot = cover + dia_bot / 2
93
93
spacing_top = (b - 2 * cover - dia_top ) / (n_top - 1 )
94
94
spacing_bot = (b - 2 * cover - dia_bot ) / (n_bot - 1 )
95
-
95
+
96
96
if area_top is None :
97
97
area_top = np .pi * dia_top ** 2 / 4
98
- if area_bottom is None :
99
- area_bottom = np .pi * dia_bot ** 2 / 4
98
+ if area_bot is None :
99
+ area_bot = np .pi * dia_bot ** 2 / 4
100
100
101
101
# add top bars
102
102
for i in range (n_top ):
@@ -347,23 +347,19 @@ def concrete_tee_section(
347
347
bar = primitive_sections .circular_section_by_area (
348
348
area = area_top , n = n_circle , material = steel_mat
349
349
)
350
-
351
350
bar = bar .shift_section (
352
351
x_offset = x_i_top + spacing_top * i , y_offset = d - cover - dia_top / 2
353
352
)
354
-
355
353
geom = (geom - bar ) + bar
356
354
357
355
# add bot bars
358
356
for i in range (n_bot ):
359
- bar = primitive_sections .circular_section (
360
- d = dia_bot , n = n_circle , material = steel_mat
357
+ bar = primitive_sections .circular_section_by_area (
358
+ area = area_bot , n = n_circle , material = steel_mat
361
359
)
362
-
363
360
bar = bar .shift_section (
364
361
x_offset = x_i_bot + spacing_bot * i , y_offset = cover + dia_bot / 2
365
362
)
366
-
367
363
geom = (geom - bar ) + bar
368
364
369
365
return geom
You can’t perform that action at this time.
0 commit comments