nodeVel

nodeVel#

Model.nodeVel(tag, dof=None)#

Return the velocity at a specified node.

Parameters:
tag: integer

The tag of the Node whose velocities are sought.

dof: integer

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

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 vel to the nodal velocity at node given by the variable nodeTag in the 1 degree-of-freedom direction.

  1. Tcl Code

    set vel [nodeVel $nodeTag 1]
    
  2. Python Code

    vel = model.nodeVel(nodeTag,1)
    

Code developed by: fmk