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