3.4.10. eleResponse Command

This command returns the current value of a response of an element. The responses that can be obtained are the same as those that can be recorded with the Element Recorder.

eleResponse $eleTag $arg1 $arg2 ...

Argument

Type

Description

$eleTag

integer

tag of the element

$arg1 $arg2 …

list

the response requested, passed to the element (the same arguments as for the Element Recorder)

Note

  1. The values returned are for the current state of the element, as a list.

  2. The arguments depend on the type of element, and, for elements with sections or materials, on the section and material. See the page of the element for the responses it provides.

Example:

The following example obtains the forces in truss element 1, and the stress in its material.

set eleForces [eleResponse 1 forces]
set eleMatStress [eleResponse 1 material stress]

Code Developed by: fmk