OpenFOAM related export options (eMesh, fms, polyMesh)

here you have for exporting of
fms External OpenFOAM python script not running after update to Salome 9.9 - #10 by cbourcier
eMesh, have a look at how it looks it is quite simple to do a script for exporting it. last time I needed I did a script couldn’t find it right now but it is super easy/simple for creating it.
polyMesh, GitHub - EastEriq/salomeToOpenFOAM: A python script that outputs a Salome mesh to OpenFOAM

currently there is no build in export.
for polyMesh also IF YOU DONT HAVE PYRAMIDS:

  1. remove 1D groups of your mesh in salome
  2. export in UNV format
  3. use build in ideasUnvToFoam (this step will fail if you have 1D groups before exporting it)
    I have experience other times that ideasUnvToFoam fails, never bothered to look why. but remove everything that are not patches info and you should be ok

also, salome now is on github. you are more than welcome to create your tools and ask for a merge for so this such tools are ‘build-in’ for other future versions

1 Like