walberla::mesh::VTKMeshWriter< MeshType > Class Template Reference

#include <VTKMeshWriter.h>

+ Inheritance diagram for walberla::mesh::VTKMeshWriter< MeshType >:

Classes

class  DataSource
 
class  FaceDataSource
 
class  VertexDataSource
 

Public Types

typedef std::function< bool(const MeshType &, const typename MeshType::FaceHandle &)> FaceFilterFunction
 
typedef std::vector< typename MeshType::FaceHandle > Faces
 
typedef std::vector< typename MeshType::VertexHandle > Vertices
 

Public Member Functions

 VTKMeshWriter (const shared_ptr< const MeshType > &mesh, const std::string &identifier, const uint_t writeFrequency, const std::string &baseFolder="vtk_out")
 
void operator() ()
 
void addDataSource (const shared_ptr< VertexDataSource< float > > &dataSource)
 
void addDataSource (const shared_ptr< VertexDataSource< double > > &dataSource)
 
void addDataSource (const shared_ptr< VertexDataSource< int32_t > > &dataSource)
 
void addDataSource (const shared_ptr< VertexDataSource< uint8_t > > &dataSource)
 
void addDataSource (const shared_ptr< VertexDataSource< uint64_t > > &dataSource)
 
void addDataSource (const shared_ptr< FaceDataSource< float > > &dataSource)
 
void addDataSource (const shared_ptr< FaceDataSource< double > > &dataSource)
 
void addDataSource (const shared_ptr< FaceDataSource< int32_t > > &dataSource)
 
void addDataSource (const shared_ptr< FaceDataSource< uint8_t > > &dataSource)
 
void addDataSource (const shared_ptr< FaceDataSource< uint64_t > > &dataSource)
 
void setFaceFilter (const FaceFilterFunction &f)
 
void clearFaceFilter ()
 
bool isFaceFilterSet () const
 
void incrementTimeStep ()
 
bool isWriteScheduled () const
 

Protected Member Functions

void write (std::ostream &os) const
 
void writePrefix (std::ostream &os) const
 
void writePostfix (std::ostream &os) const
 
void writePiece (std::ostream &os) const
 
template<typename T >
void writeVertexData (const T &vertexDataSources, const Vertices &vertices, std::ostream &os, vtk::Base64Writer &b64) const
 
template<typename T >
void writeFaceData (const T &faceDataSources, const Faces &faces, std::ostream &os, vtk::Base64Writer &b64) const
 
void writePVD (std::ostream &os) const
 

Protected Attributes

shared_ptr< const MeshTypemesh_
 
uint_t writeFrequency_
 
std::string identifier_
 
std::string baseFolder_
 
uint_t timestep_
 
FaceFilterFunction faceFilter_
 
std::vector< shared_ptr< VertexDataSource< float > > > floatVertexDataSources_
 
std::vector< shared_ptr< VertexDataSource< double > > > doubleVertexDataSources_
 
std::vector< shared_ptr< VertexDataSource< int32_t > > > int32VertexDataSources_
 
std::vector< shared_ptr< VertexDataSource< uint8_t > > > uint8VertexDataSources_
 
std::vector< shared_ptr< VertexDataSource< uint64_t > > > uint64VertexDataSources_
 
std::vector< shared_ptr< FaceDataSource< float > > > floatFaceDataSources_
 
std::vector< shared_ptr< FaceDataSource< double > > > doubleFaceDataSources_
 
std::vector< shared_ptr< FaceDataSource< int32_t > > > int32FaceDataSources_
 
std::vector< shared_ptr< FaceDataSource< uint8_t > > > uint8FaceDataSources_
 
std::vector< shared_ptr< FaceDataSource< uint64_t > > > uint64FaceDataSources_
 

Member Typedef Documentation

◆ FaceFilterFunction

template<typename MeshType >
typedef std::function<bool ( const MeshType &, const typename MeshType::FaceHandle & )> walberla::mesh::VTKMeshWriter< MeshType >::FaceFilterFunction

◆ Faces

template<typename MeshType >
typedef std::vector< typename MeshType::FaceHandle > walberla::mesh::VTKMeshWriter< MeshType >::Faces

◆ Vertices

template<typename MeshType >
typedef std::vector< typename MeshType::VertexHandle > walberla::mesh::VTKMeshWriter< MeshType >::Vertices

Constructor & Destructor Documentation

◆ VTKMeshWriter()

template<typename MeshType >
walberla::mesh::VTKMeshWriter< MeshType >::VTKMeshWriter ( const shared_ptr< const MeshType > &  mesh,
const std::string &  identifier,
const uint_t  writeFrequency,
const std::string &  baseFolder = "vtk_out" 
)

Member Function Documentation

◆ addDataSource() [1/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< FaceDataSource< double > > &  dataSource)
inline

◆ addDataSource() [2/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< FaceDataSource< float > > &  dataSource)
inline

◆ addDataSource() [3/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< FaceDataSource< int32_t > > &  dataSource)
inline

◆ addDataSource() [4/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< FaceDataSource< uint64_t > > &  dataSource)
inline

◆ addDataSource() [5/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< FaceDataSource< uint8_t > > &  dataSource)
inline

◆ addDataSource() [6/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< VertexDataSource< double > > &  dataSource)
inline

