mimmo::VTUGridWriterASCII Class Reference

Custom writer of ASCII unstructured grids to external files *.vtu. More...

#include <VTUGridWriterASCII.hpp>

Inheritance diagram for mimmo::VTUGridWriterASCII:
Collaboration diagram for mimmo::VTUGridWriterASCII:

Public Member Functions

 VTUGridWriterASCII (VTUFlushStreamerASCII &streamer, bitpit::PatchKernel &patch, bitpit::VTKElementType eltype=bitpit::VTKElementType::UNDEFINED)
 
 ~VTUGridWriterASCII ()
 
void write (const std::string &dir, const std::string &file, bitpit::VTKWriteMode mode=bitpit::VTKWriteMode::DEFAULT)
 

Detailed Description

Custom writer of ASCII unstructured grids to external files *.vtu.

Writer of bitpit::PatchKernel 's as unstructured grids to external files *.vtu in ASCII format only.

Definition at line 63 of file VTUGridWriterASCII.hpp.

Constructor & Destructor Documentation

◆ VTUGridWriterASCII()

mimmo::VTUGridWriterASCII::VTUGridWriterASCII ( VTUFlushStreamerASCII streamer,
bitpit::PatchKernel &  patch,
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]streamerstreaming class to absorb VTK data.
[in]patchreference to empty container for storing mesh data.
[in]eltype[optional] force the elementtype of the grid.

Definition at line 226 of file VTUGridWriterASCII.cpp.

◆ ~VTUGridWriterASCII()

mimmo::VTUGridWriterASCII::~VTUGridWriterASCII ( )

Basic Destructor

Definition at line 312 of file VTUGridWriterASCII.cpp.

Member Function Documentation

◆ write()

void mimmo::VTUGridWriterASCII::write ( const std::string &  dir,
const std::string &  file,
bitpit::VTKWriteMode  mode = bitpit::VTKWriteMode::DEFAULT 
)

Write to file. Overloading of VTK::write();

Parameters
[in]dirpath to write.
[in]filename of file to write.
[in]modevtk writing mode.

Definition at line 320 of file VTUGridWriterASCII.cpp.


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