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())
{'A': 2.46, 'centroid': (0.0, 0.0), 'Iy': 1.3327411585365838, 'Iz': 2.9330999999999947, 'Iyz': -2.220446049250313e-15, 'Wyt': 1.2864599764567382, 'Wyb': 1.3824765970904471, 'Wzt': 1.9553999999999971, 'Wzb': 1.9553999999999956, 'J': 2.909197783820253, 'phi': -90.00000000000007, 'mass': 2.46, '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())
{'A': 2.697354445228201, 'centroid': (0.0, 0.0), 'Iy': 2.9804344425495355, 'Iz': 2.570564381767909, 'Iyz': -1.7763568394002505e-15, 'Wyt': 1.8043498535731681, 'Wyb': 2.210685286723164, 'Wzt': 1.7137095878452713, 'Wzb': 1.713709587845274, 'J': 4.134418940432977, 'phi': 0, 'mass': 2.697354445228201, 'rho_rebar': 0}