RotationVolume#
- class RotationVolume[source]#
Bases:
_RotationVolumeBaseCreates a rotation volume mesh using cylindrical or axisymmetric body entities.
The mesh on
RotationVolumeis guaranteed to be concentric.The
RotationVolumeis designed to enclose other objects, but it can’t intersect with other objects.Users can create a donut-shaped
RotationVolumeand put their stationary centerbody in the middle.This type of volume zone can be used to generate volume zones compatible with
Rotationmodel.Supports
CylinderandAxisymmetricBodyentities for defining the rotation volume geometry.
Note
For spherical sliding interfaces, use
RotationSphere.Note
The deprecated
RotationCylinderclass is maintained for backward compatibility but only acceptsCylinderentities. New code should useRotationVolume.Example
Using a Cylinder entity:
>>> fl.RotationVolume( ... name="RotationCylinder", ... spacing_axial=0.5*fl.u.m, ... spacing_circumferential=0.3*fl.u.m, ... spacing_radial=1.5*fl.u.m, ... entities=cylinder ... )
Using an AxisymmetricBody entity:
>>> fl.RotationVolume( ... name="RotationConeFrustum", ... spacing_axial=0.5*fl.u.m, ... spacing_circumferential=0.3*fl.u.m, ... spacing_radial=1.5*fl.u.m, ... entities=axisymmetric_body ... )
With enclosed entities:
>>> fl.RotationVolume( ... name="RotationVolume", ... spacing_axial=0.5*fl.u.m, ... spacing_circumferential=0.3*fl.u.m, ... spacing_radial=1.5*fl.u.m, ... entities=outer_cylinder, ... enclosed_entities=[inner_cylinder, surface] ... )
Attributes
- enclosed_entities: EntityList[Cylinder, Surface, MirroredSurface, AxisymmetricBody, Box, Sphere], optional#
Entities enclosed by
RotationVolume. Can beSurfaceand/or otherSphere- Default:
None
- stationary_enclosed_entities: EntityList[Surface, MirroredSurface], optional#
Surface entities included in enclosed_entities which should remain stationary (excluded from rotation).
- Default:
None
- entities: EntityList[Cylinder, AxisymmetricBody]#
Additional Constructors
- classmethod from_file(filename)#
Load a Flow360BaseModel from a .json file.
- Parameters:
filename (str)
- Return type:
Flow360BaseModel
Methods