Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_example_code/quickstart_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from structuralcodes.geometry import SurfaceGeometry, add_reinforcement
from structuralcodes.materials.concrete import create_concrete
from structuralcodes.materials.reinforcement import create_reinforcement
from structuralcodes.sections import GenericSection
from structuralcodes.sections import BeamSection

# Set the active design code
set_design_code('ec2_2004')
Expand Down Expand Up @@ -62,7 +62,7 @@
)

# Create section
section = GenericSection(geometry)
section = BeamSection(geometry)

# Calculate the moment-curvature response
moment_curvature = section.section_calculator.calculate_moment_curvature()
6 changes: 3 additions & 3 deletions docs/_example_code/usage_bending_strength_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)
from structuralcodes.materials.concrete import ConcreteEC2_2004
from structuralcodes.materials.reinforcement import ReinforcementEC2_2004
from structuralcodes.sections import GenericSection
from structuralcodes.sections import BeamSection

# Define parameters
fck = 30
Expand Down Expand Up @@ -77,12 +77,12 @@
)

# Create a section
section_not_translated = GenericSection(geometry=t_geom)
section_not_translated = BeamSection(geometry=t_geom)

# Use the centroid of the section, given in the gross properties, to re-allign
# the geometry with the origin
t_geom = t_geom.translate(dy=-section_not_translated.gross_properties.cz)
section = GenericSection(geometry=t_geom)
section = BeamSection(geometry=t_geom)

# Calculate the bending strength
bending_strength = section.section_calculator.calculate_bending_strength()
Expand Down
6 changes: 2 additions & 4 deletions docs/_example_code/usage_compute_3d_domain_from_mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
)
from structuralcodes.materials.concrete import create_concrete
from structuralcodes.materials.reinforcement import create_reinforcement
from structuralcodes.sections import GenericSection
from structuralcodes.sections import BeamSection

# Set parameters
height = 625
Expand Down Expand Up @@ -50,9 +50,7 @@
n=n_bars,
)

section = GenericSection(
concrete_geometry, integrator='fiber', mesh_size=0.001
)
section = BeamSection(concrete_geometry, integrator='fiber', mesh_size=0.001)

# Perform the analyses and create the plot
fig = plt.figure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
)
from structuralcodes.materials.concrete import ConcreteEC2_2004
from structuralcodes.materials.reinforcement import ReinforcementEC2_2004
from structuralcodes.sections import GenericSection
from structuralcodes.sections import BeamSection

# Define parameters
fck = 30
Expand Down Expand Up @@ -70,12 +70,12 @@
)

# Create a section
section_not_translated = GenericSection(geometry=t_geom)
section_not_translated = BeamSection(geometry=t_geom)

# Use the centroid of the section, given in the gross properties, to re-allign
# the geometry with the origin
t_geom = t_geom.translate(dy=-section_not_translated.gross_properties.cz)
section = GenericSection(geometry=t_geom)
section = BeamSection(geometry=t_geom)

# Calculate the bending strength
bending_strength = section.section_calculator.calculate_bending_strength()
Expand Down
4 changes: 2 additions & 2 deletions docs/_example_code/usage_steel_profile_in_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from structuralcodes.geometry import SurfaceGeometry
from structuralcodes.geometry.profiles import IPE
from structuralcodes.materials.basic import ElasticPlasticMaterial
from structuralcodes.sections import GenericSection
from structuralcodes.sections import BeamSection

# Create a profile
ipe100 = IPE('IPE100')
Expand All @@ -13,7 +13,7 @@

# Create a geometry and a section
geom = SurfaceGeometry(poly=ipe100.polygon, material=steel)
section = GenericSection(geometry=geom)
section = BeamSection(geometry=geom)

# Use the section calculator to calculate the bending strength
bending_strength = section.section_calculator.calculate_bending_strength()
4 changes: 2 additions & 2 deletions docs/api/sections/section_calculator.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(api-section-calculator)=
# Section calculator

## Generic section calculator
## Beam section calculator

```{eval-rst}
.. autoclass:: structuralcodes.sections.GenericSectionCalculator
.. autoclass:: structuralcodes.sections.BeamSectionCalculator

.. autoproperty:: n_min
.. autoproperty:: n_max
Expand Down
4 changes: 2 additions & 2 deletions docs/api/sections/section_creation.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(api-section-creation)=
# Section creation

## The generic section
## The beam section

```{eval-rst}
.. autoclass:: structuralcodes.sections.GenericSection
.. autoclass:: structuralcodes.sections.BeamSection

.. automethod:: __init__

Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Add reinforcement to the geometry:
:lines: 41-62
:::

Create a {class}`GenericSection <structuralcodes.sections.GenericSection>` based on the geometry:
Create a {class}`BeamSection <structuralcodes.sections.BeamSection>` based on the geometry:

:::{literalinclude} ../_example_code/quickstart_example.py
:lines: 64-65
Expand All @@ -65,7 +65,7 @@ Create a {class}`GenericSection <structuralcodes.sections.GenericSection>` based
{ref}`Section reference <api-sections>`
:::

Call the {func}`.calculate_moment_curvature() <structuralcodes.sections.GenericSectionCalculator.calculate_moment_curvature>` method on the {class}`GenericSectionCalculator <structuralcodes.sections.GenericSectionCalculator>` to calculate the moment-curvature relation:
Call the {func}`.calculate_moment_curvature() <structuralcodes.sections.BeamSectionCalculator.calculate_moment_curvature>` method on the {class}`BeamSectionCalculator <structuralcodes.sections.BeamSectionCalculator>` to calculate the moment-curvature relation:

:::{literalinclude} ../_example_code/quickstart_example.py
:lines: 67-68
Expand Down
1 change: 0 additions & 1 deletion docs/theory/section_calculator.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(theory-section-calculator)=
# Section calculator


## General concept
Section calculators evaluate the structural response based on section properties and applied loads. They integrate results from the geometry and material models to provide insights into section performance by using a specific [*section integrator*](theory-section-integrators).

Expand Down
Loading
Loading