Section Library#

class opstool.preprocessing.section_library[source]#
I_section(b1, b2, tw, tf1, tf2, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

I-shaped section.

<img src=”https://s2.loli.net/2023/08/02/iYVKsW6cuGFfNxB.png” ></img>

Parameters#

hfloat

Section total height.

b1float

Section total width of top flange.

b2float

Section total width of bottom flange.

twfloat

Section web thickness.

tf1float

Section top flange thickness.

tf2float

Section fbottom lange thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

L_flip_section(b, tw, tf, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Fipped L-shaped section.

Parameters#

hfloat

Section total height.

bfloat

Section total width.

twfloat

Section web thickness.

tffloat

Section flange thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

L_section(b, tw, tf, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

L-shaped section.

<img src=”https://s2.loli.net/2023/08/02/3dnTRLefGOJVjHQ.png” ></img>

Parameters#

hfloat

Section total height.

bfloat

Section total width.

twfloat

Section web thickness.

tffloat

Section flange thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

T_flip_section(b, tw, tf, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Fipped T-shaped section.

Parameters#

hfloat

Section total height.

bfloat

Section total width.

twfloat

Section web thickness.

tffloat

Section flange thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

T_section(b, tw, tf, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

T-shaped section.

Parameters#

hfloat

Section total height.

bfloat

Section total width.

twfloat

Section web thickness.

tffloat

Section flange thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

box_section(b1, b2, tw, tf1, tf2, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Quadrilateral box section.

Parameters#

hfloat

Section total height.

b1float

Section total width of top flange.

b2float

Section total width of bottom flange.

twfloat

Section web thickness.

tf1float

Section top flange thickness.

tf2float

Section bottom flange thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

channel_section(b, tw, tf1, tf2, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Channel-shaped section.

<img src=”https://s2.loli.net/2023/08/02/fRtxJPDWYo3uHOa.png” ></img>

Parameters#

hfloat

Section total height.

bfloat

Section total width.

twfloat

Section web thickness.

tf1float

Section top flange thickness.

tf2float

Section bottom flange thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

circular_end_hollow_section(b, tw, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Hollow circular-end section.

Parameters#

hfloat

Section total height.

bfloat

Section width of rectangular part.

twfloat

Section wall thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

circular_end_section(b, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Solid circular-end section.

<img src=”https://s2.loli.net/2023/08/02/9uIQFOJnHqYTZi5.png” ></img>

Parameters#

hfloat

Section total height.

bfloat

Section width of rectangular part.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

circular_section(mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Solid circular section.

Parameters#

dfloat

Section diameter.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

octagonal_box_section(b, aa, bb, tw, tf1, tf2, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Box section with octagonal hole.

<a href=”https://sm.ms/image/ec4JOQozC6USZwW” target=”_blank”><img src=”https://s2.loli.net/2023/08/02/ec4JOQozC6USZwW.png” ></a>

Parameters#

hfloat

Section total height.

bfloat

Section total width.

aafloat

Chamfer width of octagonal hole.

bbfloat

Chamfer height of octagonal hole.

twfloat

Section web thickness.

tf1float

Section top flange thickness.

tf2float

Section bottom flange thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

octagonal_hollow_section(b, aa, bb, tw, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Hollow octagonal section.

Parameters#

hfloat

Section total height.

bfloat

Section total width.

aafloat

Section chamfer width.

bbfloat

Section chamfer height.

twfloat

Section wall thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

octagonal_section(b, aa, bb, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Solid octagonal section.

Parameters#

hfloat

Section total height.

bfloat

Section total width.

aafloat

Section chamfer width.

bbfloat

Section chamfer height.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

pipe_section(tw, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Pipe section.

Parameters#

dfloat

Section diameter.

twfloat

Section pipe thickness.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

rect_section(b, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Solid rectangular section.

Parameters#

hfloat

Section total height.

bfloat

Section total width.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

trapezoid_section(b1, b2, mesh_size=None, ops_matTag=1, color='#04d8b2')[source]#

Solid trapezoid section.

Parameters#

hfloat

Section total height.

b1float

Section total width of top flange.

b2float

Section total width of bottom flange.

mesh_sizefloat, optional

The mesh size, by default None

ops_matTagint, optional

Already defined OpenSees material tags, by default 1

colorstr, optional

Color for visualization, by default “#04d8b2”

Returns#

The instance of the class SecMesh.

Example#

import opstool as opst

sec_lib = opst.section_library
sec = sec_lib.octagonal_box_section(
    h=2, b=3, aa=0.3, bb=0.3, tw=0.3, tf1=0.2, tf2=0.25
)
sec.view(engine="mpl")
print(sec.get_frame_props())
../../_images/sec.lib_0_51.png
{'A': 2.459999999999999, 'centroid': (0.0, 0.0), 'Iy': 1.332741158536583, 'Iz': 2.933099999999991, 'Iyz': -3.1086244689504383e-15, 'Wyt': 1.2864599764567373, 'Wyb': 1.382476597090446, 'Wzt': 1.955399999999995, 'Wzb': 1.955399999999993, 'J': 2.9092077405132715, 'phi': -90.00000000000011, 'rho_rebar': 0}
import opstool as opst

sec_lib = opst.section_library
sec = sec_lib.box_section(
    h=3, b1=2, b2=3, tw=0.3, tf1=0.2, tf2=0.25
)
sec.view(engine="mpl")
print(sec.get_frame_props())
../../_images/sec.lib_1_60.png
{'A': 2.697354445228199, 'centroid': (0.0, 0.0), 'Iy': 2.9804344425495266, 'Iz': 2.570564381767901, 'Iyz': -9.769962616701378e-15, 'Wyt': 1.8043498535731632, 'Wyb': 2.2106852867231566, 'Wzt': 1.713709587845267, 'Wzb': 1.7137095878452675, 'J': 4.134418940432958, 'phi': 0.0, 'rho_rebar': 0}