3.3.1.7. VTK Recorder
The VTK recorder writes the model mesh and selected response quantities to VTK XML format for visualization in ParaView. It creates a directory named after the recorder base name, writes a ParaView collection file (.pvd), and stores time-step data in .vtu files.
For newer workflows, consider also the PVD Recorder, which provides similar ParaView output.
- recorder vtk $baseName $respType1 $respType2 ... <-precision $nSD> <-dT $deltaT> <-rTolDt $rTol>
Note
Valid nodal response types include:
disp
disp2
disp3
vel
accel
reaction
reaction2
reaction3
mass
unbalancedLoad
eigen $mode
Element response may be requested with
eleResponsefollowed by the same arguments used in an Element Recorder (for example,eleResponse localForce).This recorder is available in the Tcl interpreter. It is not registered in the standard OpenSeesPy recorder map; use Tcl or the PVD Recorder / GMSH Recorder for Python-based visualization workflows.
Open
$baseName.pvdin ParaView to animate results over time.- The function returns a value:SUCCESS: >0 an integer tag that can be used as a handle to remove a recorder with the remove Command command.FAILURE: -1 recorder command failed (read the log)
Example
Tcl Code
recorder vtk results disp accel -dT 0.1
Code developed by: fmk