3.3.1.7. VTK Recorder

This command is used to construct a VTK recorder, a whole model recorder that writes the mesh of the model and selected nodal and element responses in the VTK XML format, for visualization in ParaView. It writes a ParaView collection file, $baseName.pvd, and one .vtu file for each recorded step in the folder $baseName, which it creates.

recorder vtk $baseName $respType1 $respType2 ... <eigen $mode> <-precision $nSD> <-dT $deltaT> <eleResponse $arg1 $arg2 ...>

Argument

Type

Description

$baseName

string

base name of the collection file ($baseName.pvd) and of the folder that holds the .vtu files

$respType

string

nodal response to record: disp, vel, accel, reaction, mass or unbalancedLoad; disp2, vel2, accel2, reaction2 and disp3, vel3, … record only the first 2 or 3 components

$mode

integer

record the shape of this mode (after an eigen command)

$nSD

integer

number of significant digits written (optional: default = 10)

$deltaT

float

record only when at least this much time has passed since the last record (optional: default = record every step)

$arg1 $arg2 …

list

element response to record, passed to the elements in the same way as for the Element Recorder, e.g. localForce

Note

  1. This command is only available in the Tcl interpreter. In Python, use the PVD Recorder, which writes the same kind of files.

  2. eleResponse takes all the arguments that follow it, so it must be the last option.

  3. Only one eigen option is used. To record several mode shapes, use the PVD Recorder.

  4. Open $baseName.pvd in ParaView to see the results, and to animate them over time.

  5. The type can also be given as VTK.

Example:

The following example writes the displacements and accelerations at intervals of 0.1 to results.pvd and the folder results.

recorder vtk results disp accel -dT 0.1

Code Developed by: fmk