Merge multiple regions to use simpleFoam
Hello all,
I would like an advice to execute a mesh operation on openfoam. I am working only with fluid regions and want to execute simpleFoam solver. I have got a mesher which can directly export to openfoam :). But instead of exporting only one mesh with the different regions stored into the "cellZones" file (which is what I want), it exports one mesh for each region, and without creating a "cellZones" file :( So, do you know a quick workaround to perform this operation ? What can work I think is *Add a minor mesh to the master mesh using mergeMeshes *Use a topoSetDict file to write the different cellZones What do you think about it ? It may work but it will be very painful and time consuming as I have more than 15 regions to merge !! Is there a quicker way ? In fact if I think about it, what I want to do is the exact inverse operation of splitMeshRegions ! Or maybe I should use chtMultiRegionSimpleFoam ? I have never used it ... Is it as fast as using the simpleFoam solver? |
Hi Arnaud6,
I see that this issue is somewhat related to this thread: http://www.cfd-online.com/Forums/ope...-boundary.html Let me start in reverse order:
Bruno |
Hi Wyldckat
Thanks for being everywhere on the forum and giving great advice ! So, from what you are saying, I will stick to using mergeMeshes to build a master mesh then running simpleFoam. In fact I have just seen that I can run mergeMeshes <masterCase> <addCase> -addRegion region1 -addRegion region 2 .... And specifying all the regions to merge in one command. So that I need to run the utility only once ! And after, as I need the cellZones to apply on them different treatment on the fvOptions file (I need an MRF cellZone), I will use the setSet I think. Do you know if from an inside point of a region, I can select select all the cells of the region ? That would do the trick ! For your last question, unfortunately, I have almost no control on the mesher http://www.cfd-online.com/Forums/images/icons/icon9.gif. And it is only exporting the multi region to multiple meshes instead of exporting only one mesh with multiple cellZones ! I will try with the scripting and let you know ! |
Quote:
Code:
setSet -region region_name Problem is that when the merging process is used, I don't know if the cellSetZone will be translated accordingly, or not, to the new cell ID in the new merged mesh. |
Well it's strange, I have made some tests with mergeMeshes and openfoam complained about an imaginary missing boundary.
Sorry Wyldckat, I have abandonned this way of working for the moment and I am concentrating on playing in a different way. I ll let you know when I come back to this issue. |
Quote:
how do you invert a set in OpenFoam? Thanks for your help, Kate |
Hello,
I got the answer from the openfoamwiki: Code:
setSet Kate |
All times are GMT -4. The time now is 07:27. |