mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
- user-selectable format (vtk or vtu, ascii or binary) - dictionary syntax closer to ensightWrite - tutorial example in windAroundBuildings
32 lines
748 B
C++
32 lines
748 B
C++
// -*- C++ -*-
|
|
// Minimal example of using the vtkWrite function object.
|
|
vtkWrite
|
|
{
|
|
type vtkWrite;
|
|
libs ("libutilityFunctionObjects.so");
|
|
log true;
|
|
|
|
// Fields to output (words or regex)
|
|
fields (U p "(k|epsilon|omega)");
|
|
|
|
//- Output format (ascii | binary) - Default=binary
|
|
// format binary;
|
|
|
|
//- Use legacy output format - Default=false
|
|
// legacy false;
|
|
|
|
//- Output directory name - Default="VTK"
|
|
// directory "VTK";
|
|
|
|
//- Write cell ids as field - Default=true
|
|
writeIds false;
|
|
|
|
writeControl writeTime;
|
|
writeInterval 1;
|
|
|
|
writeControl timeStep;
|
|
writeInterval 25;
|
|
}
|
|
|
|
// ************************************************************************* //
|