div.ProseMirror

Calculate steel cross-section plastic modulus

EN560.320 Structural Design 1

Department of Civil and Systems Engineering

Johns Hopkins University

September 23, 2020

Calculate a steel W-shape cross-section plastic modulus with Python.

import sys; sys.version.split()[0]
0.1s
Python
'3.7.7'

Use the very cool Python package sectionproperties. Install it here.

pip install sectionproperties
45.3s
Python
import sectionproperties.pre.sections as sections
from sectionproperties.analysis.cross_section import CrossSection
0.7s
Python

Units are in mm here.

geometry = sections.ISection(d=203, b=133, t_f=7.8, t_w=5.8, r=8.9, n_r=16)
0.0s
Python
geometry.plot_geometry()
0.5s
Python
mesh = geometry.create_mesh(mesh_sizes=[3.0])
0.0s
Python
section = CrossSection(geometry, mesh)  # create a CrossSection object
section.plot_mesh() 
0.6s
Python
# perform a geometric, warping and plastic analysis, displaying the time info
section.calculate_geometric_properties()
section.calculate_warping_properties()
section.calculate_plastic_properties()
13.2s
Python
print("Z = {:.0f} mm^3, plastic modulus about strong x-x axis".format(section.section_props.sxx))
0.4s
Python

Runtimes (1)