Skip to content

BUG: foamMeshToFluent writes empty brackets in msh file

Summary

foamMeshToFluent writes empty brackets in the msh file in the "caption" of the very last section when the names ans types of the domains and the boundaries are declared, p.e.

(12 (1 1 a94fc 1 0)(
4 4 ... 4 4)**()**)
(39 (1 fluid fluid-1)())
(39 (2 interior interior-1)())
...

Those empty brackets () cause ICEM to throw the following error when importing the mesh file: icem read_rampant_file() expecting '(' and got 41 Although, the mesh is imported, the boundary and domain names aren't.

Steps to reproduce

Export a mesh from any OpenFoam test case to Fluent msh via foamMeshToFluent

Environment information

  • OpenFOAM version : v2006
  • Operating system : ubuntu1804@WSL@Win10

Possible fixes

Removing the empty brackets in the mentioned header enables ICEM to properly read in all mesh informations.