ENH: upgrade writeVTK function object -> vtkWrite function object

- user-selectable format (vtk or vtu, ascii or binary)
- dictionary syntax closer to ensightWrite
- tutorial example in windAroundBuildings
This commit is contained in:
Mark Olesen
2017-06-14 01:48:32 +02:00
parent df5b009708
commit 98cc0fc004
10 changed files with 335 additions and 246 deletions

View File

@ -10,8 +10,8 @@ ensightWrite
// Fields to output (words or regex)
fields (U p "(k|epsilon|omega)");
writeControl writeTime;
writeIterval 1;
writeControl writeTime;
writeInterval 1;
}
// ************************************************************************* //

View File

@ -50,6 +50,8 @@ runTimeModifiable true;
functions
{
#include "vtkWrite"
}
// ************************************************************************* //

View File

@ -0,0 +1,31 @@
// -*- 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;
}
// ************************************************************************* //