3.4.7. nodeCoord Command
This command returns the current coordinate at a specified node.
- nodeCoord $nodeTag <$dim>
Argument |
Type |
Description |
---|---|---|
$nodeTag |
integer |
tag identifying node whose velocities are sought |
$dim |
integer |
optional: specific crd dimension at the node (1 through ndm) |
Note
If optional $ddim is not provided, an array containing all coordinate components is returned.
Example:
The following example is used to set the variable crdNode to the nodal coordinates for the node given by the variable nodeTag.
Tcl Code (note use of set and [ ])
set crdNode [nodeCoord $nodeTag]
Python Code
crdNode = nodeCoord(nodeTag)
Code developed by: fmk