xsection.polygon#
- class xsection.polygon.PolygonSection(exterior, interior=None, mesh_size=None, material=None, z=0, name=None, mesher=None)#
Bases:
WarpingSection
A homogeneous polygon section.
- to_dict()#
Convert the PolygonSection to a dictionary representation.
- classmethod from_dict(data)#
Create a PolygonSection from a dictionary representation.
- save(file)#
Save the PolygonSection to a file in JSON format.
- exterior(plane=False)#
- interior(plane=False)#
- surface_point()#
- rotate(angle=None, principal=None)#
- translate(location)#
- property model#
- 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, material=None, z=0, name=None, mesher=None)#
Bases:
PolygonSection
- init()#
- property fibers#
- class xsection.polygon.quad(exterior, interior=None, mesh_size=None, material=None, z=0, name=None, mesher=None)#
Bases:
PolygonSection
A 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))#