Custom mesh/data absorber for unstructured grids given by external files *.vtu. More...
#include <VTUGridReader.hpp>
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()
|
virtual |
Base Destructor
Definition at line 62 of file VTUGridReader.cpp.
◆ VTUGridStreamer() [2/2]
|
default |
Copy Constructor
Member Function Documentation
◆ absorbData()
|
virtual |
Absorber of VTU mesh data. Reimplemented from bitpit::VTKBaseStreamer class
- Parameters
-
[in] stream stream to read from [in] name name of the geometry field [in] format ASCII or APPENDED [in] entries number of entries for data container [in] components number of components of current data container [in] datatype data format for binary casting
Reimplemented from mimmo::VTUAbsorbStreamer.
Definition at line 74 of file VTUGridReader.cpp.
◆ decodeRawData()
|
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] patch container 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] stream from vtu file [in] format ASCII or APPENDED [in] datatype meant for appended absorption only [out] target long 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] stream from vtu file [in] format ASCII or APPENDED [in] datatype meant for appended absorption only [out] target long pod for returning read datum
Definition at line 351 of file VTUGridReader.cpp.
Member Data Documentation
◆ cellsID
|
protected |
labels of mesh cells, if any
Definition at line 69 of file VTUGridReader.hpp.
◆ connectivitylist
|
protected |
one dimensional list of all vertex indices composing connectivity
Definition at line 67 of file VTUGridReader.hpp.
◆ faceoffsets
|
protected |
list of offsets to read face vertex connectivity - for 3D volume polyhedral support
Definition at line 74 of file VTUGridReader.hpp.
◆ faces
|
protected |
list of face vertex connectivity - for 3D volume polyhedral support
Definition at line 73 of file VTUGridReader.hpp.
◆ offsets
|
protected |
offset list for decoding connectivity list
Definition at line 71 of file VTUGridReader.hpp.
◆ pids
|
protected |
cell pid, if any
Definition at line 70 of file VTUGridReader.hpp.
◆ points
|
protected |
list of mesh nodes
Definition at line 66 of file VTUGridReader.hpp.
◆ pointsID
|
protected |
labels of mesh nodes, if any
Definition at line 68 of file VTUGridReader.hpp.
◆ 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:
- src/core/VTUGridReader.hpp
- src/core/VTUGridReader.cpp