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:

Definition in file changeDictionary.C.