walberla::mesa_pd::data::ParticleAccessorWithShape Class Reference

#include <ParticleAccessorWithShape.h>

+ Inheritance diagram for walberla::mesa_pd::data::ParticleAccessorWithShape:

Public Member Functions

 ParticleAccessorWithShape (std::shared_ptr< data::ParticleStorage > &ps, std::shared_ptr< data::ShapeStorage > &ss)
 
const auto & getInvMass (const size_t p_idx) const
 
const auto & getInvInertiaBF (const size_t p_idx) const
 
data::BaseShapegetShape (const size_t p_idx) const
 
- Public Member Functions inherited from walberla::mesa_pd::data::ParticleAccessor
 ParticleAccessor (const std::shared_ptr< data::ParticleStorage > &ps)
 
virtual ~ParticleAccessor ()=default
 
walberla::id_t const & getUid (const size_t p_idx) const
 
walberla::id_tgetUidRef (const size_t p_idx)
 
void setUid (const size_t p_idx, walberla::id_t const &v)
 
walberla::mesa_pd::Vec3 const & getPosition (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getPositionRef (const size_t p_idx)
 
void setPosition (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
walberla::real_t const & getInteractionRadius (const size_t p_idx) const
 
walberla::real_tgetInteractionRadiusRef (const size_t p_idx)
 
void setInteractionRadius (const size_t p_idx, walberla::real_t const &v)
 
walberla::mesa_pd::data::particle_flags::FlagT const & getFlags (const size_t p_idx) const
 
walberla::mesa_pd::data::particle_flags::FlagTgetFlagsRef (const size_t p_idx)
 
void setFlags (const size_t p_idx, walberla::mesa_pd::data::particle_flags::FlagT const &v)
 
int const & getOwner (const size_t p_idx) const
 
int & getOwnerRef (const size_t p_idx)
 
void setOwner (const size_t p_idx, int const &v)
 
std::unordered_set< walberla::mpi::MPIRank > const & getGhostOwners (const size_t p_idx) const
 
std::unordered_set< walberla::mpi::MPIRank > & getGhostOwnersRef (const size_t p_idx)
 
void setGhostOwners (const size_t p_idx, std::unordered_set< walberla::mpi::MPIRank > const &v)
 
size_t const & getShapeID (const size_t p_idx) const
 
size_t & getShapeIDRef (const size_t p_idx)
 
void setShapeID (const size_t p_idx, size_t const &v)
 
walberla::mesa_pd::Rot3 const & getRotation (const size_t p_idx) const
 
walberla::mesa_pd::Rot3getRotationRef (const size_t p_idx)
 
void setRotation (const size_t p_idx, walberla::mesa_pd::Rot3 const &v)
 
walberla::mesa_pd::Vec3 const & getAngularVelocity (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getAngularVelocityRef (const size_t p_idx)
 
void setAngularVelocity (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
walberla::mesa_pd::Vec3 const & getTorque (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getTorqueRef (const size_t p_idx)
 
void setTorque (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
walberla::mesa_pd::Vec3 const & getLinearVelocity (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getLinearVelocityRef (const size_t p_idx)
 
void setLinearVelocity (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
walberla::real_t const & getInvMass (const size_t p_idx) const
 
walberla::real_tgetInvMassRef (const size_t p_idx)
 
void setInvMass (const size_t p_idx, walberla::real_t const &v)
 
walberla::mesa_pd::Vec3 const & getForce (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getForceRef (const size_t p_idx)
 
void setForce (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
walberla::mesa_pd::Vec3 const & getOldForce (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getOldForceRef (const size_t p_idx)
 
void setOldForce (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
walberla::mesa_pd::Vec3 const & getOldTorque (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getOldTorqueRef (const size_t p_idx)
 
void setOldTorque (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
blockforest::Block *const & getCurrentBlock (const size_t p_idx) const
 
blockforest::Block *& getCurrentBlockRef (const size_t p_idx)
 
void setCurrentBlock (const size_t p_idx, blockforest::Block *const &v)
 
uint_t const & getType (const size_t p_idx) const
 
uint_tgetTypeRef (const size_t p_idx)
 
void setType (const size_t p_idx, uint_t const &v)
 
int const & getNextParticle (const size_t p_idx) const
 
int & getNextParticleRef (const size_t p_idx)
 
void setNextParticle (const size_t p_idx, int const &v)
 
std::map< walberla::id_t, walberla::mesa_pd::data::ContactHistory > const & getOldContactHistory (const size_t p_idx) const
 
std::map< walberla::id_t, walberla::mesa_pd::data::ContactHistory > & getOldContactHistoryRef (const size_t p_idx)
 
void setOldContactHistory (const size_t p_idx, std::map< walberla::id_t, walberla::mesa_pd::data::ContactHistory > const &v)
 
std::map< walberla::id_t, walberla::mesa_pd::data::ContactHistory > const & getNewContactHistory (const size_t p_idx) const
 
std::map< walberla::id_t, walberla::mesa_pd::data::ContactHistory > & getNewContactHistoryRef (const size_t p_idx)
 
void setNewContactHistory (const size_t p_idx, std::map< walberla::id_t, walberla::mesa_pd::data::ContactHistory > const &v)
 
walberla::real_t const & getTemperature (const size_t p_idx) const
 
walberla::real_tgetTemperatureRef (const size_t p_idx)
 
void setTemperature (const size_t p_idx, walberla::real_t const &v)
 
walberla::real_t const & getHeatFlux (const size_t p_idx) const
 
walberla::real_tgetHeatFluxRef (const size_t p_idx)
 
void setHeatFlux (const size_t p_idx, walberla::real_t const &v)
 
walberla::mesa_pd::Vec3 const & getDv (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getDvRef (const size_t p_idx)
 
void setDv (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
walberla::mesa_pd::Vec3 const & getDw (const size_t p_idx) const
 
walberla::mesa_pd::Vec3getDwRef (const size_t p_idx)
 
void setDw (const size_t p_idx, walberla::mesa_pd::Vec3 const &v)
 
std::unordered_set< walberla::mpi::MPIRank > const & getNeighborState (const size_t p_idx) const
 
std::unordered_set< walberla::mpi::MPIRank > & getNeighborStateRef (const size_t p_idx)
 
void setNeighborState (const size_t p_idx, std::unordered_set< walberla::mpi::MPIRank > const &v)
 
id_t getInvalidUid () const
 
size_t getInvalidIdx () const
 
size_t uidToIdx (const id_t &uid) const
 Returns the index of particle specified by uid. More...
 
size_t size () const
 
size_t create (const id_t &uid)
 
size_t erase (const size_t &idx)
 
size_t find (const id_t &uid)
 
- Public Member Functions inherited from walberla::mesa_pd::data::IAccessor
virtual ~IAccessor ()=default
 

Private Attributes

std::shared_ptr< data::ShapeStoragess_
 

Additional Inherited Members

- Protected Attributes inherited from walberla::mesa_pd::data::ParticleAccessor
std::shared_ptr< data::ParticleStorageps_
 

Constructor & Destructor Documentation

walberla::mesa_pd::data::ParticleAccessorWithShape::ParticleAccessorWithShape ( std::shared_ptr< data::ParticleStorage > &  ps,
std::shared_ptr< data::ShapeStorage > &  ss 
)
inline

Member Function Documentation

const auto& walberla::mesa_pd::data::ParticleAccessorWithShape::getInvInertiaBF ( const size_t  p_idx) const
inline
const auto& walberla::mesa_pd::data::ParticleAccessorWithShape::getInvMass ( const size_t  p_idx) const
inline
data::BaseShape* walberla::mesa_pd::data::ParticleAccessorWithShape::getShape ( const size_t  p_idx) const
inline

Member Data Documentation

std::shared_ptr<data::ShapeStorage> walberla::mesa_pd::data::ParticleAccessorWithShape::ss_
private

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