3.4.7. nodeEigenvector Command
This command returns the eigenvector (mode shape) of a mode at a node, after an eigen command.
- nodeEigenvector $nodeTag $mode <$dof>
phi = ops.nodeEigenvector(nodeTag, mode, dof)
Argument |
Type |
Description |
|---|---|---|
$nodeTag |
integer |
tag of the node |
$mode |
integer |
number of the mode (1 through the number of modes computed by the eigen command) |
$dof |
integer |
degree-of-freedom at the node (1 through ndf) (optional: default = all) |
Note
If $dof is given, the command returns a single value. Otherwise it returns a list of the eigenvector components for every degree-of-freedom at the node.
Example:
The following example computes the first 3 modes, then sets the variable phi1 to the first mode shape at node 2 in the 1 degree-of-freedom, and phi2 to all components of the second mode shape at node 2.
set lambda [eigen 3]
set phi1 [nodeEigenvector 2 1 1]
set phi2 [nodeEigenvector 2 2]
lam = ops.eigen(3)
phi1 = ops.nodeEigenvector(2, 1, 1)
phi2 = ops.nodeEigenvector(2, 2)
Code Developed by: fmk