:class:`Gravity` ================ .. py:class:: ansys.dyna.core.pre.dynabase.Gravity(dir=GravityOption.DIR_Z, load=Curve(x=[0, 0], y=[0, 0])) Bases: :py:obj:`BaseObj` Defines body force loads using global axes directions. Body force loads are due to a prescribed base acceleration or angular velocity. .. !! processed by numpydoc !! .. py:currentmodule:: Gravity Overview -------- .. tab-set:: .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~create` - Define a body force. .. tab-item:: Attributes .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~stub` - * - :py:attr:`~dir` - * - :py:attr:`~load` - * - :py:attr:`~type` - Import detail ------------- .. code-block:: python from ansys.dyna.core.pre.dynabase import Gravity Attribute detail ---------------- .. py:attribute:: stub .. py:attribute:: dir :value: 'Z' .. py:attribute:: load .. py:attribute:: type :value: 'gravity' Method detail ------------- .. py:method:: create() Define a body force. .. !! processed by numpydoc !!