Go to the documentation of this file.
42 #ifndef triSurfaceLoader_H
43 #define triSurfaceLoader_H
56 class triSurfaceLoader;
164 const scalar scaleFactor = -1
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
loadingOption
The file loading options for triSurfaceLoader.
A class for handling words, derived from Foam::string.
A class for handling file names.
static const Enum< loadingOption > loadingOptionNames
The loading enumeration names.
const hashedWordList & available() const
The list of available files.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
"file" = One region for each file
label select(const word &name)
Populates 'selected' with a subset of the available files.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
"merge" = Merge regions by name
~triSurfaceLoader()=default
Destructor.
const hashedWordList & selected() const
The list of selected files.
label readDir()
Read directory and populate the 'available' files.
Convenience class for loading single or multiple surface files from the constant/triSurface (or other...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
"single" = One region for all files
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label selectAll()
Populates 'selected' with all available files.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
"offset" = Offset regions per file
const fileName & directory() const
The directory being used.
autoPtr< triSurface > load(const enum loadingOption opt=loadingOption::OFFSET_REGION, const scalar scaleFactor=-1) const
Load a single file, or load and combine multiple selected files.