3.4.3. nodeVel CommandΒΆ

This command returns the current velocity at a specified node.

nodeVel $nodeTag <$dof>

Argument

Type

Description

$nodeTag

integer

tag identifying node whose velocities are sought

$dof

integer

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

Note

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

Example:

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

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

set vel1 [nodeVel $nodeTag 1]
  1. Python Code

vel1 = nodeVel(nodeTag,1)

Code developed by: fmk