3.4.4. nodeVel Command

This command returns the current velocity of a node.

nodeVel $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 velocity for every degree-of-freedom at the node.

Example:

The following example sets the variable vel to the velocity of the node with tag nodeTag in the 1 degree-of-freedom, and velAll to all its velocities.

set vel [nodeVel $nodeTag 1]
set velAll [nodeVel $nodeTag]

Code Developed by: fmk