|
[Sponsors] |
June 26, 2012, 07:41 |
Mesh conversion Salome to OpenFOAM
|
#1 |
New Member
Victor
Join Date: Jun 2012
Posts: 2
Rep Power: 0 |
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!!!! |
|
June 26, 2012, 11:56 |
|
#2 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
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 . |
|
June 26, 2012, 18:22 |
|
#3 | |
New Member
Victor
Join Date: Jun 2012
Posts: 2
Rep Power: 0 |
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! |
||
August 12, 2012, 14:28 |
|
#4 |
New Member
sergey
Join Date: Aug 2012
Posts: 4
Rep Power: 14 |
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 P.S: I copied controlDict from one of tutorials. I suppose its content is unlikely to matter when converting mesh. |
|
August 12, 2012, 15:31 |
|
#5 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
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). |
|
August 12, 2012, 16:04 |
|
#6 |
New Member
sergey
Join Date: Aug 2012
Posts: 4
Rep Power: 14 |
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).
Last edited by vehsakul; August 12, 2012 at 16:25. |
|
August 13, 2012, 04:25 |
|
#8 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 13, 2012, 06:01 |
|
#9 |
New Member
sergey
Join Date: Aug 2012
Posts: 4
Rep Power: 14 |
Thank you, Linneman.
|
|
April 21, 2014, 03:34 |
|
#10 |
Member
Nadish Saini
Join Date: Feb 2014
Location: Raleigh, North Carolina
Posts: 39
Rep Power: 12 |
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 |
|
April 21, 2014, 03:51 |
|
#11 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hello
If I where you I would use. Code:
surfaceMeshTriangulate Then either use snappyHexMesh, Netgen or Salome to redo the mesh to your desire.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. Last edited by linnemann; April 21, 2014 at 05:10. |
|
April 21, 2014, 03:54 |
|
#12 |
Member
Nadish Saini
Join Date: Feb 2014
Location: Raleigh, North Carolina
Posts: 39
Rep Power: 12 |
Wow...!
Thank you for such a prompt reply Linnemann. I will try your advice. Best Nadish |
|
Tags |
mesh salome openfoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Salome] Problems for creating mesh in salome to OPENFOAM | bye bye my blue | OpenFOAM Meshing & Mesh Conversion | 8 | December 5, 2023 01:57 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
[Commercial meshers] Mesh conversion .gtm to OpenFOAM | ansab | OpenFOAM Meshing & Mesh Conversion | 2 | December 6, 2016 14:48 |
[Commercial meshers] Problems with ANSYS mesh conversion | tdog | OpenFOAM Meshing & Mesh Conversion | 1 | March 31, 2016 18:36 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |