createControls.H
Go to the documentation of this file.
1// Read particleTrackProperties dictionary and extract values from it
2
3const word dictName("particleTrackProperties");
4
6
7IOdictionary propsDict(dictIO);
8
9const word cloudName(propsDict.get<word>("cloud"));
10
11label sampleFrequency(propsDict.get<label>("sampleFrequency"));
12
13label maxPositions(propsDict.get<label>("maxPositions"));
14
15label maxTracks(propsDict.getOrDefault<label>("maxTracks", -1));
16
17word setFormat(propsDict.getOrDefault<word>("setFormat", "vtk"));
18
19// Optional - if empty, select all
21propsDict.readIfPresent("fields", acceptFields);
22
23// Optional
25propsDict.readIfPresent("exclude", excludeFields);
26
27const word UName(propsDict.getOrDefault<word>("U", "U"));
28
29const dictionary formatOptions
30(
31 propsDict.subOrEmptyDict("formatOptions", keyType::LITERAL)
32);
33
34
35// ************************************************************************* //
IOobject dictIO
label maxTracks(propsDict.getOrDefault< label >("maxTracks", -1))
label maxPositions(propsDict.get< label >("maxPositions"))
IOdictionary propsDict(dictIO)
wordRes excludeFields
const word dictName("particleTrackProperties")
label sampleFrequency(propsDict.get< label >("sampleFrequency"))
word setFormat(propsDict.getOrDefault< word >("setFormat", "vtk"))
wordRes acceptFields
const word UName(propsDict.getOrDefault< word >("U", "U"))
const dictionary formatOptions(propsDict.subOrEmptyDict("formatOptions", keyType::LITERAL))
const word cloudName(propsDict.get< word >("cloud"))