1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
// -*- C++ -*-
// Minimal example of using the vtkWrite function object.
vtkWrite
{
type vtkWrite;
libs (utilityFunctionObjects);
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="postProcessing/<name>"
// directory "VTK";
//- Write cell ids as field - Default=true
writeIds false;
//- Write more frequent than fields
writeControl timeStep;
writeInterval 25;
}
subset
{
type vtkWrite;
libs (utilityFunctionObjects);
log true;
// boundary false;
interpolate true;
// Fields to output (words or regex)
fields (U p);
//- Write cell ids as field - Default=true
writeIds false;
//- Write more frequent than fields
writeControl timeStep;
writeInterval 25;
// Region of interest
selection
{
dome
{
action use;
source sphere;
origin (125 100 0);
radius 100;
}
cylinder
{
action subtract;
source cylinder;
p1 (125 100 0);
p2 (125 100 100);
radius 20;
}
outlet
{
action add;
source box;
box (300 -100 -100) (330 250 100);
}
clipping
{
action subset;
source box;
box (-1000 -1000 -1000) (1000 1000 50);
}
}
}
// ************************************************************************* //
|