currently there is no build in export.
for polyMesh also IF YOU DONT HAVE PYRAMIDS:
remove 1D groups of your mesh in salome
export in UNV format
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
Thank you for your reply. I am aware of these solutions (work arounds) and I was using all these for a while now. But I still I don’t think these methods are very convenient, and I think people can benefit from clean built-in export options. Let me elaborate:
To export a feature edge mesh, I need to load a script, write command lines in correct syntax, select certain items while doing these.
If I generate geometry in Shaper, the mesh object has an id starting with 0:1:4:* (instead of 0:1:2:*) and it doesn’t act as a mesh for scripts that export mesh to polyMesh. I found a work around by sheer luck.
PolyMesh exporting scripts work with pyramids too btw, where unv-export & ideasToFoam fails as you also mentioned.
I must also mention that, I didn’t enjoy spending time and effort to search if and how I can export such mesh items and if there are better ways to do so, considering it is something so regular as exporting the mesh.
I thought that not all improvement suggestions have to be to add something that Salome can’t do, but also to improve usage experience. Personally, as a Salome user, I would be happy if exporting mesh becomes more reliable and robust.
About participating in Salome improvements, I’m not that experienced in Salome or Python to be honest. But thank you for reminding me that there is such an option, I would like to give some efforts in the future.
I truly appreciate all the comments and suggestions to help with exporting meshes. Please don’t take me wrong; your input is invaluable.
However, my main concern in raising this issue wasn’t about being unable to export these mesh items. Rather, it was to highlight that relying on external scripts for something as fundamental as exporting a mesh is not very convenient.
That said, this is just my personal opinion. If it’s taken into consideration, that’s fantastic! If not, the methods mentioned here and elsewhere still work. They may not be ideal, but they’re a good alternative.