assign_rotate_motion#
- Maxwell2d.assign_rotate_motion(assignment: str, coordinate_system: str | None = 'Global', axis: str | int | Gravity | None = 'Z', positive_movement: bool | None = True, start_position: int | str | float | None = 0, has_rotation_limits: bool | None = True, negative_limit: int | str | float | None = 0, positive_limit: int | str | float | None = 360, non_cylindrical: bool | None = False, mechanical_transient: bool | None = False, angular_velocity: int | float | str | None = '0rpm', inertia: float | None = 1, damping: float | None = 0, load_torque: int | float | str | None = '0newton') BoundaryObject#
Assign a rotation motion to an object container.
For both rotational and translational problems, the band objects must always enclose all the moving objects.
- Parameters:
- assignmentstr,
Object container.
- coordinate_system
str,optional Coordinate system name. The default is
"Global".- axis
strorint,optional Coordinate system axis. The default is
"Z". It can be aansys.aedt.core.generic.constants.Axisenumerator value.- positive_movementbool,
optional Whether the movement is positive. The default is
True.- start_position
floatorstr,optional Starting position of the movement. The default is
0. If a float value is used, “deg” units are applied.- has_rotation_limitsbool,
optional Whether there is a limit in rotation. The default is
False.- negative_limit
floatorstr,optional Negative limit of the movement. The default is
0. If a float value is used, “deg” units are applied.- positive_limit
floatorstr,optional Positive limit of the movement. The default is
360. If a float value is used, “deg” units are applied.- non_cylindricalbool,
optional Whether to consider non-cylindrical rotation. The default is
False.- angular_velocity
floatorstr,optional Movement velocity. The default is
"0rpm". If a float value is used, “rpm” units are applied.- mechanical_transientbool,
optional Whether to consider mechanical movement. The default is
False.- inertia
float,optional Mechanical inertia. The default is
1.- damping
float,optional Damping factor. The default is
0.- load_torque
floatorstr,optional Load torque sign is determined based on the moving vector, using the right-hand rule. The default is
"0NewtonMeter". If a float value is used “NewtonMeter” units are applied.
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObjectBoundary object.
References
>>> oModule.AssignBand
Examples
Assign rotational motion to a band containing all moving objects.
>>> from ansys.aedt.core import Maxwell2d >>> m2d = Maxwell2d(solution_type="TransientXY") >>> m2d.modeler.create_circle(origin=[0, 0, 0], radius=10, name="Circle_inner") >>> m2d.modeler.create_circle(origin=[0, 0, 0], radius=30, name="Circle_outer") >>> bound = m2d.assign_rotate_motion(assignment="Circle_outer", positive_limit=180) >>> m2d.desktop_class.close_desktop()