nodeCoord

nodeCoord#

Model.nodeCoord(tag[, dim])#

Return the coordinate at a specified node.

Parameters:
tag: integer

The tag of the Node whose coordinates are sought.

dim: integer

Optional: specific coordinate dimension at the node (between 1 and Model.ndm).

Returns:

A list of the coordinate components at the node.

If optional dim 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.

  1. Tcl Code

    set crdNode [nodeCoord $nodeTag]
    
  2. Python Code

    crdNode = model.nodeCoord(nodeTag)
    

Code developed by: fmk