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

[Salome] IdeasUnvToFoam is very slow when converting meshes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2017, 02:31
Default IdeasUnvToFoam is very slow when converting meshes
  #1
New Member
 
andrew
Join Date: Oct 2015
Posts: 11
Rep Power: 10
armitatz is on a distinguished road
I have a mesh created in Salome and saved in unv format. The mesh has 16million pyramid cells and a file size 2+gb. When I try to convert it with IdeasUnvToFoam it takes forever. That is more than an hour if it doesn't hang in the process. Smaller meshes created with the exact same procedure get converted correctly so it is not a problem in the mesh.

The procedure seems to get stuck here:

...
Constructing mesh with non-default patches of size:
left_c 91380
right_c 92058
top 98624
bottom 97796
front_c 98736
back_c 99216

Adding cell and face zones
Face Zone int 508481
....


The problem is in the IdeasUnvToFoam which seems that it can't cope to a reasonable amount of time with the conversion. I am using OF4.1 in ubuntu and salome 8.2.

Is there a way to convert or save the mesh in a diferent way to get the job done in a reasonable amount of time (a few minutes)?.

Patching the IdeasUnvToFoam is unfortunatey beyond my knowledge.

thank you in advance
armitatz is offline   Reply With Quote

Old   May 2, 2017, 12:48
Default
  #2
New Member
 
andrew
Join Date: Oct 2015
Posts: 11
Rep Power: 10
armitatz is on a distinguished road
after some digging I found that the major problem is at the last loop which checks every face that belongs to a facezone against every face in the mesh. That in my case creates a very big amount of checks. That is for a mesh with 5.0e+5 internal faces and a 5.0e+7 total faces a total of 25e+12 checks. Even with the early breaks it is a lot of checks...

I rearranged a bit the code in the last loop to perform fewer checks but it still takes hours.


Code:
 forAll(nei, j)
                    {
                       if (c2==own[j])
                       {
                           if (c1==nei[j])
                           {
//                         Info<< "first" << endl;
                              noveau = j;
                              break;
                           }
                       }
                       if (c1==own[j])
                       {
                           if (c2==nei[j])
                           {
                               noveau = j;
                               break;
                           }
                       }
                        }
                    }
                    assert(noveau > -1);
                    indizes[i] = noveau;
                }
A better solution would be to perform a binary search in a sorted list instead of the forAll(nei, j) command but that is beyond my knowledge.

I intend to perform thousands of simulations with meshes like that so every minute counts
Does anyone have anything better to suggest?
armitatz is offline   Reply With Quote

Reply

Tags
big file, conversion, ideasunvtofoam, salome


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
Hex and Tet meshes - simplefoam comparison danvica OpenFOAM Running, Solving & CFD 10 January 4, 2013 01:18
[Commercial meshers] Several problems with the mesh conversion utility when converting the meshes from Gridgen su_junwei OpenFOAM Meshing & Mesh Conversion 2 July 26, 2008 23:58
[Commercial meshers] Converting Gambit Neutral Meshes plmauk OpenFOAM Meshing & Mesh Conversion 2 July 20, 2007 07:08
[Commercial meshers] Converting meshes that includes interfaces ham OpenFOAM Meshing & Mesh Conversion 29 January 8, 2007 08:58
[Commercial meshers] Converting Gambit Neutral Meshes gschaider OpenFOAM Meshing & Mesh Conversion 1 May 12, 2005 12:13


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