freefoam-foamToVTK(1) Legacy VTK file format writer.


freefoam foamToVTK [-noLinks] [-srcDoc] [-noFaceZones] [-nearCellValue] [-noPointValues] [-noInternal] [-useTimeName] [-ascii] [-doc] [-surfaceFields] [-mesh <name>] [-help] [-cellSet <name>] [-noZero] [-excludePatches <patchNames>] [-time <time>] [-case <dir>] [-pointSet <name>] [-latestTime] [-fields <fields>] [-constant] [-parallel] [-faceSet <name>] [-allPatches]


• handles volScalar, volVector, pointScalar, pointVector, surfaceScalar fields.

• mesh topo changes.

• both ascii and binary.

• single time step writing.

• write subset only.

• automatic decomposition of cells; polygons on boundary undecomposed since handled by vtk.



Write VTK data in ASCII format instead of binary.

-mesh <name>

Use a different mesh name (instead of -region)

-fields <fields>

Convert selected fields only. For example,

     -fields "( p T U )"

The quoting is required to avoid shell expansions and to pass the information as a single argument.


Write surfaceScalarFields (e.g., phi)

-cellSet <name>, -faceSet <name>, -pointSet <name>

Restrict conversion to the cellSet, faceSet or pointSet.


Output cell value on patches instead of patch value itself.


Do not generate file for mesh, only for patches.


No pointFields.


No faceZones.


(in parallel) do not link processor files to master.


Combine all patches into a single file.

-excludePatches <patchNames>

Specify patches to exclude. For example,

     -excludePatches "( inlet_1 inlet_2 )"

The quoting is required to avoid shell expansions and to pass the information as a single argument.


use the time index in the VTK file name instead of the time index

-case <dir>

Case directory.


Ignore time step 0.


Include the constant directory.


Only apply to the latest time step.

-time <time>

Apply only to specified time.


Run in parallel.


Display help message.


Display Doxygen API documentation page for this application.


Display Doxygen source documentation page for this application.


mesh subset is handled by vtkMesh. Slight inconsistency in interpolation: on the internal field it interpolates the whole volfield to the whole-mesh pointField and then selects only those values it needs for the subMesh (using the fvMeshSubset cellMap(), pointMap() functions). For the patches however it uses the fvMeshSubset.interpolate function to directly interpolate the whole-mesh values onto the subset patch.


OpenCFD Ltd.


Part of the freefoam(1) suite.


• Copyright © 2008-2012 Michael Wild.

• Copyright © 1991-2010 OpenCFD Ltd.