|
[Sponsors] |
How to use foamDictionary like changeDictionary? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Niklas Wikstrom
Join Date: Mar 2009
Posts: 86
Rep Power: 17 ![]() |
Hello,
Using OpenFOAM (.org) version 10, I'm trying to perform bulk dictionary merging using foamDictionary. Previously I've used changeDictionary to e.g. put boundaries in patchGroups based on the patch name. That was neatly done with a changeDictionaryDict like the example below. Does anyone have suggestions how to do this using foamDictionary? Many thanks /Niklas Code:
/* system/changeDictionaryDict */ boundary { "(.*[Ii]nlet.*|.*[Ii]nflow.*)" { type patch; inGroups 1 ( inflowGroup ); } "(.*[Oo]utlet.*|.*[Oo]utflow.*)" { type patch; inGroups 1 ( outflowGroup ); } "(.*[Ss]lip.*)" { type wall; inGroups 1 ( slipGroup ); } ".*2[Dd].*" { type empty; } /* And so on */ } |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
changeDictionary or foamDictionary | uosilos | OpenFOAM Running, Solving & CFD | 2 | March 2, 2022 03:30 |
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." | lethu | OpenFOAM Meshing & Mesh Conversion | 1 | June 3, 2020 07:49 |
[OpenFOAM.com] OpenFOAMv1806 with amd aocc 1.2 / 1.3 compiler | cfdx | OpenFOAM Installation | 10 | February 27, 2019 04:59 |
Fatal error: invalid wall function specification | kcc49 | OpenFOAM Running, Solving & CFD | 13 | September 26, 2018 04:07 |
chtMultiRegionSimpleFoam: crash on parallel run | student666 | OpenFOAM Running, Solving & CFD | 3 | April 20, 2017 11:05 |