19#ifndef OBSERVABLES_PERSISTENCEANGLES_HPP
20#define OBSERVABLES_PERSISTENCEANGLES_HPP
24#include "system/System.hpp"
46 if (this->
ids().size() < 3)
47 throw std::runtime_error(
"At least 3 particles are required");
56 comm, local_particles,
ids(),
traits,
false);
58 if (comm.rank() != 0) {
86 std::vector<std::size_t>
shape()
const override {
88 return {
ids().size() - 2};
Vector implementation and trait types for boost qvm interoperability.
Calculate bond angles in a polymer.
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
CosPersistenceAngles(std::vector< int > ids)
std::size_t n_values() const
Size of the flat array returned by the observable.
Particle-based observable.
PidObservable(std::vector< int > ids)
std::vector< int > const & ids() const
std::shared_ptr< BoxGeometry > box_geo
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
std::vector< std::reference_wrapper< Particle const > > ParticleReferenceRange