add_bar#
- sectionproperties.pre.library.concrete_sections.add_bar(geometry: Geometry | CompoundGeometry, area: float, material: Material, x: float, y: float, n: int) CompoundGeometry [source]#
Adds a reinforcing bar to a
sectionproperties
geometry.First removes the geometry through a subtraction operation, then adds the geometry on top of the newly created hole. This method avoids the doubling up of geometry.
- Parameters:
geometry (Geometry | CompoundGeometry) – Reinforced concrete geometry to which the new bar will be added
area (float) – Bar cross-sectional area
material (Material) – Material object for the bar
x (float) – x-position of the bar
y (float) – y-position of the bar
n (int) – Number of points to discretise the bar circle
- Returns:
Geometry object with added bar
- Return type: