nodeDisp

nodeDisp#

Model.nodeDisp(tag, dof=None)#

Return the displacement at a specified node.

Parameters:
  • tag (integer) – The tag of the Node whose displacements are sought.

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

Returns:

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

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

Example#

The following example is used to set the variable disp1 to the nodal displacement at node given by the variable tag in the 1 degree-of-freedom direction.

  1. Tcl Code

    set disp1 [nodeDisp $tag 1]
    
  2. Python Code

    u1 = model.nodeDisp(tag,1)
    

Code developed by: fmk