55 #ifndef Foam_surfaceReader_H 56 #define Foam_surfaceReader_H 107 const word& formatName,
108 const word& entryName =
"formatOptions" 117 const word& readType,
151 const label fieldIndex,
159 const label fieldIndex,
167 const label fieldIndex,
175 const label fieldIndex,
183 const label fieldIndex,
declareRunTimeSelectionTable(autoPtr, surfaceReader, fileName,(const fileName &fName, const dictionary &options),(fName, options))
A class for handling file names.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
surfaceReader(const fileName &fName)
Construct from fileName.
A traits class, which is primarily used for primitives.
virtual ~surfaceReader()=default
Destructor.
virtual wordList fieldNames(const label timeIndex) const =0
Return a list of the available fields at a given time.
TypeName("surfaceReader")
Runtime type information.
A class for handling words, derived from Foam::string.
virtual const meshedSurface & geometry(const label timeIndex)=0
Return a reference to the surface geometry.
virtual instantList times() const =0
Return a list of the available times.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static dictionary formatOptions(const dictionary &dict, const word &formatName, const word &entryName="formatOptions")
Same as fileFormats::getFormatOptions.
static autoPtr< surfaceReader > New(const word &readType, const fileName &fName, const dictionary &options=dictionary())
Return a reference to the selected surfaceReader.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
fileName fileName_
File name.
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Tensor of scalars, i.e. Tensor<scalar>.
Abstract base class for surface readers with fields.
virtual tmp< Field< scalar > > field(const label timeIndex, const label fieldIndex, const scalar &refValue=pTraits< scalar >::zero) const =0
Return a scalar field at a given time.