nodeDisp#
- nodeDisp $tag <$dof>
Argument |
Type |
Description |
|---|---|---|
$tag |
integer |
tag identifying node whose displacements are sought |
$dof |
integer |
optional: specific dof at the node (1 through ndf) |
After an analysis step, the displacement at each node is updated in the domain.
nodeDisp returns the current displacement (and rotation, when applicable) for the specified node and optional DOF.
Returned values are in the length and angle units of the user’s chosen system (see Units).
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.
Tcl Code
set disp1 [nodeDisp $tag 1]
Python Code
u1 = model.nodeDisp(tag,1)
Code developed by: fmk