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.
- nodeAccel $tag <$dof>
Argument |
Type |
Description |
|---|---|---|
$tag |
integer |
tag identifying node whose accelerations are sought |
$dof |
integer |
optional: specific dof at the node (1 through ndf) |
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.
Tcl Code
set accel1 [nodeAccel $nodeTag]
Python Code
accel1 = model.nodeAccel(nodeTag)
Code developed by: fmk