Mesh conversion Salome to OpenFOAM
1 Attachment(s)
Hello everyone.
Finally I decided to look for some help because mesh conversion is driving me mad. I think that I have done all steps correctly but it doesn't work. I have read carefully the instructions of Salome to OpenFOAM conversion and OpenFOAM user guide in order to get it by myself but it's impossible. What I have done is: I have generated a grid around a blade section with Salome to import it in OpenFOAM. I read in OpenFOAM guide that 2D meshes aren't possible so I decided to give some thickness to the mess by an extrusion (now we have a 3D mesh). After that, I created groups of faces for all patches. Then I got the correct mesh and I created some groups of faces for mesh (wall, inlet outlet). I exported the mesh to I-DEAS format file (filename.unv). I put it on the root of OpenFOAM case (where directories 0, constant, system... I have followed the correct steps in the structure of my folder's case). The problem appears when I type: ideasUnvToFoam filename.unv I attach the fail that OpenFOAM shows, maybe it will be easier for you to find the problem. Summarising, the problem is that OpenFoam doesn't read any cell and I don't know why. Thank you so much for your help!!!! |
Hey there! I do not claim to be an expert, just trying to help
From the line where the error appears, I understand that something goes wrong with the face groups you have created for the boundary conditions. So, I would first try to un-define these groups to see if the geometry is otherwise correctly read in OF. Then, you can try redefining them part-by-part to find the mistake. If the problem is indeed in the groups and you can't see what is wrong in SALOME, it might help you to check the "autoPatch" and "createPatch" OF utilities as a workaround. If you still have trouble, it would be better to post your .unv . |
Quote:
Thank you so much for your help! I have realised that I haven't defined any 3D feature in my Salome mesh. As a result I hace a empty 3D mesh... sorry for taking your time just for that stupid mistake but I have been two days thinking about it! I expect that I will get it changing 3D features. Thank you so much! |
Hello!
I have a similar problem. I created a simple geometry and built a mesh for it as was describe in this thread and elsewhere to check if I understand how to convert mesh from salome to openfoam. What I've got is emty files in polyMesh directory (that is headers with zero vertices, faces etc) and no errors. Output from ideasUnvToFoam without header looks like this: Code:
Create time P.S: I copied controlDict from one of tutorials. I suppose its content is unlikely to matter when converting mesh. |
The first place I would look is the .unv file.
What is its size? What are its contents? It sounds like it has not been exported correctly and it is empty. The controlDict does not really play a role (as far as I know). |
unv file is ok, at least visually. It takes 866 kb and contains a lot of numbers. ideasUnvToFoam really behaves as if it were given empty file (I've tried).
|
Here is unv file tube.unv. I'm sorry, it is in russian, I hope it won't be a problem.
|
|
Thank you, Linneman.
|
Hello Linnemann,
I received a coarse geometry for analysis from some source. The mesh is tetrahedral and i want to refine it. The command refineMesh only works for hex mesh as far as i know. Is it possible to export the mesh to Salome where i can refine it. Please advice what's the best thing to do? Thanks |
Hello
If I where you I would use. Code:
surfaceMeshTriangulate Then either use snappyHexMesh, Netgen or Salome to redo the mesh to your desire. |
Wow...!
Thank you for such a prompt reply Linnemann. I will try your advice. Best Nadish |
All times are GMT -4. The time now is 21:41. |