set_dict
Edit OpenFOAM dictionary entries safely via foamDictionary, setting, adding, or removing values and reading back the new data.
Instructions
Edit dictionary entries safely via foamDictionary (set/add/remove), then read back the new values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | Entries to set or add: {'endTime': '2000', 'boundaryField/inlet/value': 'uniform (5 0 0)', 'RAS/model': 'kOmegaSST', 'boundaryField/outlet': '{ type zeroGradient; }'}. Values use OpenFOAM syntax without the trailing ';'. | |
| case | Yes | Case name in the workspace (e.g. 'pitzDaily') or an absolute path inside an allowed root. | |
| file | Yes | Dictionary path relative to the case, e.g. 'system/controlDict', '0/U', 'constant/momentumTransport'. | |
| remove | No | Entry paths to remove. |