3.3.1.3. Drift Recorder
This command is used to construct a Drift recorder, which records the drift between pairs of nodes at every converged step. The drift is the difference between the displacements of the two nodes in a given degree-of-freedom, divided by the distance between the nodes in a perpendicular direction. It is typically used to record the inter-story drift of a building.
- recorder Drift <-file $fileName> <-xml $fileName> <-binary $fileName> <-fileCSV $fileName> <-precision $nSD> <-time> <-dT $deltaT> <-closeOnWrite> -iNode $iNode1 $iNode2 ... -jNode $jNode1 $jNode2 ... -dof $dof -perpDirn $perpDirn
ops.recorder('Drift', '-file', fileName, '-xml', fileName, '-binary', fileName, '-fileCSV', fileName, '-precision', nSD, '-time', '-dT', deltaT, '-closeOnWrite', '-iNode', *iNodes, '-jNode', *jNodes, '-dof', dof, '-perpDirn', perpDirn)
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) |
$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) |
$iNode1 $iNode2 … |
list integer |
tags of the first node of each pair |
$jNode1 $jNode2 … |
list integer |
tags of the second node of each pair |
$dof |
integer |
degree-of-freedom in which the relative displacement is measured (1 through ndf) |
$perpDirn |
integer |
direction in which the distance between the nodes is measured: 1 (X), 2 (Y) or 3 (Z) |
The drift recorded for each pair of nodes i and j is:
where \(U\) is the displacement and \(X\) the coordinate of a node.
Note
The number of nodes after -iNode must equal the number after -jNode. The pairs are formed in order: the first iNode with the first jNode, and so on.
A pair whose two nodes have the same coordinate in direction perpDirn is skipped, as the drift cannot be computed.
Each line of the output contains the drift of each pair in turn. With -time the line starts with the time.
The record type EnvelopeDrift, with the same arguments, records the minimum, maximum and maximum absolute drift over the analysis instead, as the EnvelopeNode Recorder does for nodal responses.
Example:
The following example records, in the file drift.out, the drift in the x (1) direction between nodes 1 and 3, and between nodes 2 and 4, using the distance between the nodes in the y (2) direction, i.e. the story height.
recorder Drift -file drift.out -time -iNode 1 2 -jNode 3 4 -dof 1 -perpDirn 2
ops.recorder('Drift', '-file', 'drift.out', '-time', '-iNode', 1, 2, '-jNode', 3, 4, '-dof', 1, '-perpDirn', 2)
Code Developed by: Michael H. Scott