Writes fields in VTK (xml or legacy) format. Writes cell-values or point-interpolated values for volFields.
More...
|
| | TypeName ("vtkWrite") |
| | Runtime type information.
|
| | vtkWrite (const word &name, const Time &runTime, const dictionary &dict) |
| | Construct from name, Time and dictionary.
|
| | vtkWrite (const vtkWrite &)=delete |
| | No copy construct.
|
| void | operator= (const vtkWrite &)=delete |
| | No copy assignment.
|
| virtual | ~vtkWrite ()=default |
| | Destructor.
|
| virtual bool | read (const dictionary &dict) |
| | Read the vtkWrite specification.
|
| virtual bool | execute () |
| | Execute - does nothing.
|
| virtual bool | write () |
| | Write fields.
|
| virtual bool | end () |
| | On end - cleanup internal allocations.
|
| virtual void | updateMesh (const mapPolyMesh &mpm) |
| | Update for changes of mesh.
|
| virtual void | movePoints (const polyMesh &mesh) |
| | Update for mesh point-motion.
|
| | timeFunctionObject (const word &name, const Time &runTime) |
| | Construct from Time.
|
| virtual | ~timeFunctionObject ()=default |
| | Destructor.
|
| const Time & | time () const |
| | Return time database.
|
| objectRegistry & | storedObjects () |
| | Write access to the output objects ("functionObjectObjects") registered on Time.
|
| const objectRegistry & | storedObjects () const |
| | Const access to the output objects ("functionObjectObjects") registered on Time.
|
| | declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) |
| | functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) |
| | Construct from components.
|
| autoPtr< functionObject > | clone () const |
| | Return clone.
|
| virtual | ~functionObject ()=default |
| | Destructor.
|
| virtual const word & | type () const =0 |
| | Runtime type information.
|
| const word & | name () const noexcept |
| | Return the name of this functionObject.
|
| bool | useNamePrefix () const noexcept |
| | Return the flag for adding a scoping name prefix.
|
| bool | useNamePrefix (bool on) noexcept |
| | Modify the flag for adding a scoping name prefix.
|
| virtual bool | execute (const label subIndex) |
| | Execute using the specified subIndex.
|
| virtual bool | adjustTimeStep () |
| | Called at the end of Time::adjustDeltaT() if adjustTime is true.
|
| virtual bool | filesModified () const |
| | Did any file get changed during execution?
|
Writes fields in VTK (xml or legacy) format. Writes cell-values or point-interpolated values for volFields.
Example of function object specification:
vtkWrite1
{
type vtkWrite;
libs (utilityFunctionObjects);
writeControl writeTime;
writeInterval 1;
format binary;
legacy false;
decompose false;
...
fields (U p);
// excludeFields ("force.*");
selection
{
box
{
action use;
source box;
box (-0.1 -0.01 -0.1) (0.1 0.30 0.1);
}
dome
{
action add;
source sphere;
origin (-0.1 -0.01 -0.1);
radius 0.25;
}
centre
{
action subtract;
source sphere;
origin (-0.1 -0.01 -0.1);
radius 0.1;
}
blob
{
action add;
source surface;
surface triSurfaceMesh;
name blob.stl;
}
}
}
Basic Usage
| Property | Description | Required | Default |
type | Type name: vtkWrite | yes | |
fields | Select fields to output (wordRe list) | yes | |
excludeFields | Exclude fields from output (wordRe list) | no | |
boundary | Convert boundary fields | no | true |
internal | Convert internal fields | no | true |
single | Combine patches into a single boundary | no | false |
interpolate | Interpolate for point values | no | false |
Output Options
| Property | Description | Required | Default |
format | ascii or binary format | no | binary |
legacy | Legacy VTK output | no | false |
precision | Write precision in ascii | no | same as IOstream |
directory | The output directory name | no | postProcessing/NAME |
width | Padding width for file name | no | 8 |
decompose | Decompose polyhedral cells | no | false |
writeIds | Write cell,patch,proc id fields | no | false |
Output Selection
| Property | Description | Required | Default |
region | Name for a single region | no | region0 |
regions | List of regions (wordRe list) | no | |
patches | Limit to listed patches (wordRe list) | no | |
excludePatches | Exclude specified patches | no | |
selection | Cell selection (topoSet actions) | no | empty dict |
- Note
- The region of interest is defined by the selection dictionary as a set of actions (use,add,subtract,subset,invert). Omitting the selection dictionary is the same as specifying the conversion of all cells (in the selected regions). Omitting the patches entry is the same as specifying the conversion of all patches.
- See also
- Foam::functionObjects::ensightWrite Foam::functionObjects::fvMeshFunctionObject Foam::functionObjects::timeControl Foam::cellBitSet::select
- Source files
-
Definition at line 265 of file vtkWrite.H.