changeDictionary.C File Reference

Utility to change dictionary entries, e.g. can be used to change the patch type in the field and polyMesh/boundary files. More...

Go to the source code of this file.

Detailed Description

Utility to change dictionary entries, e.g. can be used to change the patch type in the field and polyMesh/boundary files.

Original source file changeDictionary.C

Reads dictionaries (fields) and entries to change from a dictionary. E.g. to make the movingWall a fixedValue for p but all other Walls a zeroGradient boundary condition, the system/changeDictionaryDict would contain the following:

p                           // field to change
{
    boundaryField
    {
        ".*Wall"            // entry to change
        {
            type            zeroGradient;
        }
        movingWall          // entry to change
        {
            type            fixedValue;
            value           uniform 123.45;
        }
    }
}

Replacement entries starting with '~' will remove the entry.

Usage
changeDictionary [OPTION]

Options:

  • -subDict
    Specify the subDict name of the replacements dictionary.
  • -literalRE
    Do not interpret regular expressions or patchGroups; treat them as any other keyword.
  • -enableFunctionEntries
    Enable function entries (default: disabled)
  • -disablePatchGroups
    Disable the default checking for keys being patchGroups
    Note
    changeDictionary has been superseded by foamDictionary and is now deprecated.

Definition in file changeDictionary.C.