GMSHTOFOAM(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

πŸ’… 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 ⭐

  • -case dir β€” 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. πŸ™ˆ
  • -region name β€” 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-switch name=val β€” set the value of a registered debug switch. Default is 1 if you just... don't give a value. (Can be used multiple times, go off.)
  • -fileHandler handler β€” override the file handler type. Fancy.
  • -info-switch name=val β€” set the value of a registered info switch. Default is 1 if the value is omitted. (Can be used multiple times.)
  • -lib name β€” 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-switch name=val β€” set the value of a registered optimisation switch (int/bool). Default is 1 if 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 Β© 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. πŸ’–βœ¨πŸŽ€