|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <CoreFitSC.h>

Public Member Functions | |
| MomentSums (const Vector_t ¢re, double gamma) | |
| void | add (double q, const Vector_t &r) |
| Adds a particle of charge q at r (local frame, not rest frame) | |
| CoreMoments | reduce (const Reducer &reducer) const |
| Moments of all ranks' particles: one sum of 10 doubles. | |
Private Attributes | |
| Vector_t | centre_m |
| double | gamma_m |
| std::array< double, 10 > | sums_m |
Local sums of q, q s and q s_i s_j (10 numbers) over the particles added, with s the rest-frame position about a fixed centre (the core box centre, for conditioning).
Definition at line 219 of file CoreFitSC.h.
| CoreFitSC::MomentSums::MomentSums | ( | const Vector_t & | centre, |
| double | gamma | ||
| ) |
Definition at line 252 of file CoreFitSC.cpp.
References sums_m.
| void CoreFitSC::MomentSums::add | ( | double | q, |
| const Vector_t & | r | ||
| ) |
Adds a particle of charge q at r (local frame, not rest frame)
Definition at line 260 of file CoreFitSC.cpp.
References CoreFitSC::toRestFrame().
Referenced by PartBunch::computeFarField().

| CoreFitSC::CoreMoments CoreFitSC::MomentSums::reduce | ( | const Reducer & | reducer | ) | const |
Moments of all ranks' particles: one sum of 10 doubles.
Definition at line 276 of file CoreFitSC.cpp.
References CoreFitSC::CoreMoments::centroid, CoreFitSC::CoreMoments::charge, CoreFitSC::CoreMoments::quadrupole, CoreFitSC::Reducer::sum(), and trace().
Referenced by PartBunch::computeFarField().

|
private |
Definition at line 230 of file CoreFitSC.h.
|
private |
Definition at line 231 of file CoreFitSC.h.
|
private |
Definition at line 232 of file CoreFitSC.h.
Referenced by MomentSums().