mimmo::VTUGridStreamer Class Reference

Custom mesh/data absorber for unstructured grids given by external files *.vtu. More...

#include <VTUGridReader.hpp>

Inheritance diagram for mimmo::VTUGridStreamer:
Collaboration diagram for mimmo::VTUGridStreamer:

Public Member Functions

 VTUGridStreamer ()
 
 VTUGridStreamer (const VTUGridStreamer &)=default
 
virtual ~VTUGridStreamer ()
 
virtual void absorbData (std::fstream &stream, const std::string &name, bitpit::VTKFormat format, uint64_t entries, uint8_t components, bitpit::VTKDataType datatype)
 
void decodeRawData (bitpit::PatchKernel &patch)
 
void readDoublePod (std::fstream &stream, bitpit::VTKFormat &format, bitpit::VTKDataType &datatype, double &target)
 
void readIntegerPod (std::fstream &stream, bitpit::VTKFormat &format, bitpit::VTKDataType &datatype, long &target)
 
- Public Member Functions inherited from mimmo::VTUAbsorbStreamer
 VTUAbsorbStreamer ()
 
 VTUAbsorbStreamer (const VTUAbsorbStreamer &)=default
 
virtual ~VTUAbsorbStreamer ()
 

Protected Attributes

livector1D cellsID
 
livector1D connectivitylist
 
livector1D faceoffsets
 
livector1D faces
 
livector1D offsets
 
livector1D pids
 
dvecarr3E points
 
livector1D pointsID
 
std::vector< bitpit::ElementType > types
 

Detailed Description

Custom mesh/data absorber for unstructured grids given by external files *.vtu.

Read unstructured mesh data only from an external file vtu (any other data will be skipped). Data will be stored in internal structures of the streamer.

Definition at line 63 of file VTUGridReader.hpp.

Constructor & Destructor Documentation

◆ VTUGridStreamer() [1/2]

mimmo::VTUGridStreamer::VTUGridStreamer ( )

Base Constructor

Definition at line 57 of file VTUGridReader.cpp.

◆ ~VTUGridStreamer()

mimmo::VTUGridStreamer::~VTUGridStreamer ( )
virtual

Base Destructor

Definition at line 62 of file VTUGridReader.cpp.

◆ VTUGridStreamer() [2/2]

mimmo::VTUGridStreamer::VTUGridStreamer ( const VTUGridStreamer )
default

Copy Constructor

Member Function Documentation

◆ absorbData()

void mimmo::VTUGridStreamer::absorbData ( std::fstream &  stream,
const std::string &  name,
bitpit::VTKFormat  format,
uint64_t  entries,
uint8_t  components,
bitpit::VTKDataType  datatype 
)
virtual

Absorber of VTU mesh data. Reimplemented from bitpit::VTKBaseStreamer class

Parameters
[in]streamstream to read from
[in]namename of the geometry field
[in]formatASCII or APPENDED
[in]entriesnumber of entries for data container
[in]componentsnumber of components of current data container
[in]datatypedata format for binary casting

Reimplemented from mimmo::VTUAbsorbStreamer.

Definition at line 74 of file VTUGridReader.cpp.

◆ decodeRawData()

void mimmo::VTUGridStreamer::decodeRawData ( bitpit::PatchKernel &  patch)
virtual

Use streamer absorbed data, if any, to fill vertices and cells info of target bitpit::PatchKernel container, passed externally. Please notice, container must be empty.

Parameters
[in]patchcontainer for mesh

Implements mimmo::VTUAbsorbStreamer.

Definition at line 208 of file VTUGridReader.cpp.

◆ readDoublePod()

void mimmo::VTUGridStreamer::readDoublePod ( std::fstream &  stream,
bitpit::VTKFormat &  format,
bitpit::VTKDataType &  datatype,
double &  target 
)

Read an integer pod from stream of VTU

Parameters
[in]streamfrom vtu file
[in]formatASCII or APPENDED
[in]datatypemeant for appended absorption only
[out]targetlong pod for returning read datum

Definition at line 424 of file VTUGridReader.cpp.

◆ readIntegerPod()

void mimmo::VTUGridStreamer::readIntegerPod ( std::fstream &  stream,
bitpit::VTKFormat &  format,
bitpit::VTKDataType &  datatype,
long &  target 
)

Read an integer pod from stream of VTU

Parameters
[in]streamfrom vtu file
[in]formatASCII or APPENDED
[in]datatypemeant for appended absorption only
[out]targetlong pod for returning read datum

Definition at line 351 of file VTUGridReader.cpp.

Member Data Documentation

◆ cellsID

livector1D mimmo::VTUGridStreamer::cellsID
protected

labels of mesh cells, if any

Definition at line 69 of file VTUGridReader.hpp.

◆ connectivitylist

livector1D mimmo::VTUGridStreamer::connectivitylist
protected

one dimensional list of all vertex indices composing connectivity

Definition at line 67 of file VTUGridReader.hpp.

◆ faceoffsets

livector1D mimmo::VTUGridStreamer::faceoffsets
protected

list of offsets to read face vertex connectivity - for 3D volume polyhedral support

Definition at line 74 of file VTUGridReader.hpp.

◆ faces

livector1D mimmo::VTUGridStreamer::faces
protected

list of face vertex connectivity - for 3D volume polyhedral support

Definition at line 73 of file VTUGridReader.hpp.

◆ offsets

livector1D mimmo::VTUGridStreamer::offsets
protected

offset list for decoding connectivity list

Definition at line 71 of file VTUGridReader.hpp.

◆ pids

livector1D mimmo::VTUGridStreamer::pids
protected

cell pid, if any

Definition at line 70 of file VTUGridReader.hpp.

◆ points

dvecarr3E mimmo::VTUGridStreamer::points
protected

list of mesh nodes

Definition at line 66 of file VTUGridReader.hpp.

◆ pointsID

livector1D mimmo::VTUGridStreamer::pointsID
protected

labels of mesh nodes, if any

Definition at line 68 of file VTUGridReader.hpp.

◆ types

std::vector<bitpit::ElementType> mimmo::VTUGridStreamer::types
protected

list of cell types

Definition at line 72 of file VTUGridReader.hpp.


The documentation for this class was generated from the following files: