OpenFOAM input dictionaries are designed to be human-readable ASCII text files, where the main basic entry types include:
| Type | Description | Example |
|---|---|---|
| boolean | state | on, off, true, false |
| label | integer | 123 |
| scalar | float | 123.456 |
| word | a single word | value |
| string | quoted text | "this is a string value" |
| list | a list of entries bounded by () braces | (0 1 2 3 4 5) |
| vector | a list of 3 values, nominally (x y z) components | (0 0 0) |
| sphericalTensor | a spherical tensor | (0) |
| symmTensor | a symmetric tensor defined by (xx xy xz yy yz zz) | (0 0 0 0 0 0) |
| tensor | a nine component tensor defined by (xx xy xz yx yy yz zx zy zz) | (0 0 0 0 0 0 0 0 0) |
| dictionary | collection of entries bounded by {} braces | { labelType 1; wordType word; scalarType 1.0; } |
| Would you like to suggest an improvement to this page? | Create an issue |
Copyright © 2019 OpenCFD Ltd.