Go to the documentation of this file.
37 #ifndef ensightSurfaceReader_H
38 #define ensightSurfaceReader_H
143 const string& buffer,
152 const label fieldIndex
187 const label fieldIndex,
195 const label fieldIndex,
203 const label fieldIndex,
211 const label fieldIndex,
219 const label fieldIndex,
fileName meshFileName_
Name of mesh file, including any subdirectory.
List< Tuple2< string, label > > schema_
Base class for surface readers.
A class for handling words, derived from Foam::string.
A class for handling file names.
static fileName replaceMask(const fileName &fName, const label timeIndex)
Replace the '*' mask chars with a 0 padded string.
A class for managing temporary objects.
Input from file stream, using an ISstream.
idTypes
Handling of node/element id types (off, assign, ignore, given)
void skip(const label n, Istream &is) const
Helper function to skip forward n steps in stream.
void readLine(IFstream &is, string &buffer) const
Helper function to read an ascii line from file.
Input/output from string buffers.
void readCase(IFstream &is)
Read the case file.
virtual wordList fieldNames(const label timeIndex) const
Return a list of the available fields at a given time.
label timeStartIndex_
Start time index.
ensightSurfaceReader(const fileName &fName)
Construct from fileName.
virtual instantList times() const
Return a list of the available times.
Ensight output with specialized read() for strings, integers and floats. Correctly handles binary rea...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual ~ensightSurfaceReader()=default
Destructor.
fileName baseDir_
Base directory.
virtual const meshedSurface & geometry(const label timeIndex)
Return a reference to the surface geometry.
Pair< idTypes > readGeometryHeader(ensightReadFile &is) const
Read (and discard) geometry file header.
Ensight format surface reader.
IOstreamOption::streamFormat streamFormat_
Format flag.
Use "given" values (not supported)
void debugSection(const word &expected, IFstream &is) const
Read and check a section header.
streamFormat
Data format (ascii | binary)
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void readFromLine(const label nSkip, IStringStream &is, Type &value) const
Helper function to return Type after skipping n tokens.
An ordered pair of two objects of type <T> with first() and second() elements.
autoPtr< meshedSurface > surfPtr_
Pointer to the surface.
A traits class, which is primarily used for primitives.
tmp< Field< Type > > readField(const label timeIndex, const label fieldIndex) const
Helper function to return a field.
List< string > fieldFileNames_
Field file names.
instantList timeValues_
Times.
virtual tmp< Field< scalar > > field(const label timeIndex, const label fieldIndex, const scalar &refValue=pTraits< scalar >::zero) const
Return a scalar field at a given time.
label nTimeSteps_
Number of time steps.
List< word > fieldNames_
Field names.
TypeName("ensight")
Runtime type information.
label timeIncrement_
Time increment.