.. _nodeReaction: nodeReaction Command ******************** This command returns the reactions at a node. The reactions must first be calculated with the :ref:`reactions` command. .. tabs:: .. tab:: Tcl .. function:: nodeReaction $nodeTag <$dof> .. tab:: Python .. code-block:: python R = ops.nodeReaction(nodeTag, dof) .. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40 $nodeTag, |integer|, tag of the node $dof, |integer|, "degree-of-freedom at the node (1 through **ndf**) (optional: default = all)" .. note:: #. If **$dof** is given, the command returns a single value. Otherwise it returns a list of the reactions for every degree-of-freedom at the node. #. The values are those calculated by the last :ref:`reactions` command. If the command has not been called, they are not the current reactions. .. admonition:: Example: The following example calculates the reactions, sets the variable **Rx** to the reaction at node **1** in the **1** degree-of-freedom, and **R** to all the reactions at the node. .. tabs:: .. tab:: Tcl .. code-block:: tcl reactions set Rx [nodeReaction 1 1] set R [nodeReaction 1] .. tab:: Python .. code-block:: python ops.reactions() Rx = ops.nodeReaction(1, 1) R = ops.nodeReaction(1) Code Developed by: |fmk|