3.4.6. nodeReaction Command
This command returns the reactions at a node. The reactions must first be calculated with the reactions Command command.
- nodeReaction $nodeTag <$dof>
R = ops.nodeReaction(nodeTag, dof)
Argument |
Type |
Description |
|---|---|---|
$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 reactions Command command. If the command has not been called, they are not the current reactions.
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.
reactions
set Rx [nodeReaction 1 1]
set R [nodeReaction 1]
ops.reactions()
Rx = ops.nodeReaction(1, 1)
R = ops.nodeReaction(1)
Code Developed by: fmk