Section Properties
Standard Section
Standard Section
A nested class within Section used to create user-defined standard sections.
Some common user defined section's Shape notation is givn below:
NAME | SHAPE | DIMENSION VALUE |
---|---|---|
Angle | "L" | [H, B, tw, tf] |
Channel | "C" | [H, B1, tw, tf1, B2, tf2, r1, r2] |
H/I-Section | "H" | [H, B1, tw, tf1, B2, tf2, r1, r2] |
T-Section | "T" | [H, B, tw, tf] |
Box | "B" | [H, B, tw, tf1, C, tf2] |
Pipe | "P" | [D, tw] |
Double Angle | "2L" | [H, B, tw, tf, C] |
Double Channel | "2C" | [H, B, tw, tf, C] |
Solid Rectangle | "SB" | [H, B] |
Solid Round | "SR" | [D] |
Details of all available sections can be found here.
Constructor
Section.DBUSER(Name='', Shape='', parameters:list=[], Offset:Offset=Offset.CC(), useShear=True, use7Dof=False, id:int=0)
Creates user-defined sections with specified shape and parameters.
Parameters
Name
: Section nameShape
: Section shape code ('SB', 'SR', etc.)parameters
: List of section parametersOffset (default=Offset.CC())
: Section offset parametersuseShear (default=True)
: Enable shear deformationuse7Dof (default=False)
: Enable warping (7DOF)id (default=0)
: Section ID (auto-assigned if 0)
Examples
# Rectangular Section Example
for i in range(2):
Node(i*10, 0, 0)
Node.create()
Element.Beam(1, 2)
Element.create()
# Create rectangular section
Section.DBUSER("Rect_1x0.5", "SB", [1.0, 0.5])
Section.create()
# Circular Section with Custom Offset Example
for i in range(2):
Node(i*10, 0, 0)
Node.create()
Element.Beam(1, 2)
Element.create()
# Create circular section with center-top offset
Section.DBUSER("Circle_D1", "SR", [1.0], Offset.CT(), True, False, 5)
Section.create()