19#ifndef OBSERVABLES_CYLINDRICALFLUXDENSITYPROFILE_HPP
20#define OBSERVABLES_CYLINDRICALFLUXDENSITYPROFILE_HPP
24#include "system/System.hpp"
43 using pos_type =
decltype(
traits.position(std::declval<Particle>()));
44 using vel_type =
decltype(
traits.velocity(std::declval<Particle>()));
52 for (
auto const &p : local_particles) {
53 auto const pos = box_geo.folded_position(
traits.position(p)) -
67 if (comm.rank() != 0) {
76 std::vector<std::size_t>
shape()
const override {
78 return {b[0], b[1], b[2], 3};
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
CylindricalPidProfileObservable(std::vector< int > const &ids, std::shared_ptr< Utils::CylindricalTransformationParameters > transform_params, int n_r_bins, int n_phi_bins, int n_z_bins, double min_r, double max_r, double min_phi, double max_phi, double min_z, double max_z)
std::shared_ptr< Utils::CylindricalTransformationParameters > transform_params
std::shared_ptr< BoxGeometry > box_geo
Histogram in cylindrical coordinates.
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
std::vector< std::reference_wrapper< Particle const > > ParticleReferenceRange
Vector3d transform_vector_cartesian_to_cylinder(Vector3d const &vec, Vector3d const &axis, Vector3d const &pos)
Vector transformation from Cartesian to cylindrical coordinates.
Vector3d transform_coordinate_cartesian_to_cylinder(Vector3d const &pos)
Coordinate transformation from Cartesian to cylindrical coordinates.