3.3.1.4. Element Recorder
This command is used to construct an Element recorder, which records the response of a number of elements at every converged step of the analysis. The responses that can be recorded depend on the element, and, for elements with sections or materials, on the section and material, e.g. element forces, section forces and deformations, or the stress and strain in a fiber.
- recorder Element <-file $fileName> <-xml $fileName> <-binary $fileName> <-fileCSV $fileName> <-tcp $inetAddress $port> <-precision $nSD> <-time> <-dT $deltaT> <-closeOnWrite> <-ele $ele1 $ele2 ...> <-eleRange $startEle $endEle> <-region $regionTag> $arg1 $arg2 ...
ops.recorder('Element', '-file', fileName, '-xml', fileName, '-binary', fileName, '-csv', fileName, '-tcp', inetAddress, port, '-precision', nSD, '-time', '-dT', deltaT, '-closeOnWrite', '-ele', *eleTags, '-eleRange', startEle, endEle, '-region', regionTag, *args)
Argument |
Type |
Description |
|---|---|---|
$fileName |
string |
name of the file to which output is sent: a text file (-file), XML file (-xml), binary file (-binary) or comma-separated file (-fileCSV in Tcl, -csv in Python) |
$inetAddress $port |
string integer |
IP address and port of a remote process to which output is sent (-tcp) |
$nSD |
integer |
number of significant digits written (optional: default = 6) |
-time |
string |
write the domain time in the first column of each line (optional) |
$deltaT |
float |
record only when at least this much time has passed since the last record (optional: default = record every step) |
-closeOnWrite |
string |
open and close the file at every write (optional) |
$ele1 $ele2 … |
list integer |
tags of the elements whose response is recorded |
$startEle $endEle |
integer |
record all elements with tags from startEle to endEle |
$regionTag |
integer |
record all elements in a previously defined region Command |
$arg1 $arg2 … |
list |
the response to record, passed to the element (see below) |
Note
Use only one of -file, -xml, -binary, -fileCSV (-csv) or -tcp to say where the output goes, and only one of -ele, -eleRange or -region to say which elements are recorded. Without an output option the results are written to the screen.
The response arguments are passed to the element, which decides what they mean. See the page of the element for the responses it provides. Common responses of beam-column elements are
globalForce,localForce,basicDeformation,plasticDeformation,section $secNum forceandsection $secNum deformation.Each line of the output contains, for each element in turn, the values of the response. With -time the line starts with the time. If an element does not provide the response requested, nothing is recorded for that element.
Example:
The following example records, in the file ele1.out, the forces at the ends of element 1 in the global coordinate system, and in the file ele1sec1.out the forces in its first section.
recorder Element -file ele1.out -time -ele 1 globalForce
recorder Element -file ele1sec1.out -time -ele 1 section 1 force
ops.recorder('Element', '-file', 'ele1.out', '-time', '-ele', 1, 'globalForce')
ops.recorder('Element', '-file', 'ele1sec1.out', '-time', '-ele', 1, 'section', 1, 'force')
3.3.1.4.1. Recording fiber response
For elements that use fiber sections (e.g. zeroLengthSection, forceBeamColumn, dispBeamColumn, mixedBeamColumn), the response of a single fiber can be recorded. What can be recorded in each fiber is defined by the fiber’s uniaxial material. A common option is stressStrain, which gives the fiber stress-strain history. Other options (e.g. stress, strain, tangent, or damage for the Fatigue material) are available when supported by the material.
Which fiber is recorded is given in one of three ways:
Fiber index: the index of the fiber in the section’s internal list of fibers (0 to Nf - 1). Use
fiberfollowed by the index and the response type.Fiber closest to a point: give the y and z coordinates of a point in the section; the fiber closest to the point is used. Use
fiberfollowed by y, z and the response type. In 2d, bending is about the z axis so only y matters, but a z value (e.g. 0) must still be given.Fiber of a given material closest to a point: as in (2), but only fibers with the given material tag are considered. Use
fiberfollowed by y, z, matTag and the response type. This is useful for sections with overlapping fibers, e.g. steel and concrete, to record a particular material at a location.
What comes before fiber depends on the element:
zeroLengthSection:
sectionthenfiber(there is only one section).Beam-column elements (displacement-based, force-based, mixed):
sectionsecNum thenfiber, where secNum is the number of the integration point (1 to Np, from node I to node J). Alternatively,sectionXx thenfiberselects the section closest to the location x along the element (see Recording section response by location (sectionX)).
Example:
The following example records the stress-strain history of the fiber closest to the point (0.1, 0.0) in the section of zeroLengthSection element 1, and of the steel (material tag 2) fiber closest to (-h/2, 0) in section 1 of beam-column element 2.
recorder Element -ele 1 -file fiber.out section fiber 0.1 0.0 stressStrain
recorder Element -ele 2 -file steelFiber.out section 1 fiber [expr -$h/2] 0.0 2 stressStrain
ops.recorder('Element', '-ele', 1, '-file', 'fiber.out', 'section', 'fiber', 0.1, 0.0, 'stressStrain')
ops.recorder('Element', '-ele', 2, '-file', 'steelFiber.out', 'section', 1, 'fiber', -h/2, 0.0, 2, 'stressStrain')
3.3.1.4.2. Recording section response by location (sectionX)
For beam-column elements, section response (e.g. force, deformation) is normally recorded by section number (1 to Np). The location of each section depends on the integration rule (e.g. Lobatto, Legendre, or plastic-hinge rules), so it is not always obvious which number corresponds to a given location along the element.
Instead, sectionX x records the section closest to the location x along the element, where x is between 0 (node I) and L (node J). The arguments after sectionX x are the same as after section secNum, e.g. deformation, force, or fiber …
Note
sectionX accepts a single x value per recorder. To record at several locations, create several recorders.
Example:
The following example records the deformation of the section closest to x = 25 along element 1.
recorder Element -ele 1 -file sec25.out sectionX 25 deformation
ops.recorder('Element', '-ele', 1, '-file', 'sec25.out', 'sectionX', 25, 'deformation')
See also
For recording fatigue damage in fiber sections or truss elements, see the damage recorder notes in Fatigue Material Wrapper. For a detailed walkthrough of fiber recorders and moment-curvature analysis, see How to Record Fiber Response (Portwood Digital) and Section X (Portwood Digital).
Code Developed by: fmk