GMSHTOFOAM(1)
π GMSHTOFOAM β okay bestie, let's convert some meshes β¨
Hi hi! So this little icon is gmshToFoam, and she's part of OpenFOAM (aka The Open Source CFD Toolbox, the whole legend). She lives in the OpenFOAM Commands Manual section of your man pages, and she has exactly one job, which she does flawlessly, no notes. π«Ά
πΈ SYNOPSIS πΈ
gmshToFoam [OPTIONS] .msh file
That's it. That's the whole vibe check. β¨
π¦ DESCRIPTION π¦
Convert a gmsh .msh file to OpenFOAM. Periodt. π
Like β you made your mesh in gmsh, slay, but OpenFOAM doesn't speak gmsh, so you hand it over to this girl and she translates. It's giving bilingual queen. π
π ARGUMENTS π
.msh fileβ the gmsh file you want converted, bestie. Yes it's literally just called that. Not me writing the argument name as the file extension π
β OPTIONS β
-casedir β tell her which case directory to work in, instead of just using the cwd (the current working directory, iykyk).-keepOrientationβ keep the raw orientation for prisms/hexs. No remixing, no reorienting, we keep it exactly how it came. π-regionname β pick an alternative mesh region if you're feeling spicy.-docβ pops the documentation open in your browser. Very demure, very mindful. π-helpβ short help, then she dips. Byeee π-help-fullβ the FULL help, then exit. She's thorough, she's committed. π
π ADVANCED OPTIONS π
-debug-switchname=val β set the value of a registered debug switch. Default is1if you just... don't give a value. (Can be used multiple times, go off.)-fileHandlerhandler β override the file handler type. Fancy.-info-switchname=val β set the value of a registered info switch. Default is1if the value is omitted. (Can be used multiple times.)-libname β load an additional library or a whole list of libraries. (Can be used multiple times.) Load her up π-noFunctionObjectsβ do NOT execute function objects. Not today. π«-opt-switchname=val β set the value of a registered optimisation switch (int/bool). Default is1if the value is omitted. (Can be used multiple times.)-doc-sourceβ opens the source code in your browser, for when you wanna read the actual receipts. π₯-help-manβ full help in manpage format, then exit.-help-notesβ help notes (the description), then exit.
π SEE ALSO π
Online documentation, bestie: https://www.openfoam.com/documentation/
πΈ COPYRIGHT πΈ
Copyright Β© 2018-2019 OpenCFD Ltd.
Also just so we're clear, she's not reinventing anything β everything above is exactly as documented, and the flags mean what they mean. Don't come for me if you skip -keepOrientation and your prisms get reoriented. π
And that's the whole page, angel! π§ This gorgeous little manual lives over at www.openfoam.com, stamped OpenFOAM- and filed under GMSHTOFOAM(1). Go convert something cute. πβ¨π
π¦ 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