Basic ParticleAccessor for the ParticleStorage.
Provides get, set and getRef for all members of the ParticleStorage. Can be used as a basis class for a more advanced ParticleAccessor.
|
| ParticleAccessor (const std::shared_ptr< data::ParticleStorage > &ps) |
|
| ~ParticleAccessor () override=default |
|
const walberla::id_t & | getUid (const size_t p_idx) const |
|
walberla::id_t & | getUidRef (const size_t p_idx) |
|
void | setUid (const size_t p_idx, walberla::id_t const &v) |
|
const walberla::mesa_pd::Vec3 & | getPosition (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getPositionRef (const size_t p_idx) |
|
void | setPosition (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::real_t & | getInteractionRadius (const size_t p_idx) const |
|
walberla::real_t & | getInteractionRadiusRef (const size_t p_idx) |
|
void | setInteractionRadius (const size_t p_idx, walberla::real_t const &v) |
|
const walberla::mesa_pd::data::particle_flags::FlagT & | getFlags (const size_t p_idx) const |
|
walberla::mesa_pd::data::particle_flags::FlagT & | getFlagsRef (const size_t p_idx) |
|
void | setFlags (const size_t p_idx, walberla::mesa_pd::data::particle_flags::FlagT const &v) |
|
const int & | getOwner (const size_t p_idx) const |
|
int & | getOwnerRef (const size_t p_idx) |
|
void | setOwner (const size_t p_idx, int const &v) |
|
const std::unordered_set< walberla::mpi::MPIRank > & | 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) |
|
const walberla::mesa_pd::Vec3 & | getLinearVelocity (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getLinearVelocityRef (const size_t p_idx) |
|
void | setLinearVelocity (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::real_t & | getInvMass (const size_t p_idx) const |
|
walberla::real_t & | getInvMassRef (const size_t p_idx) |
|
void | setInvMass (const size_t p_idx, walberla::real_t const &v) |
|
const walberla::mesa_pd::Vec3 & | getForce (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getForceRef (const size_t p_idx) |
|
void | setForce (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getOldForce (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getOldForceRef (const size_t p_idx) |
|
void | setOldForce (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const size_t & | 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) |
|
const std::shared_ptr< walberla::mesa_pd::data::BaseShape > & | getBaseShape (const size_t p_idx) const |
|
std::shared_ptr< walberla::mesa_pd::data::BaseShape > & | getBaseShapeRef (const size_t p_idx) |
|
void | setBaseShape (const size_t p_idx, std::shared_ptr< walberla::mesa_pd::data::BaseShape > const &v) |
|
const walberla::mesa_pd::Rot3 & | getRotation (const size_t p_idx) const |
|
walberla::mesa_pd::Rot3 & | getRotationRef (const size_t p_idx) |
|
void | setRotation (const size_t p_idx, walberla::mesa_pd::Rot3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getAngularVelocity (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getAngularVelocityRef (const size_t p_idx) |
|
void | setAngularVelocity (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getTorque (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getTorqueRef (const size_t p_idx) |
|
void | setTorque (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getOldTorque (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getOldTorqueRef (const size_t p_idx) |
|
void | setOldTorque (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::real_t & | getRadiusAtTemperature (const size_t p_idx) const |
|
walberla::real_t & | getRadiusAtTemperatureRef (const size_t p_idx) |
|
void | setRadiusAtTemperature (const size_t p_idx, walberla::real_t const &v) |
|
const blockforest::BlockID & | getCurrentBlock (const size_t p_idx) const |
|
blockforest::BlockID & | getCurrentBlockRef (const size_t p_idx) |
|
void | setCurrentBlock (const size_t p_idx, blockforest::BlockID const &v) |
|
const uint_t & | getType (const size_t p_idx) const |
|
uint_t & | getTypeRef (const size_t p_idx) |
|
void | setType (const size_t p_idx, uint_t const &v) |
|
const int & | getNextParticle (const size_t p_idx) const |
|
int & | getNextParticleRef (const size_t p_idx) |
|
void | setNextParticle (const size_t p_idx, int const &v) |
|
const std::map< walberla::id_t, walberla::mesa_pd::data::ContactHistory > & | 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) |
|
const std::map< walberla::id_t, walberla::mesa_pd::data::ContactHistory > & | 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) |
|
const walberla::real_t & | getTemperature (const size_t p_idx) const |
|
walberla::real_t & | getTemperatureRef (const size_t p_idx) |
|
void | setTemperature (const size_t p_idx, walberla::real_t const &v) |
|
const walberla::real_t & | getHeatFlux (const size_t p_idx) const |
|
walberla::real_t & | getHeatFluxRef (const size_t p_idx) |
|
void | setHeatFlux (const size_t p_idx, walberla::real_t const &v) |
|
const uint_t & | getNumContacts (const size_t p_idx) const |
|
uint_t & | getNumContactsRef (const size_t p_idx) |
|
void | setNumContacts (const size_t p_idx, uint_t const &v) |
|
const walberla::mesa_pd::Vec3 & | getDv (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getDvRef (const size_t p_idx) |
|
void | setDv (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getDw (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getDwRef (const size_t p_idx) |
|
void | setDw (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getHydrodynamicForce (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getHydrodynamicForceRef (const size_t p_idx) |
|
void | setHydrodynamicForce (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getHydrodynamicTorque (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getHydrodynamicTorqueRef (const size_t p_idx) |
|
void | setHydrodynamicTorque (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getOldHydrodynamicForce (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getOldHydrodynamicForceRef (const size_t p_idx) |
|
void | setOldHydrodynamicForce (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getOldHydrodynamicTorque (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getOldHydrodynamicTorqueRef (const size_t p_idx) |
|
void | setOldHydrodynamicTorque (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::real_t & | getVirtualMass (const size_t p_idx) const |
|
walberla::real_t & | getVirtualMassRef (const size_t p_idx) |
|
void | setVirtualMass (const size_t p_idx, walberla::real_t const &v) |
|
const walberla::real_t & | getInvMassIncludingVirtual (const size_t p_idx) const |
|
walberla::real_t & | getInvMassIncludingVirtualRef (const size_t p_idx) |
|
void | setInvMassIncludingVirtual (const size_t p_idx, walberla::real_t const &v) |
|
const walberla::mesa_pd::Vec3 & | getOldLinearAcceleration (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getOldLinearAccelerationRef (const size_t p_idx) |
|
void | setOldLinearAcceleration (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const walberla::mesa_pd::Mat3 & | getInvInertiaBF (const size_t p_idx) const |
|
walberla::mesa_pd::Mat3 & | getInvInertiaBFRef (const size_t p_idx) |
|
void | setInvInertiaBF (const size_t p_idx, walberla::mesa_pd::Mat3 const &v) |
|
const walberla::mesa_pd::Mat3 & | getVirtualInertiaBF (const size_t p_idx) const |
|
walberla::mesa_pd::Mat3 & | getVirtualInertiaBFRef (const size_t p_idx) |
|
void | setVirtualInertiaBF (const size_t p_idx, walberla::mesa_pd::Mat3 const &v) |
|
const walberla::mesa_pd::Mat3 & | getInvInertiaBFIncludingVirtual (const size_t p_idx) const |
|
walberla::mesa_pd::Mat3 & | getInvInertiaBFIncludingVirtualRef (const size_t p_idx) |
|
void | setInvInertiaBFIncludingVirtual (const size_t p_idx, walberla::mesa_pd::Mat3 const &v) |
|
const walberla::mesa_pd::Vec3 & | getOldAngularAcceleration (const size_t p_idx) const |
|
walberla::mesa_pd::Vec3 & | getOldAngularAccelerationRef (const size_t p_idx) |
|
void | setOldAngularAcceleration (const size_t p_idx, walberla::mesa_pd::Vec3 const &v) |
|
const int64_t & | getClusterID (const size_t p_idx) const |
|
int64_t & | getClusterIDRef (const size_t p_idx) |
|
void | setClusterID (const size_t p_idx, int64_t const &v) |
|
const int64_t & | getSegmentID (const size_t p_idx) const |
|
int64_t & | getSegmentIDRef (const size_t p_idx) |
|
void | setSegmentID (const size_t p_idx, int64_t const &v) |
|
const std::unordered_set< walberla::mpi::MPIRank > & | 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) |
|
virtual | ~IAccessor ()=default |
|