xsection.polygon#
- class xsection.polygon.PolygonSection(exterior, interior=None, mesh_size=None, poisson: float = None, group: int = None, material: Material = None, z=0, name=None, units=None, mesh_type: str = 'T3', mesher=None)#
Bases:
WarpingSectionA homogeneous polygon section.
- property shapes#
- property groups#
- property materials#
- property model#
- classmethod from_dict(data)#
Create a PolygonSection from a dictionary representation.
- to_dict()#
Convert the PolygonSection to a dictionary representation.
- save(file)#
Save the PolygonSection to a file in JSON format.
- load()#
Load a PolygonSection from a file in JSON format.
- exterior(plane=False)#
- interior(plane=False)#
- surface_point()#
- rotate(angle=None, principal=None)#
- translate(location)#
- summary(format=None, shear=True, **kwds)#
- create_model(materials)#
- property centroid#
- property area#
- property depth#
- property width#
- moi(reference, area=None)#
- moic()#
- ixc()#
- iyc()#
- cnn()#
- cnm()#
- xsection.polygon.rotate(ring, angle)#
Rotate a polygon ring by a given angle in radians.
- xsection.polygon.centroid(exterior, interior=None)#
- xsection.polygon.principal_angle(exterior, interior=None) float#
- class xsection.polygon.rect(exterior, interior=None, mesh_size=None, poisson: float = None, group: int = None, material: Material = None, z=0, name=None, units=None, mesh_type: str = 'T3', mesher=None)#
Bases:
PolygonSection- init()#
- property fibers#
- class xsection.polygon.quad(exterior, interior=None, mesh_size=None, poisson: float = None, group: int = None, material: Material = None, z=0, name=None, units=None, mesh_type: str = 'T3', mesher=None)#
Bases:
PolygonSectionA quadrilateral shaped patch. The geometry of the patch is defined by four vertices: I J K L. The coordinates of each of the four vertices is specified in counter clockwise sequence
- init()#
- property fibers#
- xsection.polygon.rhom(center, height, width, slope=None, divs=(0, 0))#