walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type > Class Template Reference

Detailed Description

template<typename MeshType, typename Selector, typename Type = typename Selector::return_type>
class walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >

Generic data source to pick data for a face using a particle selector.

Attention
The underlying mesh data sources don't support Vec3's etc. natively, thus specializations need to be given.
Template Parameters
MeshType
SelectorType of the selector.
TypeType of the data.

#include <OutputSelectorFaceDataSource.h>

+ Inheritance diagram for walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >:

Public Types

typedef FaceDataSource< MeshType, Type > Base
 
typedef Base::Faces Faces
 
typedef Type ComponentType
 
- Public Types inherited from walberla::mesa_pd::FaceDataSource< MeshType, typename Selector::return_type >
typedef mesh::DistributedVTKMeshWriter< MeshType >::Faces Faces
 

Public Member Functions

 OutputSelectorFaceDataSource (const std::string &name, Selector selector)
 
virtual uint_t numComponents ()
 
virtual void getData (const MeshType &, const Faces &faces, std::vector< Type > &data, const ParticleIdxFacePropertyManager< MeshType > &faceToParticleIdxManager, shared_ptr< walberla::mesa_pd::data::ParticleStorage > ps)
 
- Public Member Functions inherited from walberla::mesa_pd::FaceDataSource< MeshType, typename Selector::return_type >
 FaceDataSource (const std::string &name)
 
const std::string & name ()
 
virtual void getData (const MeshType &, const Faces &faces, std::vector< typename Selector::return_type > &data, const ParticleIdxFacePropertyManager< MeshType > &faceToParticleIdxManager, shared_ptr< walberla::mesa_pd::data::ParticleStorage > ps)=0
 
virtual ~FaceDataSource ()
 

Private Attributes

Selector selector_
 

Additional Inherited Members

- Protected Attributes inherited from walberla::mesa_pd::FaceDataSource< MeshType, typename Selector::return_type >
std::string name_
 

Member Typedef Documentation

◆ Base

template<typename MeshType , typename Selector , typename Type = typename Selector::return_type>
typedef FaceDataSource<MeshType, Type> walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >::Base

◆ ComponentType

template<typename MeshType , typename Selector , typename Type = typename Selector::return_type>
typedef Type walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >::ComponentType

◆ Faces

template<typename MeshType , typename Selector , typename Type = typename Selector::return_type>
typedef Base::Faces walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >::Faces

Constructor & Destructor Documentation

◆ OutputSelectorFaceDataSource()

template<typename MeshType , typename Selector , typename Type = typename Selector::return_type>
walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >::OutputSelectorFaceDataSource ( const std::string &  name,
Selector  selector 
)
inline

Member Function Documentation

◆ getData()

template<typename MeshType , typename Selector , typename Type = typename Selector::return_type>
virtual void walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >::getData ( const MeshType ,
const Faces faces,
std::vector< Type > &  data,
const ParticleIdxFacePropertyManager< MeshType > &  faceToParticleIdxManager,
shared_ptr< walberla::mesa_pd::data::ParticleStorage ps 
)
inlinevirtual

◆ numComponents()

template<typename MeshType , typename Selector , typename Type = typename Selector::return_type>
virtual uint_t walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >::numComponents ( )
inlinevirtual

Member Data Documentation

◆ selector_

template<typename MeshType , typename Selector , typename Type = typename Selector::return_type>
Selector walberla::mesa_pd::OutputSelectorFaceDataSource< MeshType, Selector, Type >::selector_
private

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