civpy.structures.CrossSection¶
-
class
civpy.structures.
CrossSection
(name, area, width=0, height=0, unit_weight=None, inertia_x=None, inertia_y=None, inertia_z=None, inertia_j=None, inertia_t=None, gyradius_x=None, gyradius_y=None, gyradius_z=None, elast_sect_mod_x=None, elast_sect_mod_y=None, elast_sect_mod_z=None, plast_sect_mod_x=None, plast_sect_mod_y=None, is_round=False, **kwargs)[source]¶ A class representing a member cross section.
Parameters: - name : str
The name of the cross section.
- width, height : float
The width and height of the cross section in the x and y directions.
- area : float
The cross sectional area.
- unit_weight : float
The unit weight of the cross section.
- inertia_x, inertia_y : float
The moment of inertias about the x and y axes.
- inertia_z : float
The moment of inertia about the weak principal axis.
- inertia_j : float
The polar moment of inertia.
- inertia_t : float
The torsional moment of inertia.
- gyradius_x, gyradius_y : float
The radius of gyration about the x and y axes.
- gyradius_z : float
The radius of gyration about the weak principal axis.
- elast_sect_mod_x, elast_sect_mod_y : float
The elastic section modulus about the x and y axes.
- elast_sect_mod_z : float
The elastic section modulus about the weak principal axis.
- plast_sect_mod_x, plast_sect_mod_y : float
The plastic section modulus about the x and y axes.
- is_round : bool
If True, the member represents a round cross section, such as a round or pipe.
- kwargs
Additional keyword arguments for secondary section properties that will be stored in the object’s meta dictionary property.
Examples
The dictionaries returned by the various section summary functions included in this package may be passed to the initializer using the dictionary unwrapper as shown below. This can assist in the more rapid creation of cross section objects.
>>> from xsect import angle_summary >>> odict = angle_summary(8, 8, 1.125) >>> CrossSection('L8x8x1.125', **odict) CrossSection(name='L8x8x1.125', ...)
Methods
from_aisc
(name[, metric, version, include_meta])Initializes a cross section from the properties in the AISC database. from_points
(name, add[, subtract, is_round, …])Initializes a cross section from boundary points.