FOAMTOVTK(1)

πŸ“¦
version 1912.200626 Β· 2 versions
  • 1912.200626 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu stonking (latest)
  • 2512 Β· nixpkgs unstable
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu stonking

πŸ’– 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 in regionProperties. all of them. every single one. πŸ’–
  • -ascii β€” write in ASCII format instead of binary. human-readable, slightly chunky, we love her anyway ✨
  • -case dir β€” 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 the constant/ dir in the times list πŸ‘‘
  • -fields wordRes β€” 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 πŸ¦‹
  • -name subdir β€” 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 of pointFields. No interpolated PointData. πŸ’€
  • -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] πŸ”₯
  • -patches wordRes β€” specify single patch or multiple patches to write. eg, 'top' or '( front ".*back" )'
  • -region name β€” specify alternative mesh region
  • -regions wordRes β€” operate on selected regions from regionProperties. eg, '( gas "solid.*" )' 🌈
  • -time ranges β€” 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 🌟

  • -cellSet name β€” convert mesh subset corresponding to specified cellSet
  • -cellZone name β€” convert mesh subset corresponding to specified cellZone
  • -debug-switch name=val β€” specify the value of a registered debug switch. Default is 1 if the value is omitted. (can be used multiple times) 🧚
  • -decomposeParDict file β€” use specified file for the decomposePar dictionary
  • -excludePatches wordRes β€” specify single patch or multiple patches to exclude from writing. eg, 'outlet' or '( inlet ".*Wall" )' πŸ™ˆ
  • -faceSet name β€” convert specified faceSet only
  • -faceZones wordRes β€” specify single or multiple faceZones to write. eg, 'cells' or '( slice "mfp-.*" )' ✨
  • -fileHandler handler β€” 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-switch name=val β€” specify the value of a registered info switch. Default is 1 if the value is omitted. (can be used multiple times)
  • -legacy β€” write legacy format instead of xml
  • -lib name β€” 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-switch name=val β€” specify the value of a registered optimisation switch (int/bool). Default is 1 if the value is omitted. (can be used multiple times) πŸ“
  • -pointSet name β€” convert specified pointSet only
  • -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 β€” write surfaceScalarFields (eg, phi) πŸ’œ
  • -with-ids β€” additional mesh id fields (cellID, procID, patchID)
  • -with-point-ids β€” additional pointID field 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 Β© 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 πŸŽ€πŸ’–βœ¨πŸ¦‹πŸ‘‘