56 #ifndef Foam_ensightSurfaceReader_H 57 #define Foam_ensightSurfaceReader_H 74 class ensightSurfaceReader
171 const string& buffer,
180 const word& fieldName
188 const label fieldIndex
227 const label fieldIndex,
235 const label fieldIndex,
243 const label fieldIndex,
251 const label fieldIndex,
259 const label fieldIndex,
Use "given" values (not supported)
virtual wordList fieldNames(const label timeIndex) const
Return a list of the available fields at a given time.
A class for handling file names.
fileName baseDir_
Base directory.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
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.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
IOstreamOption::streamFormat readFormat_
Format flag.
List< string > fieldFileNames_
Field file names.
A traits class, which is primarily used for primitives.
bool masterOnly_
Read on master and broadcast (in parallel)
List< word > fieldNames_
Field names.
void readLine(ISstream &is, string &buffer) const
Helper function to read an ascii line from file.
tmp< Field< Type > > readField(const fileName &dataFile, const word &fieldName) const
Helper function to return a field.
fileName meshFileName_
Name of mesh file, including any subdirectory.
TypeName("ensight")
Runtime type information.
autoPtr< meshedSurface > surfPtr_
Pointer to the surface.
void debugSection(const word &expected, ISstream &is) const
Read and check a section header.
ensightSurfaceReader(const fileName &fName, const dictionary &options=dictionary())
Construct from fileName, with reader options.
An ordered pair of two objects of type <T> with first() and second() elements.
A class for handling words, derived from Foam::string.
A variant of IFstream with specialised read() for strings, integers and floats. Correctly handles bin...
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.
label timeStartIndex_
Start time index.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
label timeIncrement_
Time increment.
label nTimeSteps_
Number of time steps.
virtual instantList times() const
Return a list of the available times.
Generic input stream using a standard (STL) stream.
Tuple2< ensightFaces::elemType, label > faceInfoTuple
Tuple of face type (tria3, quad4, nsided) and count.
List< faceInfoTuple > faceTypeInfo_
List of face-type/count tuples.
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.
void readCase(ISstream &is)
Read the case file.
streamFormat
Data format (ascii | binary)
static fileName replaceMask(const fileName &fName, const label timeIndex)
Replace the '*' mask chars with a 0 padded string.
virtual ~ensightSurfaceReader()=default
Destructor.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
void readFromLine(const label nSkip, Istream &is, Type &value) const
Helper function to return Type after skipping n tokens.
A class for managing temporary objects.
meshedSurface readGeometry(const fileName &geometryFile)
Read and return surface geometry. Updates faceTypeInfo_.
Tensor of scalars, i.e. Tensor<scalar>.