- replaced ad hoc handling of formatOptions with coordSetWriter and surfaceWriter helpers. Accompanying this change, it is now possible to specify "default" settings to be inherited, format-specific settings and have a similar layering with surface-specific overrides. - snappyHexMesh now conforms to setFormats Eg, formatOptions { default { verbose true; format binary; } vtk { precision 10; } } surfaces { surf1 { ... formatOptions { ensight { scale 1000; } } } }
20 lines
498 B
C
20 lines
498 B
C
// Read particleTrackDict dictionary and extract values from it
|
|
|
|
const word dictName("particleTrackDict");
|
|
|
|
#include "setConstantMeshDictionaryIO.H"
|
|
|
|
IOdictionary propsDict(dictIO);
|
|
|
|
const word cloudName(propsDict.get<word>("cloud"));
|
|
|
|
// Mandatory - if empty, select none
|
|
wordRes acceptFields(propsDict.get<wordRes>("fields"));
|
|
|
|
// Optional
|
|
wordRes excludeFields;
|
|
propsDict.readIfPresent("exclude", excludeFields);
|
|
|
|
|
|
// ************************************************************************* //
|