AxisymmetricBody#

final class AxisymmetricBody[source]#

Bases: _VolumeEntityBase

Generic 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).

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: Any#

The center point of the body of revolution.

Properties

id: str#

Returns private_attribute_id of the entity.

Methods

segment(index)[source]#

Return an AxisymmetricSegment reference for the given profile curve segment index.

Parameters:

index (int)

Return type:

AxisymmetricSegment