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.
|
privatepure virtual |
Implemented in Observables::TotalForce, Observables::BondAngles, Observables::BondDihedrals, Observables::CosPersistenceAngles, Observables::CylindricalDensityProfile, Observables::CylindricalFluxDensityProfile, Observables::CylindricalLBFluxDensityProfileAtParticlePositions, Observables::CylindricalVelocityProfile, Observables::DensityProfile, Observables::FluxDensityProfile, Observables::ForceDensityProfile, Observables::ParticleDipoleFields, Observables::ParticleDistances, Observables::ParticleObservable< ObsType >, Observables::ParticleObservable< ParticleObservables::DipoleFields >, and Observables::CylindricalLBVelocityProfileAtParticlePositions.
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::BondAngles::evaluate(), Observables::BondDihedrals::evaluate(), Observables::CosPersistenceAngles::evaluate(), Observables::ParticleDistances::evaluate(), Observables::ParticleObservable< ObsType >::evaluate(), operator()(), Observables::ParticleDistances::ParticleDistances(), Observables::BondAngles::shape(), Observables::BondDihedrals::shape(), Observables::CosPersistenceAngles::shape(), Observables::ParticleDistances::shape(), and Observables::ParticleObservable< ObsType >::shape().
|
finalvirtual |
Implements Observables::Observable.
Definition at line 30 of file PidObservable.cpp.
References evaluate(), fetch_particles(), and ids().