Getting Data Into VisIt Manual Examples
The Getting Data Into VisIt manual provides source code examples that show you how to write data files that are compatible with VisIt. Those examples can be downloaded with the manual but people often forget that. This page lists the source code examples in the wiki for convenience.
Contents
Creating Compatible Files
The example programs can be found in the VisIt source code under src/tools/DataManualExamples/CreatingCompatible.
Creating Compatible Files (Advanced)
The example programs can be found in the VisIt source code under src/tools/DataManualExamples/CreatingCompatibleAdvanced.
Example | C | Fortran |
Spatial extents | spatialextents.c | fspatialextents.f fspatialextents.inc |
Data extents | dataextents.c | fdataextents.f |
Mixed materials | mixedmaterials.c | fmixedmaterials.f |
Ghost zones | ghostzonesinfile.c | fghostzonesinfile.f |
Vector variables | vectorvar.c | fvectorvar.f |
Database Plugins
You can write new database plugins for VisIt so VisIt can read new file formats. The code skeletons for various pieces of a database plugin can be found in the VisIt source code under src/tools/DataManualExamples/DatabasePlugin.
Instrumenting simulations
You can use VisIt's libsim to instrument your simulation so it can provide data to VisIt directly without writing files. The example programs can be found in the VisIt source code under src/tools/DataManualExamples/Simulations.