flow360.AxisymmetricBody#

class AxisymmetricBody[source]#

Bases: _VolumeEntityBase

AxisymmetricBody class represents a generic body of revolution in three-dimensional space, represented as a list[(Axial Position, Radial Extent)] profile polyline with arbitrary center and axial direction. Expect first and last profile samples to connect to axis, i.e., have radius = 0.

Example

>>> fl.AxisymmetricBody(
...     name="cone_frustum_body",
...     center=(0, 0, 0) * fl.u.inch,
...     axis=(0, 0, 1),
...     profile_curve = [(-1, 0) * fl.u.inch, (-1, 1) * fl.u.inch, (1, 2) * fl.u.inch, (1, 0) * fl.u.inch]
... )

axis: Axis [Required]#

The axis of the body of revolution.

center: Annotated[_VectorType, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] [Required]#

The center point of the body of revolution.

Constraints:
  • func = <function _dimensioned_type_serializer at 0x71c1e223d000>

  • return_type = PydanticUndefined

  • when_used = always

profile_curve: List[Annotated[_VectorType, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)]] [Required]#

The (Axial, Radial) profile of the body of revolution.