Overview
Sections define the geometric properties of structural members. Each section is associated with a material and provides area, moment of inertia, and shear coefficients needed for structural analysis. milcapy supports four types of sections:- Rectangular: Standard rectangular cross-sections
- Circular: Circular cross-sections
- Generic: Custom sections with user-defined properties
- Shell: Thin sections for membrane/plate elements
add_rectangular_section()
Adds a rectangular cross-section to the model.Parameters
Unique identifier for the section. Used when creating members.
Name of a previously defined material.
Width of the rectangular section (b).Must be greater than 0.
Height/depth of the rectangular section (h).Must be greater than 0.
Returns
Returns a RectangularSection object with computed properties:
- Area: A = b × h
- Moment of Inertia: I = (b × h³) / 12
- Shear Coefficient: k = 5/6 (Timoshenko)
Example
add_circular_section()
Adds a circular cross-section to the model.Parameters
Unique identifier for the section.
Name of a previously defined material.
Diameter of the circular section (d).Must be greater than 0.
Returns
Returns a CircularSection object with computed properties:
- Area: A = π × r²
- Moment of Inertia: I = (π × d⁴) / 64
- Shear Coefficient: k = 9/10 (Timoshenko)
Example
add_generic_section()
Adds a section with custom geometric properties.Parameters
Unique identifier for the section.
Name of a previously defined material.
Cross-sectional area (A).Must be greater than 0.
Moment of inertia about the strong axis (I).Must be greater than 0.
Shear coefficient factor.The effective shear area is: A_shear = A × k_factorTypical values:
- Rectangular: 5/6 ≈ 0.833
- Circular: 9/10 = 0.9
- I-beams: 0.3 - 0.6
Returns
Returns a GenericSection with the specified properties.
Example: Steel Wide Flange Sections
Example: Composite Section
add_shell_section()
Adds a shell section for membrane or plate finite elements.Parameters
Unique identifier for the section.
Name of a previously defined material.
Thickness of the shell element (t).Must be greater than 0.
Returns
Returns a ShellSection object used for 2D membrane elements (CST, Q4, Q6, Q8).
Example
Property Modifiers
set_property_modifiers()
Apply modification factors to section properties. Useful for cracked section analysis or construction staging.Parameters
Name of the section to modify.
Multiplier for axial area (kA).Effective area: A_eff = A × axial_area
Multiplier for shear area (kAs).Effective shear area: As_eff = As × shear_area
Multiplier for moment of inertia (kI).Effective inertia: I_eff = I × moment_inertiaCommon for cracked concrete sections (often 0.35 - 0.5).
Multiplier for self-weight (kg).Effective weight: W_eff = W × weight
Example: Cracked Section Analysis
Section Properties Summary
Each section type computes the following properties:Rectangular Section
Circular Section
Generic Section
Shell Section
Validation
All section creation methods perform validation:Unique Name: Section name must not already exist
Material Exists: Referenced material must be defined
Positive Dimensions: All geometric properties must be > 0
Error Examples
Complete Example
See Also
- Materials API - Define material properties
- SystemModel - Main model class
- Members - Create structural members using sections
