![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Particle-based observable. More...
#include <PidObservable.hpp>
Public Member Functions | |
| PidObservable (std::vector< int > ids) | |
| std::vector< double > | operator() (boost::mpi::communicator const &comm) const final |
| std::vector< int > const & | ids () const |
| Public Member Functions inherited from Observables::Observable | |
| Observable ()=default | |
| virtual | ~Observable ()=default |
| std::size_t | n_values () const |
| Size of the flat array returned by the observable. | |
| virtual std::vector< std::size_t > | shape () const =0 |
| Dimensions needed to reshape the flat array returned by the observable. | |
Private Member Functions | |
| virtual std::vector< double > | evaluate (boost::mpi::communicator const &comm, ParticleReferenceRange const &local_particles, const ParticleObservables::traits< Particle > &traits) const =0 |
Particle-based observable.
Base class for observables extracting raw data from particle subsets and returning either the data or a statistic derived from it.
Definition at line 54 of file core/observables/PidObservable.hpp.
|
inlineexplicit |
Definition at line 64 of file core/observables/PidObservable.hpp.
References ids().
Referenced by Observables::CylindricalPidProfileObservable::CylindricalPidProfileObservable(), Observables::PidPairwiseDistancesObservable::PidPairwiseDistancesObservable(), and Observables::PidProfileObservable::PidProfileObservable().
|
privatepure virtual |
Implemented in Observables::BondAngles, Observables::BondDihedrals, Observables::CosPersistenceAngles, Observables::CylindricalDensityProfile, Observables::CylindricalFluxDensityProfile, Observables::CylindricalLBFluxDensityProfileAtParticlePositions, Observables::CylindricalLBVelocityProfileAtParticlePositions, Observables::CylindricalVelocityProfile, Observables::DensityProfile, Observables::FluxDensityProfile, Observables::ForceDensityProfile, Observables::PairwiseDistances, Observables::ParticleDistances, Observables::ParticleObservable< ObsType >, Observables::ParticleObservable< ParticleObservables::AngularVelocities >, Observables::ParticleObservable< ParticleObservables::BodyAngularVelocities >, Observables::ParticleObservable< ParticleObservables::BodyVelocities >, Observables::ParticleObservable< ParticleObservables::CenterOfMassPosition >, Observables::ParticleObservable< ParticleObservables::CenterOfMassVelocity >, Observables::ParticleObservable< ParticleObservables::DipoleFields >, Observables::ParticleObservable< ParticleObservables::Directors >, Observables::ParticleObservable< ParticleObservables::Forces >, Observables::ParticleObservable< ParticleObservables::Positions >, Observables::ParticleObservable< ParticleObservables::Sum< ParticleObservables::DipoleMoment > >, Observables::ParticleObservable< ParticleObservables::Sum< ParticleObservables::Product< ParticleObservables::Charge, ParticleObservables::Position > > >, Observables::ParticleObservable< ParticleObservables::Velocities >, and Observables::TotalForce.
Referenced by operator()().
|
inline |
Definition at line 67 of file core/observables/PidObservable.hpp.
Referenced by Observables::BondAngles::BondAngles(), Observables::BondDihedrals::BondDihedrals(), Observables::CosPersistenceAngles::CosPersistenceAngles(), Observables::CylindricalPidProfileObservable::CylindricalPidProfileObservable(), Observables::BondAngles::evaluate(), Observables::BondDihedrals::evaluate(), Observables::CosPersistenceAngles::evaluate(), Observables::ParticleDistances::evaluate(), Observables::ParticleObservable< ParticleObservables::CenterOfMassPosition >::evaluate(), operator()(), Observables::PairwiseDistances::PairwiseDistances(), Observables::ParticleDistances::ParticleDistances(), PidObservable(), Observables::PidPairwiseDistancesObservable::PidPairwiseDistancesObservable(), Observables::PidProfileObservable::PidProfileObservable(), Observables::BondAngles::shape(), Observables::BondDihedrals::shape(), Observables::CosPersistenceAngles::shape(), Observables::ParticleDistances::shape(), and Observables::ParticleObservable< ParticleObservables::CenterOfMassPosition >::shape().
|
finalvirtual |
Implements Observables::Observable.
Definition at line 30 of file PidObservable.cpp.
References evaluate(), fetch_particles(), and ids().