walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation > Class Template Reference

#include <PeVTKMeshWriter.h>

Classes

class  DataSource
 
class  FaceDataSource
 
class  FaceDataSourceWrapper
 
class  VertexDataSource
 
class  VertexDataSourceWrapper
 

Public Types

typedef MeshType::VertexHandle VertexHandle
 
typedef MeshType::FaceHandle FaceHandle
 
typedef VTKMeshWriter< MeshType >::Faces Faces
 
typedef VTKMeshWriter< MeshType >::Vertices Vertices
 
typedef OpenMesh::FPropHandleT< const walberla::pe::RigidBody * > BodyPointerFPropHandle
 
typedef OpenMesh::VPropHandleT< const walberla::pe::RigidBody * > BodyPointerVPropHandle
 
typedef OpenMesh::PropertyManager< BodyPointerFPropHandle, MeshTypeBodyPointerFPropManager
 
typedef OpenMesh::PropertyManager< BodyPointerVPropHandle, MeshTypeBodyPointerVPropManager
 

Public Member Functions

 PeVTKMeshWriter (const shared_ptr< BlockStorage > &storage, const BlockDataID bodyStorageId, const Tesselation &tesselation, const std::string &identifier, const uint_t writeFrequency, const std::string &baseFolder="vtk_out")
 
void operator() ()
 
template<typename T >
void addDataSource (const shared_ptr< VertexDataSource< T > > &dataSource)
 
template<typename T >
void addDataSource (const shared_ptr< FaceDataSource< T > > &dataSource)
 
const BodyPointerFPropManagergetBodyPointerFPropManager () const
 
const BodyPointerVPropManagergetBodyPointerVPropManager () const
 
void addVertexPropertyRank ()
 
void addFacePropertyRank ()
 
void setBodyFilter (const std::function< bool(const walberla::pe::RigidBody &)> &filter)
 
const std::function< bool(const walberla::pe::RigidBody &)> & getBodyFilter () const
 

Protected Member Functions

void tesselateBodies ()
 

Protected Attributes

shared_ptr< BlockStoragestorage_
 
BlockDataID bodyStorageId_
 
Tesselation tesselation_
 
shared_ptr< MeshTypemesh_
 
DistributedVTKMeshWriter< MeshTypemeshWriter_
 
BodyPointerFPropManager faceBodyPointer_
 
BodyPointerVPropManager vertexBodyPointer_
 
std::function< bool(const walberla::pe::RigidBody &)> bodyFilter_ = [](const walberla::pe::RigidBody&){ return true; }
 

Member Typedef Documentation

◆ BodyPointerFPropHandle

template<typename MeshType , typename Tesselation >
typedef OpenMesh::FPropHandleT< const walberla::pe::RigidBody * > walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::BodyPointerFPropHandle

◆ BodyPointerFPropManager

template<typename MeshType , typename Tesselation >
typedef OpenMesh::PropertyManager< BodyPointerFPropHandle, MeshType > walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::BodyPointerFPropManager

◆ BodyPointerVPropHandle

template<typename MeshType , typename Tesselation >
typedef OpenMesh::VPropHandleT< const walberla::pe::RigidBody * > walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::BodyPointerVPropHandle

◆ BodyPointerVPropManager

template<typename MeshType , typename Tesselation >
typedef OpenMesh::PropertyManager< BodyPointerVPropHandle, MeshType > walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::BodyPointerVPropManager

◆ FaceHandle

template<typename MeshType , typename Tesselation >
typedef MeshType::FaceHandle walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::FaceHandle

◆ Faces

template<typename MeshType , typename Tesselation >
typedef VTKMeshWriter<MeshType>::Faces walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::Faces

◆ VertexHandle

template<typename MeshType , typename Tesselation >
typedef MeshType::VertexHandle walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::VertexHandle

◆ Vertices

template<typename MeshType , typename Tesselation >
typedef VTKMeshWriter<MeshType>::Vertices walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::Vertices

Constructor & Destructor Documentation

◆ PeVTKMeshWriter()

template<typename MeshType , typename Tesselation >
walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::PeVTKMeshWriter ( const shared_ptr< BlockStorage > &  storage,
const BlockDataID  bodyStorageId,
const Tesselation &  tesselation,
const std::string &  identifier,
const uint_t  writeFrequency,
const std::string &  baseFolder = "vtk_out" 
)
inline

Member Function Documentation

◆ addDataSource() [1/2]

template<typename MeshType , typename Tesselation >
template<typename T >
void walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::addDataSource ( const shared_ptr< FaceDataSource< T > > &  dataSource)
inline

◆ addDataSource() [2/2]

template<typename MeshType , typename Tesselation >
template<typename T >
void walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::addDataSource ( const shared_ptr< VertexDataSource< T > > &  dataSource)
inline

◆ addFacePropertyRank()

template<typename MeshType , typename Tesselation >
void walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::addFacePropertyRank ( )
inline

◆ addVertexPropertyRank()

template<typename MeshType , typename Tesselation >
void walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::addVertexPropertyRank ( )
inline

◆ getBodyFilter()

template<typename MeshType , typename Tesselation >
const std::function<bool(const walberla::pe::RigidBody&)>& walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::getBodyFilter ( ) const
inline

◆ getBodyPointerFPropManager()

template<typename MeshType , typename Tesselation >
const BodyPointerFPropManager& walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::getBodyPointerFPropManager ( ) const
inline

◆ getBodyPointerVPropManager()

template<typename MeshType , typename Tesselation >
const BodyPointerVPropManager& walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::getBodyPointerVPropManager ( ) const
inline

◆ operator()()

template<typename MeshType , typename Tesselation >
void walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::operator() ( )
inline

◆ setBodyFilter()

template<typename MeshType , typename Tesselation >
void walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::setBodyFilter ( const std::function< bool(const walberla::pe::RigidBody &)> &  filter)
inline

◆ tesselateBodies()

template<typename MeshType , typename Tesselation >
void walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::tesselateBodies ( )
inlineprotected

Member Data Documentation

◆ bodyFilter_

template<typename MeshType , typename Tesselation >
std::function<bool(const walberla::pe::RigidBody&)> walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::bodyFilter_ = [](const walberla::pe::RigidBody&){ return true; }
protected

◆ bodyStorageId_

template<typename MeshType , typename Tesselation >
BlockDataID walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::bodyStorageId_
protected

◆ faceBodyPointer_

template<typename MeshType , typename Tesselation >
BodyPointerFPropManager walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::faceBodyPointer_
protected

◆ mesh_

template<typename MeshType , typename Tesselation >
shared_ptr<MeshType> walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::mesh_
protected

◆ meshWriter_

template<typename MeshType , typename Tesselation >
DistributedVTKMeshWriter<MeshType> walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::meshWriter_
protected

◆ storage_

template<typename MeshType , typename Tesselation >
shared_ptr<BlockStorage> walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::storage_
protected

◆ tesselation_

template<typename MeshType , typename Tesselation >
Tesselation walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::tesselation_
protected

◆ vertexBodyPointer_

template<typename MeshType , typename Tesselation >
BodyPointerVPropManager walberla::mesh::pe::PeVTKMeshWriter< MeshType, Tesselation >::vertexBodyPointer_
protected

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