SETFIELDS(1)
π SETFIELDS(1) β the OpenFOAM Commands Manual glow-up π
okay bestie, sit down, hydrate, and let me tell you about setFields β it's part of OpenFOAM (aka The Open Source CFD Toolbox, aka the icon, the moment, the blueprint) π¦
β¨ SYNOPSIS β¨
setFields [OPTIONS]
πΈ DESCRIPTION πΈ
So basically: setFields sets values on a selected set of cells/patch-faces, and it does it via a dictionary. That's it. That's the whole vibe. You point it at a dictionary, it goes and stamps your values onto the cells and patch-faces you picked out. lowkey iconic behavior honestly π
π OPTIONS π
-casedir β tells it which case directory to use instead of the cwd (current working directory). like, "not here, bestie, there" π-decomposeParDictfile β use the file you name for thedecomposePardictionary. your dict, your rules π«Ά-dictfile β use an alternativesetFieldsDict. wanna swap the dictionary? go off π-parallelβ run in parallel. [Parallel option] β yes it's tagged, yes it matters, no we do not skip it β¨-regionname β specify an alternative mesh region. different region, different energy π-docβ display documentation in browser. cute little docs pop-up π-helpβ display short help and exit. quick lil recap then bye π-help-fullβ display full help and exit. the whole lore, then exit π
π₯ ADVANCED OPTIONS π₯
these are for when you're feeling brave, bestie. main character energy only.
-debug-switchname=val β specify the value of a registered debug switch. if you leave the value out, the default is1. (Can be used multiple times β stack 'em, queen) π-fileHandlerhandler β override the file handler type. take the wheel, choose your handler π-hostRoots((host1 dir1) .. (hostN dirN))β per-host slave root directories for distributed running. the host specification can be a regex. [Parallel option] β yes the regex thing is real, do not come for me β¨-info-switchname=val β specify the value of a registered info switch. value omitted? default is1. (Can be used multiple times) π’-libname β additional library or library list to load (can be used multiple times). load up, babe π-noFunctionObjectsβ do not execute function objects. sometimes you just gotta say no π-opt-switchname=val β specify the value of a registered optimisation switch (int/bool). omitted value defaults to1. (Can be used multiple times) β‘-roots(dir1 .. dirN)β slave root directories for distributed running. [Parallel option] π-doc-sourceβ display source code in browser. go read the actual source, nerd (affectionate) π-help-manβ display full help (manpage format) and exit. meta. we love a self-aware king π-help-notesβ display help notes (description) and exit. just the notes, no filler π
π¦ SEE ALSO π¦
Online documentation: https://www.openfoam.com/documentation/
π COPYRIGHT π
Copyright Β© 2018-2019 OpenCFD Ltd.
π ok that's the whole page, bestie β every flag, every default, every [Parallel option] tag, all of it. no cap.
and for the cute lil sign-off: this page comes to you from the OpenFOAM Commands Manual over at www.openfoam.com, and the version string is literally just OpenFOAM- (yes, with the dash and nothing after it, she's mysterious like that) β mwah, go set some fields π
β¨πΈ
π¦ 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