mimmo::VTUGridReader Class Reference

Custom reader of unstructured grids from external files *.vtu. More...

#include <VTUGridReader.hpp>

Inheritance diagram for mimmo::VTUGridReader:
Collaboration diagram for mimmo::VTUGridReader:

Public Member Functions

 VTUGridReader (std::string dir, std::string name, VTUAbsorbStreamer &streamer, bitpit::PatchKernel &patch, bool masterRankOnly=true, bitpit::VTKElementType eltype=bitpit::VTKElementType::UNDEFINED)
 
 ~VTUGridReader ()
 
void read ()
 

Detailed Description

Custom reader of unstructured grids from external files *.vtu.

Reader of unstructured grids from external files *.vtu. if successfull reading, store the mesh fields in target bitpit::Patchkernel data structure. Need in construction to specify a streamer of type VTUAbsorbStreamer.

Definition at line 102 of file VTUGridReader.hpp.

Constructor & Destructor Documentation

◆ VTUGridReader()

mimmo::VTUGridReader::VTUGridReader ( std::string  dir,
std::string  name,
VTUAbsorbStreamer streamer,
bitpit::PatchKernel &  patch,
bool  masterRankOnly = true,
bitpit::VTKElementType  eltype = bitpit::VTKElementType::UNDEFINED 
)

Base constructor. Linked reference bitpit::PatchKernel container must be empty. If not, class will provide to destroy its previous contents and fill it with new read values.

Parameters
[in]dirtarget directory of file to be read
[in]namename fo the file to be read.
[in]patchreference to empty container for storing mesh data.
[in]streamerstreaming class to absorb VTK data.
[in]eltype[optional] force the elementtype of the grid.
[in]masterRankOnly[optional, for MPI version only] if true skip default searching for parallel *.pvtu format and search for regular file *vtu to be retained on master rank only (0 rank processor). Transparent for serial versions.

Definition at line 466 of file VTUGridReader.cpp.

◆ ~VTUGridReader()

mimmo::VTUGridReader::~VTUGridReader ( )

Basic Destructor

Definition at line 503 of file VTUGridReader.cpp.

Member Function Documentation

◆ read()

void mimmo::VTUGridReader::read ( )

Read the file. Reimplemented from bitpit::VTKUnstructuredGrid::read().

Definition at line 508 of file VTUGridReader.cpp.


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