Skip to content

Commit 941ef52

Browse files
Fix docs
1 parent e8a8156 commit 941ef52

File tree

3 files changed

+91
-74
lines changed

3 files changed

+91
-74
lines changed

docs/user_guide/geometry.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ Concrete Sections
307307
~sectionproperties.pre.library.concrete_sections.concrete_column_section
308308
~sectionproperties.pre.library.concrete_sections.concrete_tee_section
309309
~sectionproperties.pre.library.concrete_sections.concrete_circular_section
310+
~sectionproperties.pre.library.concrete_sections.rectangular_wall
311+
~sectionproperties.pre.library.concrete_sections.cee_wall
310312

311313
.. _label-bridge-library:
312314

src/sectionproperties/pre/library/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
)
77
from sectionproperties.pre.library.concrete_sections import (
88
add_bar,
9+
cee_wall,
910
concrete_circular_section,
1011
concrete_column_section,
1112
concrete_rectangular_section,
1213
concrete_tee_section,
14+
rectangular_wall,
1315
)
1416
from sectionproperties.pre.library.nastran_sections import (
1517
nastran_bar,

src/sectionproperties/pre/library/concrete_sections.py

Lines changed: 87 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -725,45 +725,50 @@ def rectangular_wall(
725725
Reinforced concrete rectangular wall section geometry
726726
727727
Example:
728-
:include-source: True
729-
:caption: Reinforced concrete rectangular wall section geometry
730-
731-
from sectionproperties.pre import Material
732-
from sectionproperties.pre.library import rectangular_wall
733-
from sectionproperties.analysis import Section
734-
735-
concrete = Material(
736-
name="Concrete",
737-
elastic_modulus=30.1e3,
738-
poissons_ratio=0.2,
739-
yield_strength=32,
740-
density=2.4e-6,
741-
color="lightgrey",
742-
)
743-
steel = Material(
744-
name="Steel",
745-
elastic_modulus=200e3,
746-
poissons_ratio=0.3,
747-
yield_strength=500,
748-
density=7.85e-6,
749-
color="grey",
750-
)
728+
The following example creates a 1000 mm long x 180 mm thick rectangular concrete
729+
wall, reinforced with a single layer of N12-200 with 30 mm cover. A coarse
730+
finite element mesh is generated to show the different material regions:
751731
752-
geom = rectangular_wall(
753-
d=1000,
754-
b=180,
755-
dia_bar=12,
756-
area_bar=110,
757-
spacing=200,
758-
cover=30,
759-
double=False,
760-
n_circle=16
761-
conc_mat=concrete,
762-
steel_mat=steel,
763-
)
732+
.. plot::
733+
:include-source: True
734+
:caption: Reinforced concrete rectangular wall section geometry
735+
736+
from sectionproperties.pre import Material
737+
from sectionproperties.pre.library import rectangular_wall
738+
from sectionproperties.analysis import Section
739+
740+
concrete = Material(
741+
name="Concrete",
742+
elastic_modulus=30.1e3,
743+
poissons_ratio=0.2,
744+
yield_strength=32,
745+
density=2.4e-6,
746+
color="lightgrey",
747+
)
748+
steel = Material(
749+
name="Steel",
750+
elastic_modulus=200e3,
751+
poissons_ratio=0.3,
752+
yield_strength=500,
753+
density=7.85e-6,
754+
color="grey",
755+
)
756+
757+
geom = rectangular_wall(
758+
d=1000,
759+
b=180,
760+
dia_bar=12,
761+
area_bar=110,
762+
spacing=200,
763+
cover=30,
764+
double=False,
765+
n_circle=12,
766+
conc_mat=concrete,
767+
steel_mat=steel,
768+
)
764769
765-
geom.create_mesh(mesh_sizes=[0]) # a size of zero creates a coarse mesh
766-
Section(geometry=geom).plot_mesh()
770+
geom.create_mesh(mesh_sizes=[0]) # a size of zero creates a coarse mesh
771+
Section(geometry=geom).plot_mesh()
767772
"""
768773
# create rectangular concrete geometry
769774
geom = primitive_sections.rectangular_section(d=d, b=t, material=conc_mat)
@@ -851,45 +856,53 @@ def cee_wall(
851856
Reinforced concrete cee-shaped wall section geometry
852857
853858
Example:
854-
:include-source: True
855-
:caption: Reinforced concrete cee-shaped wall section geometry
856-
857-
from sectionproperties.pre import Material
858-
from sectionproperties.pre.library import cee_wall
859-
from sectionproperties.analysis import Section
860-
861-
concrete = Material(
862-
name="Concrete",
863-
elastic_modulus=30.1e3,
864-
poissons_ratio=0.2,
865-
yield_strength=32,
866-
density=2.4e-6,
867-
color="lightgrey",
868-
)
869-
steel = Material(
870-
name="Steel",
871-
elastic_modulus=200e3,
872-
poissons_ratio=0.3,
873-
yield_strength=500,
874-
density=7.85e-6,
875-
color="grey",
876-
)
859+
The following example creates a 2000 mm deep x 1500 mm deep cee-shaped concrete
860+
wall, with a 200 mm thick flange and 150 mm thick web. The wall is reinforced
861+
with a double layer of N16-150 with 30 mm cover. A coarse finite element mesh is
862+
generated to show the different material regions:
877863
878-
geom = cee_wall(
879-
d=2000,
880-
b=1500,
881-
dia_bar=16,
882-
area_bar=200,
883-
spacing=150,
884-
cover=30,
885-
double=True,
886-
n_circle=16
887-
conc_mat=concrete,
888-
steel_mat=steel,
889-
)
864+
.. plot::
865+
:include-source: True
866+
:caption: Reinforced concrete cee-shaped wall section geometry
867+
868+
from sectionproperties.pre import Material
869+
from sectionproperties.pre.library import cee_wall
870+
from sectionproperties.analysis import Section
890871
891-
geom.create_mesh(mesh_sizes=[0]) # a size of zero creates a coarse mesh
892-
Section(geometry=geom).plot_mesh()
872+
concrete = Material(
873+
name="Concrete",
874+
elastic_modulus=30.1e3,
875+
poissons_ratio=0.2,
876+
yield_strength=32,
877+
density=2.4e-6,
878+
color="lightgrey",
879+
)
880+
steel = Material(
881+
name="Steel",
882+
elastic_modulus=200e3,
883+
poissons_ratio=0.3,
884+
yield_strength=500,
885+
density=7.85e-6,
886+
color="grey",
887+
)
888+
889+
geom = cee_wall(
890+
d=2000,
891+
b=1500,
892+
t_f=200,
893+
t_w=150,
894+
dia_bar=16,
895+
area_bar=200,
896+
spacing=150,
897+
cover=30,
898+
double=True,
899+
n_circle=12,
900+
conc_mat=concrete,
901+
steel_mat=steel,
902+
)
903+
904+
geom.create_mesh(mesh_sizes=[0]) # a size of zero creates a coarse mesh
905+
Section(geometry=geom).plot_mesh()
893906
"""
894907
# create cee concrete geometry
895908
geom_outer = primitive_sections.rectangular_section(d=d, b=b, material=conc_mat)

0 commit comments

Comments
 (0)