3.4.9. eleForce Command
This command returns the forces at the nodes of an element, in the global coordinate system, i.e. the forces the element applies to its nodes.
- eleForce $eleTag <$dof>
forces = ops.eleForce(eleTag, dof)
Argument |
Type |
Description |
|---|---|---|
$eleTag |
integer |
tag of the element |
$dof |
integer |
position of the value in the list of element forces, starting at 1 (optional: default = all) |
Note
Without $dof, the command returns a list of the forces at every degree-of-freedom of the element, node by node: the forces at the first node, then at the second node, and so on.
For forces in the local coordinate system, or other element responses, use eleResponse Command.
Example:
The following example sets the variable forces to the global end forces of element 1.
set forces [eleForce 1]
forces = ops.eleForce(1)
Code Developed by: fmk