CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Salome] Mesh conversion Salome to OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2012, 07:41
Unhappy Mesh conversion Salome to OpenFOAM
  #1
New Member
 
Victor
Join Date: Jun 2012
Posts: 2
Rep Power: 0
VMartinez is on a distinguished road
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!!!!
Attached Files
File Type: txt Fail.txt (2.3 KB, 102 views)
VMartinez is offline   Reply With Quote

Old   June 26, 2012, 11:56
Default
  #2
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
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 .
anon_a is offline   Reply With Quote

Old   June 26, 2012, 18:22
Default
  #3
New Member
 
Victor
Join Date: Jun 2012
Posts: 2
Rep Power: 0
VMartinez is on a distinguished road
Quote:
Originally Posted by anon_a View Post
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!
VMartinez is offline   Reply With Quote

Old   August 12, 2012, 14:28
Default
  #4
New Member
 
sergey
Join Date: Aug 2012
Posts: 4
Rep Power: 14
vehsakul is on a distinguished road
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.
vehsakul is offline   Reply With Quote

Old   August 12, 2012, 15:31
Default
  #5
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
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).
anon_a is offline   Reply With Quote

Old   August 12, 2012, 16:04
Default
  #6
New Member
 
sergey
Join Date: Aug 2012
Posts: 4
Rep Power: 14
vehsakul is on a distinguished road
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.
vehsakul is offline   Reply With Quote

Old   August 12, 2012, 16:52
Default
  #7
New Member
 
sergey
Join Date: Aug 2012
Posts: 4
Rep Power: 14
vehsakul is on a distinguished road
Here is unv file tube.unv. I'm sorry, it is in russian, I hope it won't be a problem.
vehsakul is offline   Reply With Quote

Old   August 13, 2012, 04:25
Default
  #8
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
http://www.openfoam.org/mantisbt/view.php?id=584
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   August 13, 2012, 06:01
Default
  #9
New Member
 
sergey
Join Date: Aug 2012
Posts: 4
Rep Power: 14
vehsakul is on a distinguished road
Thank you, Linneman.
vehsakul is offline   Reply With Quote

Old   April 21, 2014, 03:34
Default
  #10
Member
 
Nadish Saini
Join Date: Feb 2014
Location: Raleigh, North Carolina
Posts: 39
Rep Power: 12
90nash is on a distinguished road
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
90nash is offline   Reply With Quote

Old   April 21, 2014, 03:51
Default
  #11
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
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.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.

Last edited by linnemann; April 21, 2014 at 05:10.
linnemann is offline   Reply With Quote

Old   April 21, 2014, 03:54
Default
  #12
Member
 
Nadish Saini
Join Date: Feb 2014
Location: Raleigh, North Carolina
Posts: 39
Rep Power: 12
90nash is on a distinguished road
Wow...!
Thank you for such a prompt reply Linnemann. I will try your advice.

Best
Nadish
90nash is offline   Reply With Quote

Reply

Tags
mesh salome openfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:08.