nodeAccel

nodeAccel#

This command returns the current acceleration at a specified node.

Model.nodeAccel(tag, dof=None)#

Return the acceleration at a specified node.

Parameters:
tag: integer

The tag of the Node whose accelerations are sought.

dof: integer

Optional: specific degree of freedom at the node (between 1 and Model.ndf, inclusive).

Returns:

A list of the acceleration components at the node when dof=None, otherwise a float.

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

    set accel1 [nodeAccel $nodeTag]
    
  2. Python Code

    accel1 = model.nodeAccel(nodeTag)
    

Code developed by: fmk