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.ndfdisplacement values at the node whendof=None. Whendofis supplied, the result is a float.
- 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