CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   changeDictionaryDict, adjust BC in processorX folders? (https://www.cfd-online.com/Forums/openfoam-pre-processing/127045-changedictionarydict-adjust-bc-processorx-folders.html)

gelbebanane December 2, 2013 07:22

changeDictionaryDict, adjust BC in processorX folders?
 
Hi there,
i struggle to adjuste my BC.
As in the snappyHexMeshDict file it is written, I cannot define my patches inside it as cyclic, mapped etc.
I found a way to edit it with the changeDictionaryDict. The only problem is, when i create my snappy mesh decomposed in parallel, the changeDictionaryDict command does not change the BC inside the processorX/0 folders as well. And when i edit the BC in /0 before decomposing i get errors about non existing patches!

So my question is:
I really dont want to edit the whole files manually. Is there any other way to change the BC in a decomposed case after running snappyHexMesh or is there even a possibility to define my BC as cyclic mapped etc inside the snappyHexMeshDict :eek:

(you can find a changeDictionaryDict File in the tutorial /heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict)

Greetings

gelbebanane February 10, 2014 02:46

Ok so i will answer the question for myself.

First of all i wanted to use mapped BC but thats not anymore neccessary for me so i use createPatch to edit my BC file.

But for other users i will still answer my question.

First of all run snappy with "snappyHexMesh -overwrite" in parallel. Afterwards you have to "reconstructParMesh -constant" the mesh and then you can delete the processor* folders.
Now we use "changeDictionary" and everything works now.
After we changed our boundary file, we now can decompose the case again with the new boundary file.

Greetings

p.s. you can find an example file of changeDictionaryDict in the applications/utilities... folders of your OF installation.

olivierG February 10, 2014 05:53

hello,

In parallel juste use the "-parallel" option of changeDictionary, just as most OF tools work with // cases.
( so the commande line will be "mpirun -np X changeDictionary -parallel")

regards,
olivier


All times are GMT -4. The time now is 19:33.