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