CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

changeDictionaryDict, adjust BC in processorX folders?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2013, 07:22
Default changeDictionaryDict, adjust BC in processorX folders?
  #1
Member
 
phil
Join Date: Oct 2013
Posts: 36
Rep Power: 12
gelbebanane is on a distinguished road
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

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

Greetings
gelbebanane is offline   Reply With Quote

Old   February 10, 2014, 02:46
Default
  #2
Member
 
phil
Join Date: Oct 2013
Posts: 36
Rep Power: 12
gelbebanane is on a distinguished road
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.
gelbebanane is offline   Reply With Quote

Old   February 10, 2014, 05:53
Default
  #3
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
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
olivierG is offline   Reply With Quote

Reply

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
how to export every data w.r.t time to txt file jaho CFX 94 August 25, 2015 09:45
how to put time folders in a unique folder immortality OpenFOAM Post-Processing 9 August 14, 2013 05:03
preventing of writing of excess folders immortality OpenFOAM Post-Processing 3 July 29, 2013 10:56
Strategy for keeping track of files and folders? Dre CFX 1 October 30, 2008 13:00
Help with ADJUST FUNCTION Munir Ahmed Khan FLUENT 0 August 8, 2008 06:33


All times are GMT -4. The time now is 04:03.