assign_rotate_motion#
- Maxwell2d.assign_rotate_motion(assignment, coordinate_system='Global', axis='Z', positive_movement=True, start_position=0, has_rotation_limits=True, negative_limit=0, positive_limit=360, non_cylindrical=False, mechanical_transient=False, angular_velocity='0rpm', inertia='1', damping=0, load_torque='0newton')#
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()