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 Model.ndf displacement values at the node when dof=None. When dof is supplied, the result is a float.

The components are ordered as follows for various combinations of dimension (Model.ndm) and degrees of freedom (Model.ndf):

ndm

ndf

Order of components

1

1

u1

2

2

u1, u2

3

3

u1, u2, u3

2

3

u1, u2, r3

3

6

u1, u2, u3, r1, r2, r3

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