59 #ifndef Foam_ensightSurfaceReader_H 60 #define Foam_ensightSurfaceReader_H 77 class ensightSurfaceReader
157 const word& expected,
158 const string& buffer,
189 const word& fieldName,
198 const label fieldIndex
251 const label fieldIndex,
259 const label fieldIndex,
267 const label fieldIndex,
275 const label fieldIndex,
283 const label fieldIndex,
296 #include "ensightSurfaceReader.txx" Use "given" values (not supported)
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...
instantList timeValues_
Times.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
IOstreamOption::streamFormat readFormat_
Format flag.
List< string > fieldFileNames_
Field file names.
A traits class, which is primarily used for primitives and vector-space.
bool masterOnly_
Read on master and broadcast (in parallel)
List< word > fieldNames_
Field names.
virtual const meshedSurface & geometry(const label timeIndex)
Return a reference to the surface geometry.
static void checkSection(const word &expected, const string &buffer, const ISstream &is)
Check a section header.
static bool readLine(ISstream &is, std::string &line)
Helper function to read an ascii line from file, skipping blank lines and comments.
fileName meshFileName_
Name of mesh file, including any subdirectory.
TypeName("ensight")
Runtime type information.
autoPtr< meshedSurface > surfPtr_
Pointer to the surface.
A class for handling words, derived from Foam::string.
bool vertexOnly_
Retain 1D vertex/point elements, no faces.
labelList vertexElements_
Has these 1D vertex/point elements.
A variant of IFstream with specialised handling for Ensight reading of strings, integers and floats (...
Ensight format surface reader.
Pair< idTypes > readGeometryHeader(ensightReadFile &is) const
Read (and discard) geometry file header.
idTypes
Handling of node/element id types (off, assign, ignore, given)
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.
List< labelPair > fieldTimesets_
The timeset/fileset (if any) associated with fields.
tmp< Field< Type > > readField(const fileName &dataFile, const word &fieldName, const label timeIndex=0) const
Helper function to return a field.
virtual instantList times() const
Return a list of the available times.
Generic input stream using a standard (STL) stream.
virtual wordList fieldNames(const label timeIndex) const
Return a list of the available fields at a given time.
labelList fileNumbers_
Numbers for files.
void readCase(ISstream &is)
Read the case file.
streamFormat
Data format (ascii | binary | coherent)
labelPair meshTimeset_
The timeset/fileset (if any) associated with the mesh.
static void debugSection(const word &expected, ISstream &is)
Read and check a section header.
virtual ~ensightSurfaceReader()=default
Destructor.
ensightSurfaceReader(const ensightSurfaceReader &)=delete
No copy construct.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
Tensor of scalars, i.e. Tensor<scalar>.
List< labelPair > elemTypeInfo_
List of (element-type, count) tuples.
meshedSurface readGeometry(const fileName &geometryFile, const label timeIndex=0)
Read and return surface geometry.
virtual label nVertexElements() const
The number of 1D vertex/point elements for the last geometry read. Non-zero when the surface reader i...
void operator=(const ensightSurfaceReader &)=delete
No copy assignment.
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.