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.

Additional Constructors

classmethod from_file(filename)#

Load a Flow360BaseModel from a .json file.

Parameters:

filename (str)

Return type:

Flow360BaseModel

Methods

segment(index)[source]#

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

Parameters:

index (int)

Return type:

AxisymmetricSegment

help(methods=False)#

Print fields and methods of a Flow360BaseModel using rich.

Parameters:

methods (bool)

Return type:

None

to_file(filename, **kwargs)#

Export Flow360BaseModel instance to a .json file.

Parameters:
Return type:

None