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,
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
A traits class, which is primarily used for primitives and vector-space.
virtual instantList times() const =0
Return a list of the available times.
virtual tmp< Field< sphericalTensor > > field(const label timeIndex, const label fieldIndex, const sphericalTensor &refValue=pTraits< sphericalTensor >::zero) const =0
Return a sphericalTensor field at a given time.
virtual tmp< Field< vector > > field(const label timeIndex, const label fieldIndex, const vector &refValue=pTraits< vector >::zero) const =0
Return a vector field at a given time.
virtual wordList fieldNames(const label timeIndex) const =0
Return a list of the available fields at a given time.
surfaceReader(const fileName &fName)
Construct from fileName.
virtual tmp< Field< symmTensor > > field(const label timeIndex, const label fieldIndex, const symmTensor &refValue=pTraits< symmTensor >::zero) const =0
Return a symmTensor field at a given time.
declareRunTimeSelectionTable(autoPtr, surfaceReader, fileName,(const fileName &fName, const dictionary &options),(fName, options))
virtual const meshedSurface & geometry(const label timeIndex)=0
Return a reference to the surface geometry.
virtual ~surfaceReader()=default
Destructor.
virtual tmp< Field< tensor > > field(const label timeIndex, const label fieldIndex, const tensor &refValue=pTraits< tensor >::zero) const =0
Return a tensor field at a given time.
static autoPtr< surfaceReader > New(const word &readType, const fileName &fName, const dictionary &options=dictionary())
Return a reference to the selected surfaceReader.
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.
fileName fileName_
File name.
TypeName("surfaceReader")
Runtime type information.
static dictionary formatOptions(const dictionary &dict, const word &formatName, const word &entryName="formatOptions")
Same as fileFormats::getFormatOptions.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
List< word > wordList
List of word.
List< instant > instantList
List of instants.
MeshedSurface< face > meshedSurface
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.