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

How to use foamDictionary like changeDictionary?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2023, 11:05
Default How to use foamDictionary like changeDictionary?
  #1
Member
 
Niklas Wikstrom
Join Date: Mar 2009
Posts: 86
Rep Power: 17
wikstrom is on a distinguished road
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 */
   }
wikstrom is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 20:23.