AxisymmetricBody#
- final class AxisymmetricBody[source]#
Bases:
_VolumeEntityBaseGeneric body of revolution, represented as (axial, radial) profile polyline with arbitrary center and axial direction.
First and last profile samples must connect to axis (radius = 0), and the segment touching each endpoint must be perpendicular to the axis so the body closes with a flat cap (the endpoint shares its neighbor’s axial coordinate). The two caps must sit at distinct axial coordinates so the body has non-zero extent; the interior polyline between them is arbitrary. Cone-like apexes tapering to a point on the axis are not supported.
Example
>>> AxisymmetricBody( ... name="cone_frustum_body", ... center=(0, 0, 0) * unyt.inch, ... axis=(0, 0, 1), ... profile_curve=[ ... (-1, 0) * unyt.inch, ... (-1, 1) * unyt.inch, ... (1, 2) * unyt.inch, ... (1, 0) * unyt.inch, ... ], ... )
Attributes
- axis: Axis#
The axis of the body of revolution.
- center: Length.Vector3#
The center point of the body of revolution.
Properties
Methods