.. _reactions: reactions Command ***************** This command is used to calculate the reactions at the nodes. It must be called before the reactions are obtained with the :ref:`nodeReaction` command. .. tabs:: .. tab:: Tcl .. function:: reactions <-dynamic> <-rayleigh> .. tab:: Python .. code-block:: python ops.reactions('-dynamic', '-rayleigh') .. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40 -dynamic, |string|, "include the inertia forces in the reactions (optional)" -rayleigh, |string|, "calculate the Rayleigh damping forces at the nodes instead of the reactions (optional)" .. note:: #. Only one of the options can be given. #. In a transient analysis the reactions balance the internal, damping **and** inertia forces, so use **-dynamic** to obtain the total reactions. #. The reactions are calculated for the current state of the model, so call the command again after each step for which reactions are needed. .. admonition:: Example: The following example calculates the reactions and sets the variable **R1** to the reactions at node **1**. .. tabs:: .. tab:: Tcl .. code-block:: tcl reactions set R1 [nodeReaction 1] .. tab:: Python .. code-block:: python ops.reactions() R1 = ops.nodeReaction(1) Code Developed by: |fmk|