◆ addDataSource() [7/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< VertexDataSource< float > > &  dataSource)
inline

◆ addDataSource() [8/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< VertexDataSource< int32_t > > &  dataSource)
inline

◆ addDataSource() [9/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< VertexDataSource< uint64_t > > &  dataSource)
inline

◆ addDataSource() [10/10]

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::addDataSource ( const shared_ptr< VertexDataSource< uint8_t > > &  dataSource)
inline

◆ clearFaceFilter()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::clearFaceFilter ( )
inline

◆ incrementTimeStep()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::incrementTimeStep ( )
inline

◆ isFaceFilterSet()

template<typename MeshType >
bool walberla::mesh::VTKMeshWriter< MeshType >::isFaceFilterSet ( ) const
inline

◆ isWriteScheduled()

template<typename MeshType >
bool walberla::mesh::VTKMeshWriter< MeshType >::isWriteScheduled ( ) const
inline

◆ operator()()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::operator()

◆ setFaceFilter()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::setFaceFilter ( const FaceFilterFunction f)
inline

◆ write()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::write ( std::ostream &  os) const
protected

◆ writeFaceData()

template<typename MeshType >
template<typename T >
void walberla::mesh::VTKMeshWriter< MeshType >::writeFaceData ( const T &  faceDataSources,
const Faces faces,
std::ostream &  os,
vtk::Base64Writer b64 
) const
inlineprotected

◆ writePiece()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::writePiece ( std::ostream &  os) const
protected

◆ writePostfix()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::writePostfix ( std::ostream &  os) const
protected

◆ writePrefix()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::writePrefix ( std::ostream &  os) const
protected

◆ writePVD()

template<typename MeshType >
void walberla::mesh::VTKMeshWriter< MeshType >::writePVD ( std::ostream &  os) const
inlineprotected

◆ writeVertexData()

template<typename MeshType >
template<typename T >
void walberla::mesh::VTKMeshWriter< MeshType >::writeVertexData ( const T &  vertexDataSources,
const Vertices vertices,
std::ostream &  os,
vtk::Base64Writer b64 
) const
inlineprotected

Member Data Documentation

◆ baseFolder_

template<typename MeshType >
std::string walberla::mesh::VTKMeshWriter< MeshType >::baseFolder_
protected

◆ doubleFaceDataSources_

template<typename MeshType >
std::vector< shared_ptr< FaceDataSource<double > > > walberla::mesh::VTKMeshWriter< MeshType >::doubleFaceDataSources_
protected

◆ doubleVertexDataSources_

template<typename MeshType >
std::vector< shared_ptr< VertexDataSource<double > > > walberla::mesh::VTKMeshWriter< MeshType >::doubleVertexDataSources_
protected

◆ faceFilter_

template<typename MeshType >
FaceFilterFunction walberla::mesh::VTKMeshWriter< MeshType >::faceFilter_
protected

◆ floatFaceDataSources_

template<typename MeshType >
std::vector< shared_ptr< FaceDataSource<float > > > walberla::mesh::VTKMeshWriter< MeshType >::floatFaceDataSources_
protected

◆ floatVertexDataSources_

template<typename MeshType >
std::vector< shared_ptr< VertexDataSource<float > > > walberla::mesh::VTKMeshWriter< MeshType >::floatVertexDataSources_
protected

◆ identifier_

template<typename MeshType >
std::string walberla::mesh::VTKMeshWriter< MeshType >::identifier_
protected

◆ int32FaceDataSources_

template<typename MeshType >
std::vector< shared_ptr< FaceDataSource<int32_t> > > walberla::mesh::VTKMeshWriter< MeshType >::int32FaceDataSources_
protected

◆ int32VertexDataSources_

template<typename MeshType >
std::vector< shared_ptr< VertexDataSource<int32_t> > > walberla::mesh::VTKMeshWriter< MeshType >::int32VertexDataSources_
protected

◆ mesh_

template<typename MeshType >
shared_ptr<const MeshType> walberla::mesh::VTKMeshWriter< MeshType >::mesh_
protected

◆ timestep_

template<typename MeshType >
uint_t walberla::mesh::VTKMeshWriter< MeshType >::timestep_
protected

◆ uint64FaceDataSources_

template<typename MeshType >
std::vector< shared_ptr< FaceDataSource<uint64_t> > > walberla::mesh::VTKMeshWriter< MeshType >::uint64FaceDataSources_
protected

◆ uint64VertexDataSources_

template<typename MeshType >
std::vector< shared_ptr< VertexDataSource<uint64_t> > > walberla::mesh::VTKMeshWriter< MeshType >::uint64VertexDataSources_
protected

◆ uint8FaceDataSources_

template<typename MeshType >
std::vector< shared_ptr< FaceDataSource<uint8_t> > > walberla::mesh::VTKMeshWriter< MeshType >::uint8FaceDataSources_
protected

◆ uint8VertexDataSources_

template<typename MeshType >
std::vector< shared_ptr< VertexDataSource<uint8_t> > > walberla::mesh::VTKMeshWriter< MeshType >::uint8VertexDataSources_
protected

◆ writeFrequency_

template<typename MeshType >
uint_t walberla::mesh::VTKMeshWriter< MeshType >::writeFrequency_
protected

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