set_initial_angle#
- Maxwell3d.set_initial_angle(motion_setup, angle)#
Set the initial angle for motion setup.
- Parameters:
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oDesign.ChangeProperty
Examples
Set the initial angle in a motion setup.
>>> from ansys.aedt.core import Maxwell2d >>> m2d = Maxwell2d(solution_type="TransientXY") >>> m2d.modeler.create_circle(origin=[0, 0, 0], radius=20, name="Inner") >>> m2d.modeler.create_circle(origin=[0, 0, 0], radius=21, name="Outer") >>> bound = m2d.assign_rotate_motion(assignment="Outer", negative_limit=0, positive_limit=300) >>> m2d.set_initial_angle(motion_setup=bound.name, angle=5) >>> m2d.release_desktop(True, True)