Skip to content

Commit a3bc438

Browse files
committed
Complete doc strings for concrete_column_section
1 parent 7cd1fea commit a3bc438

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

sectionproperties/pre/library/concrete_sections.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def concrete_column_section(
145145
) -> geometry.CompoundGeometry:
146146
"""Constructs a concrete rectangular section of width *b* and depth *d*, with
147147
steel bar reinforcing organized as an *n_bars_b* by *n_bars_d* array, discretised
148-
with *n_circle* points with equal side and top/bottom
149-
*cover* to the steel.
148+
with *n_circle* points with equal sides and top/bottom *cover* to the steel which
149+
is taken as the clear cover (edge of bar to edge of concrete).
150150
151151
:param float b: Concrete section width, parallel to the x-axis
152152
:param float d: Concrete section depth, parallel to the y-axis
@@ -170,10 +170,11 @@ def concrete_column_section(
170170
:raises ValueErorr: If the number of bars in either 'n_bars_b' or 'n_bars_d' is not greater
171171
than or equal to 2.
172172
173-
The following example creates a 600D x 300W concrete beam with 3N20 bottom steel
174-
reinforcing bars and 30 mm cover::
173+
The following example creates a 600D x 300W concrete column with 25 mm diameter
174+
reinforcing bars each with 500 mm**2 area and 35 mm cover in a 3x6 array without
175+
the interior bars being filled::
175176
176-
from sectionproperties.pre.library.concrete_sections import concrete_rectangular_section
177+
from sectionproperties.pre.library.concrete_sections import concrete_column_section
177178
from sectionproperties.pre.pre import Material
178179
179180
concrete = Material(
@@ -186,8 +187,8 @@ def concrete_column_section(
186187
)
187188
188189
geometry = concrete_column_section(
189-
b=300, d=600, bar_diam=dia_top=20, n_top=0, dia_bot=20, n_bot=3, n_circle=24, cover=30,
190-
conc_mat=concrete, steel_mat=steel
190+
b=300, d=600, dia_bar=25, bar_area=500, cover=35, n_bars_b=3, n_bars_d=6,
191+
conc_mat=concrete, steel_mat=steel, filled=False, n_circle=4
191192
)
192193
geometry.create_mesh(mesh_sizes=[500])
193194
@@ -226,7 +227,11 @@ def concrete_column_section(
226227
all_bar_coords = list(set(b_edge_bars_top + b_edge_bars_bottom + d_edge_bars_right + d_edge_bars_left))
227228
if filled:
228229
xy = np.meshgrid(b_edge_bars_x, d_edge_bars_y)
229-
all_bar_coords = np.append(xy[0].reshape(-1,1),xy[1].reshape(-1,1),axis=1)
230+
all_bar_coords = np.append(
231+
xy[0].reshape(-1,1),
232+
xy[1].reshape(-1,1),
233+
axis=1
234+
)
230235

231236
for bar_coord in all_bar_coords:
232237
concrete_geometry = add_bar(
@@ -237,6 +242,7 @@ def concrete_column_section(
237242
y=bar_coord[1],
238243
n=n_circle
239244
)
245+
return concrete_geometry
240246

241247

242248
def concrete_tee_section(

0 commit comments

Comments
 (0)