Skip to main content

Input types

Input types

OpenFOAM input dictionaries are designed to be human-readable ASCII text files, consisting of collections of keyword-value entries bounded by curly braces {}, e.g.

dictionary_name
{
labelType 1;
scalarType 1.0;
vectorType (0 0 0);
wordType word;
stringType "string";
...
}

The main basic entry types include:

TypeDescriptionExample
booleanstateon, off, true, false
labelinteger123
scalarfloat123.456
worda single wordvalue
stringquoted text"this is a string value"
lista list of entries bounded by () braces(0 1 2 3 4 5)
vectora list of 3 values, nominally (x y z) components(0 0 0)
sphericalTensora spherical tensor(0)
symmTensora symmetric tensor defined by (xx xy xz yy yz zz)(0 0 0 0 0 0)
tensora nine component tensor defined by (xx xy xz yx yy yz zx zy zz)(0 0 0 0 0 0 0 0 0)

Expressions

See expressions

Function1 types

See Function1s