Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Automating boundary conditions writing

This prectice it is not necessary, but usually multiple regions in CHT studies are present and manually managing the 0 directory dictionaries can be overwhelming. The utility changeDictionary can be used to generate a set of dictionary from a sample:

for region in $(foamListRegions)
do
  changeDictionary -region $region
done

To make this utility working your “system” directory must instanciate a similar layout:

system
│
├── regionName1
│   ├── changeDictionaryDict
│   ├── decomposeParDict -> ../decomposeParDict
│   ├── fvOptions -> ../fvOptions
│   ├── fvSchemes
│   └── fvSolution
├── regionName2
│   ├── changeDictionaryDict
│   ├── createBafflesDict
│   ├── decomposeParDict -> ../decomposeParDict
│   ├── fvOptions -> ../fvOptions
│   ├── fvSchemes
│   └── fvSolution
├── topoSetDict
├── controlDict
└── ...