:class:`RARotation` =================== .. py:class:: ansys.rocky.app.motion.ra_rotation.RARotation(id: str, model_id: str | None = None) Bases: :py:obj:`ansys.rocky.app.api_element_item.ApiElementItem` Rocky PrePost Scripting wrapper representing a Rotation motion. Retrieve this specific wrapper after setting the correct motion type on a :class:`RAMotion`. For example: .. code-block:: python motions = motion_frame.GetMotions() motion_1 = motions.New() motion_1.SetType('Rotation') rotation = motion_1.GetTypeObject() .. !! processed by numpydoc !! .. py:currentmodule:: RARotation Overview -------- .. tab-set:: .. tab-item:: Constructors .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~GetWrappedClass` - * - :py:attr:`~GetClassName` - .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~GetAngularAcceleration` - Get the value of "Angular Acceleration". * - :py:attr:`~SetAngularAcceleration` - Set the values of "Angular Acceleration". * - :py:attr:`~GetInitialAngularVelocity` - Get the value of "Initial Angular Velocity". * - :py:attr:`~SetInitialAngularVelocity` - Set the values of "Initial Angular Velocity". Import detail ------------- .. code-block:: python from ansys.rocky.app.motion.ra_rotation import RARotation Method detail ------------- .. py:method:: GetWrappedClass() :classmethod: .. py:method:: GetClassName() :classmethod: .. py:method:: GetAngularAcceleration(unit: str | None = None) -> list[float] Get the value of "Angular Acceleration". :param unit: The unit for the returned values. If no unit is provided, the returned values will be in "rad/s2". .. !! processed by numpydoc !! .. py:method:: SetAngularAcceleration(values: collections.abc.Sequence[str | float], unit: str | None = None) -> None Set the values of "Angular Acceleration". :param values: The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements. :param unit: The unit for `values`. If no unit is provided, `values` is assumed to be in "rad/s2". :raises RockyApiError: If `values` doesn't have exactly 3 elements. .. !! processed by numpydoc !! .. py:method:: GetInitialAngularVelocity(unit: str | None = None) -> list[float] Get the value of "Initial Angular Velocity". :param unit: The unit for the returned values. If no unit is provided, the returned values will be in "rad/s". .. !! processed by numpydoc !! .. py:method:: SetInitialAngularVelocity(values: collections.abc.Sequence[str | float], unit: str | None = None) -> None Set the values of "Initial Angular Velocity". :param values: The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements. :param unit: The unit for `values`. If no unit is provided, `values` is assumed to be in "rad/s". :raises RockyApiError: If `values` doesn't have exactly 3 elements. .. !! processed by numpydoc !!