.. _nodeEigenvector: nodeEigenvector Command *********************** This command returns the eigenvector (mode shape) of a mode at a node, after an **eigen** command. .. tabs:: .. tab:: Tcl .. function:: nodeEigenvector $nodeTag $mode <$dof> .. tab:: Python .. code-block:: python phi = ops.nodeEigenvector(nodeTag, mode, dof) .. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40 $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. .. admonition:: 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**. .. tabs:: .. tab:: Tcl .. code-block:: tcl set lambda [eigen 3] set phi1 [nodeEigenvector 2 1 1] set phi2 [nodeEigenvector 2 2] .. tab:: Python .. code-block:: python lam = ops.eigen(3) phi1 = ops.nodeEigenvector(2, 1, 1) phi2 = ops.nodeEigenvector(2, 2) Code Developed by: |fmk|