37#ifndef surfaceReader_H
38#define surfaceReader_H
116 const label fieldIndex,
124 const label fieldIndex,
132 const label fieldIndex,
140 const label fieldIndex,
148 const label fieldIndex,
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
Base class for surface readers.
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.
declareRunTimeSelectionTable(autoPtr, surfaceReader, fileName,(const fileName &fName),(fName))
virtual wordList fieldNames(const label timeIndex) const =0
Return a list of the available fields at a given time.
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.
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.
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 autoPtr< surfaceReader > New(const word &readType, const fileName &fName)
Return a reference to the selected surfaceReader.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
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)
A non-counting (dummy) refCount.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.