3.3.1.1. Node Recorder
This command is used to construct a Node recorder, which records the response of a number of nodes at every converged step of the analysis.
- recorder Node <-file $fileName> <-xml $fileName> <-binary $fileName> <-fileCSV $fileName> <-tcp $inetAddress $port> <-precision $nSD> <-time> <-dT $deltaT> <-closeOnWrite> <-timeSeries $tsTag1 $tsTag2 ...> <-node $node1 $node2 ...> <-nodeRange $startNode $endNode> <-region $regionTag> -dof $dof1 $dof2 ... $respType
ops.recorder('Node', '-file', fileName, '-xml', fileName, '-binary', fileName, '-csv', fileName, '-tcp', inetAddress, port, '-precision', nSD, '-time', '-dT', deltaT, '-closeOnWrite', '-timeSeries', *tsTags, '-node', *nodeTags, '-nodeRange', startNode, endNode, '-region', regionTag, '-dof', *dofs, respType)
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) |
$tsTag1 $tsTag2 … |
list integer |
tags of time series whose values are added to the response, one for each dof (optional; see note 4) |
$node1 $node2 … |
list integer |
tags of the nodes whose response is recorded |
$startNode $endNode |
integer |
record all nodes with tags from startNode to endNode |
$regionTag |
integer |
record all nodes in a previously defined region Command |
$dof1 $dof2 … |
list integer |
degrees-of-freedom whose response is recorded (1 through ndf) |
$respType |
string |
the response to record (see note 3) |
Note
Use only one of -file, -xml, -binary, -fileCSV (-csv) or -tcp to say where the output goes, and only one of -node, -nodeRange or -region to say which nodes are recorded. Without an output option the results are written to the screen.
Each line of the output contains, for each node in turn, the response at each listed dof. With -time the line starts with the time.
The valid response types are:
respType
Response
disp
displacement
vel
velocity
accel
acceleration
incrDisp
displacement increment over the last step
incrDeltaDisp
displacement increment over the last iteration
reaction
nodal reaction
reactionIncInertia
nodal reaction including inertia forces
rayleighForces
Rayleigh damping forces
unbalance
unbalanced load
pressure
pore pressure (nodes of u-p elements)
eigen1, eigen2, …
eigenvector of mode 1, 2, … (after an eigen command). Write the mode number with no space, e.g.
eigen1, or with a space inside quotes, e.g."eigen 1"With -timeSeries, the value of each time series at the current time is added to the response of its dof. A typical use is to record absolute accelerations when the ground motion is applied with a UniformExcitation Pattern pattern, whose responses are relative to the ground: give the same time series as the pattern.
-dT is useful when the analysis time step is small, or is subdivided by the script, and results are not needed at every step.
-closeOnWrite slows the analysis down, but the file is always up to date, which is useful to see how far an analysis has run. Otherwise the operating system decides when data is written to disk.
Example:
The following example creates two Node recorders:
The first records in the file
nodesD.outthe x and y (1 and 2) displacements of nodes 1, 2, 3 and 4. Each line has 9 columns: the time, then the x and y displacements of node 1, of node 2, and so on.The second records in the file
nodesA.outthe total accelerations of the same nodes, i.e. their relative accelerations plus the ground accelerations given by time series 1 (x direction) and 2 (y direction).
recorder Node -file nodesD.out -time -node 1 2 3 4 -dof 1 2 disp
recorder Node -file nodesA.out -timeSeries 1 2 -time -node 1 2 3 4 -dof 1 2 accel
ops.recorder('Node', '-file', 'nodesD.out', '-time', '-node', 1, 2, 3, 4, '-dof', 1, 2, 'disp')
ops.recorder('Node', '-file', 'nodesA.out', '-timeSeries', 1, 2, '-time', '-node', 1, 2, 3, 4, '-dof', 1, 2, 'accel')
Code Developed by: fmk