3.4.4. nodeAccel CommandΒΆ

This command returns the current acceleration at a specified node.

nodeAccel $nodeTag <$dof>

Argument

Type

Description

$nodeTag

integer

tag identifying node whose accelerations are sought

$dof

integer

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

Note

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

Example:

The following example is used to set the array/list accel1 equal to the nodal accelerations at the node given by the variable nodeTag.

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

set accel1 [nodeAccel $nodeTag]
  1. Python Code

accel1 = nodeAccel(nodeTag)

Code developed by: fmk