|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: May 2013
Posts: 23
Rep Power: 13 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 129 ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: May 2013
Posts: 23
Rep Power: 13 ![]() |
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 ![]() I will try with the scripting and let you know ! |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 129 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
||
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Join Date: May 2013
Posts: 23
Rep Power: 13 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 13 ![]() |
Quote:
how do you invert a set in OpenFoam? Thanks for your help, Kate |
||
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 13 ![]() |
Hello,
I got the answer from the openfoamwiki: Code:
setSet Command>cellSet younameit invert Command>quit Kate |
|
![]() |
![]() |
![]() |
Tags |
cellzones, chtmultiregionsimplefoam, mergemeshes, splitmeshregions |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 06:09 |
[snappyHexMesh] multiple regions | Tobi | OpenFOAM Meshing & Mesh Conversion | 56 | March 29, 2020 04:53 |
[snappyHexMesh] Using snappyHexMesh for multiple enclosed regions | richard_vega | OpenFOAM Meshing & Mesh Conversion | 0 | November 13, 2014 14:28 |
blockCoupled solver for multiple regions | benk | OpenFOAM | 2 | February 13, 2014 22:35 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |