FOAMTOVTK(1)
π FOAMTOVTK π
okay bestie, gather round, because this is foamToVTK, part of OpenFOAM (The Open Source CFD Toolbox), and we're reading it out of the OpenFOAM Commands Manual. she's iconic, she's powerful, she turns your whole case into VTK files. let's get into it π«Ά
β¨ SYNOPSIS β¨
foamToVTK [OPTIONS]
π¦ DESCRIPTION π¦
General OpenFOAM to VTK file writer. that's the whole plot, no cap β your OpenFOAM case goes in, VTK files come out, and then you go live your main character life in ParaView. π
π OPTIONS π
-allRegionsβ operate on all the regions inregionProperties. all of them. every single one. π-asciiβ write in ASCII format instead of binary. human-readable, slightly chunky, we love her anyway β¨-casedir β specify the case directory to use (instead of the cwd). so you don't have to physically live inside the case folder, you can just point at it π-constantβ include theconstant/dir in the times list π-fieldswordRes β specify single or multiple fields to write (all by default). eg,'T'or'(p T U "alpha.*")'πΈ-latestTimeβ select the latest time. just the newest one, she's the moment π¦-namesubdir β directory name for VTK output (default:'VTK')-no-boundaryβ suppress output for boundary patches π-no-internalβ suppress output for the internal volume mesh-no-lagrangianβ suppress writing lagrangian positions and fields-no-point-dataβ suppress conversion ofpointFields. No interpolatedPointData. π-noZeroβ exclude the'0/'dir from the times list-one-boundaryβ combine all patches into a single file. one file, one vibe, efficient β¨-overwriteβ remove any existing VTK output directory. bye bye old output, it's giving fresh start π-parallelβ run in parallel [Parallel option] π₯-patcheswordRes β specify single patch or multiple patches to write. eg,'top'or'( front ".*back" )'-regionname β specify alternative mesh region-regionswordRes β operate on selected regions fromregionProperties. eg,'( gas "solid.*" )'π-timeranges β list of ranges. eg,':10,20 40:70 1000:','none', etc. you pick the eras you care about bestie β-docβ display documentation in browser-helpβ display short help and exit-help-fullβ display full help and exit
π ADVANCED OPTIONS π
-cellSetname β convert mesh subset corresponding to specifiedcellSet-cellZonename β convert mesh subset corresponding to specifiedcellZone-debug-switchname=val β specify the value of a registered debug switch. Default is1if the value is omitted. (can be used multiple times) π§-decomposeParDictfile β use specified file for thedecomposePardictionary-excludePatcheswordRes β specify single patch or multiple patches to exclude from writing. eg,'outlet'or'( inlet ".*Wall" )'π-faceSetname β convert specifiedfaceSetonly-faceZoneswordRes β specify single or multiplefaceZonesto write. eg,'cells'or'( slice "mfp-.*" )'β¨-fileHandlerhandler β override the file handler type-finiteAreaFieldsβ write finite area fields-hostRoots((host1 dir1) .. (hostN dirN)) β per-host slave root directories for distributed running. The host specification can be a regex. [Parallel option] π-info-switchname=val β specify the value of a registered info switch. Default is1if the value is omitted. (can be used multiple times)-legacyβ write legacy format instead of xml-libname β additional library or library list to load (can be used multiple times)-nearCellValueβ use cell value on patches instead of patch value itself-noFunctionObjectsβ do not execute function objects-opt-switchname=val β specify the value of a registered optimisation switch (int/bool). Default is1if the value is omitted. (can be used multiple times) π-pointSetname β convert specifiedpointSetonly-poly-decompβ decompose polyhedral cells into tets/pyramids-processor-fieldsβ write field values on processor boundaries only-roots(dir1 .. dirN) β slave root directories for distributed running [Parallel option]-surfaceFieldsβ writesurfaceScalarFields(eg,phi) π-with-idsβ additional mesh id fields (cellID,procID,patchID)-with-point-idsβ additionalpointIDfield for internal mesh-doc-sourceβ display source code in browser-help-compatβ display compatibility options and exit-help-manβ display full help (manpage format) and exit-help-notesβ display help notes (description) and exit
π COMPATIBILITY OPTIONS π
these ones are the throwbacks, the old-era lore. read carefully bestie:
-allPatches(now-one-boundary) β the option was last used in 1806.-noLagrangian(now-no-lagrangian) β the option was last used in 1806.-noPointValues(now-no-point-data) β the option was last used in 1806.-noFaceZonesβ this option is ignored after 1806.-noLinksβ this option is ignored after 1806.-polyβ this option is ignored after 1806.-useTimeNameβ this option is ignored after 1806.-xmlβ this option is ignored after 1806.
not me still passing the 1806 flags π they will simply not do anything. use the new names, bestie, trust.
π SEE ALSO π
Online documentation https://www.openfoam.com/documentation/ β go read, she's got range β¨
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 2018-2019 OpenCFD Ltd.
www.openfoam.com Β· OpenFOAM- Β· FOAMTOVTK(1) β and that's the whole page, bestie!! you ate. now go convert some meshes and be the main character of your own simulation ππβ¨π¦π
π¦ where this page comes from
- debian bookworm: openfoam 1912.200626-1+b1 Β· GPL-3.0-or-later
- debian trixie: openfoam 1912.200626-3+b1 Β· GPL-3.0-or-later
- ubuntu jammy: openfoam 1912.200626-1 Β· GPL-3.0-or-later
- ubuntu noble: openfoam 1912.200626-2build3 Β· GPL-3.0-or-later
- ubuntu questing: openfoam 1912.200626-3build1
- ubuntu stonking: openfoam 1912.200626-4 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms