3.4.2. nodeDisp Command

This command returns the current displacement at a specified node.

nodeDisp $nodeTag <$dof>

Argument

Type

Description

$nodeTag

integer

tag identifying node whose displacements are sought

$dof

integer

optional: specific dof at the node (1 through ndf)

Note

If optional $dof is not provided, an array containing all displacement components for every dof at the node is returned.

Example:

The following example is used to set the variable disp1 to the nodal displacement at node given by the variable nodeTag in the 1 degree-of-freedom direction.

  1. Tcl Code (note use of set and [ ])

set disp1 [nodeDisp $nodeTag 1]
  1. Python Code

disp1 = nodeDisp(nodeTag,1)

Code developed by: fmk