Skip to content

Commit b6e1053

Browse files
committed
Fix typos in function implementations; all tests pass
1 parent dfd3047 commit b6e1053

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

sectionproperties/pre/library/concrete_sections.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ def concrete_rectangular_section(
9292
x_i_bot = cover + dia_bot / 2
9393
spacing_top = (b - 2 * cover - dia_top) / (n_top - 1)
9494
spacing_bot = (b - 2 * cover - dia_bot) / (n_bot - 1)
95-
95+
9696
if area_top is None:
9797
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
100100

101101
# add top bars
102102
for i in range(n_top):
@@ -347,23 +347,19 @@ def concrete_tee_section(
347347
bar = primitive_sections.circular_section_by_area(
348348
area=area_top, n=n_circle, material=steel_mat
349349
)
350-
351350
bar = bar.shift_section(
352351
x_offset=x_i_top + spacing_top * i, y_offset=d - cover - dia_top / 2
353352
)
354-
355353
geom = (geom - bar) + bar
356354

357355
# add bot bars
358356
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
361359
)
362-
363360
bar = bar.shift_section(
364361
x_offset=x_i_bot + spacing_bot * i, y_offset=cover + dia_bot / 2
365362
)
366-
367363
geom = (geom - bar) + bar
368364

369365
return geom

0 commit comments

Comments
 (0)