CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Salome] Mesh conversion Salome to OpenFOAM (https://www.cfd-online.com/Forums/openfoam-meshing/103764-mesh-conversion-salome-openfoam.html)

VMartinez June 26, 2012 06:41

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.u
nv


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!!!!

anon_a June 26, 2012 10:56

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 .

VMartinez June 26, 2012 17:22

Quote:

Originally Posted by anon_a (Post 368392)
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 .


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!

vehsakul August 12, 2012 13:28

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
Sorting boundary faces according to group (patch)
Constructing mesh with non-default patches of size:
End

I'm a novice so solution may be simple but it is not evident to me, at least now. So I ask to help me.

P.S: I copied controlDict from one of tutorials. I suppose its content is unlikely to matter when converting mesh.

anon_a August 12, 2012 14:31

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).

vehsakul August 12, 2012 15:04

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).

vehsakul August 12, 2012 15:52

Here is unv file tube.unv. I'm sorry, it is in russian, I hope it won't be a problem.

linnemann August 13, 2012 03:25

http://www.openfoam.org/mantisbt/view.php?id=584

vehsakul August 13, 2012 05:01

Thank you, Linneman.

90nash April 21, 2014 02:34

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

linnemann April 21, 2014 02:51

Hello

If I where you I would use.

Code:

surfaceMeshTriangulate
To generate stl files of all the boundaries.

Then either use snappyHexMesh, Netgen or Salome to redo the mesh to your desire.

90nash April 21, 2014 02:54

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 12:49.