DOLFIN-CONVERT(1)

πŸ“¦ version 2019.2.0~legacy20240219.1c52e83, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… dolfin-convert β€” the glow-up your mesh files have been waiting for πŸ’…

okay so bestie, real talk: this page comes from the General Commands Manual and it's literally the manual for dolfin-convert. sit down, grab a strawberry πŸ“, and let me tell you about it.


✨ NAME ✨

dolfin-convert β€” convert to DOLFIN XML format πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

dolfin-convert [OPTIONS] ... input.x output.y

like. you hand it an input file, you hand it an output file, and it does the thing. main character energy fr fr. πŸ‘‘


πŸ’– OPTIONS πŸ’–

  • -h, --help β€” shows you the help text and then dips. that's it, that's the whole job. πŸ’…
  • -i format, --input format β€” tells it what format the input is, so it doesn't have to guess. 🧚
  • -o format, --output format β€” same vibe but for the format you want coming out the other end. 🌸

🌈 the formats it speaks 🌈

here's the whole roster, no gatekeeping:

  • xml β€” DOLFIN XML mesh format (current) ✨
  • xml-old β€” DOLFIN XML mesh format (DOLFIN 0.6.2 and earlier)
  • mesh β€” Medit, generated by tetgen with option -g
  • gmsh β€” Gmsh, version 2.0 file format
  • metis β€” Metis graph file format
  • scotch β€” Scotch graph file format
  • diffpack β€” Diffpack tetrahedral grid format
  • abaqus β€” Abaqus tetrahedral grid format
  • ExodusII β€” Sandia Format (requires ncdump utility from NetCDF)
  • NetCDF β€” NetCDF format (requires ncdump utility from NetCDF)
  • StarCD β€” StarCD terahedral grid format
not me pointing out that ExodusII and NetCDF are highkey needy β€” they both want the ncdump utility from NetCDF to even function. know that before you commit. 😭

πŸ¦‹ if you don't say anything, it reads your vibes (aka your suffixes) πŸ¦‹

if --input or --output aren't specified, the format gets deduced from the suffix, like this:

  • .xml β€” xml
  • .mesh β€” mesh
  • .gmsh β€” gmsh
  • .msh β€” gmsh
  • .gra β€” metis
  • .grf β€” scotch
  • .grid β€” diffpack
  • .inp β€” abaqus
  • .e β€” ExodusII
  • .exo β€” ExodusII
  • .ncdf β€” NetCDF
  • .vrt β€” StarCD
  • .cell β€” StarCD

so yeah, the file extension is basically doing a vibe check and the program trusts it. iconic behavior honestly. πŸ’œ


πŸ’€ BUGS πŸ’€

found something cursed? got a comment, a question, a bug report, whatever? send it all to dolfin@lists.launchpad.net. they want to hear it, fr fr. πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

dolfin-convert was originally written by Anders Logg <logg@simula.no>. several other people contributed to add support for different mesh formats β€” a whole collaborative slay. this manual page was written by Johannes Ring <johannr@simula.no>. 🫢


and that's the whole page bestie, we ate and left no crumbs. this was the DOLFIN-CONVERT(1) page out of the General Commands Manual β€” so go forth, convert those meshes, and be the main character of your own terminal. ⭐ 🌈 πŸŽ€