ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Observables::CosPersistenceAngles Class Reference

Calculate bond angles in a polymer. More...

#include <CosPersistenceAngles.hpp>

+ Inheritance diagram for Observables::CosPersistenceAngles:
+ Collaboration diagram for Observables::CosPersistenceAngles:

Public Member Functions

 CosPersistenceAngles (std::vector< int > ids)
 
std::vector< double > evaluate (boost::mpi::communicator const &comm, ParticleReferenceRange const &local_particles, const ParticleObservables::traits< Particle > &traits) const override
 
std::vector< std::size_t > shape () const override
 
 PidObservable (std::vector< int > ids)
 
- Public Member Functions inherited from Observables::PidObservable
 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.
 

Detailed Description

Calculate bond angles in a polymer.

The ith entry in the result vector corresponds to the averaged cosine of the angle between bonds that are i bonds apart.

Definition at line 41 of file CosPersistenceAngles.hpp.

Constructor & Destructor Documentation

◆ CosPersistenceAngles()

Observables::CosPersistenceAngles::CosPersistenceAngles ( std::vector< int >  ids)
inlineexplicit

Definition at line 44 of file CosPersistenceAngles.hpp.

References Observables::PidObservable::ids().

Member Function Documentation

◆ evaluate()

std::vector< double > Observables::CosPersistenceAngles::evaluate ( boost::mpi::communicator const &  comm,
ParticleReferenceRange const &  local_particles,
const ParticleObservables::traits< Particle > &  traits 
) const
inlineoverridevirtual

◆ PidObservable()

Observables::PidObservable::PidObservable ( std::vector< int >  ids)
inlineexplicit

Definition at line 64 of file core/observables/PidObservable.hpp.

◆ shape()

std::vector< std::size_t > Observables::CosPersistenceAngles::shape ( ) const
inlineoverridevirtual

Implements Observables::Observable.

Definition at line 86 of file CosPersistenceAngles.hpp.

References Observables::PidObservable::ids().


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