Resolve 'Delete particles that move in the opposite direction than the bunch.'
Closes #632 (closed)
Merge request reports
Activity
added Enhancement OPAL-T labels
- Resolved by ext-calvo_p
Initially I wanted to delete only those particles that move in the opposite direction. Then I noticed that Opal-Cycl uses 'Option::REMOTEPARTDEL' to delete those particles that are further away than
x
times the rms. (NB: the manual says that if the value is equal to-1
then this has no effect. However the methodPartBunchBase::boundp_destroyCycl
also deletes particles if the value is-1
. Furthermore the default value is 0 and not -1 as stated in the manual. Finallyboundp_destroyCycl
converts the floating point value to an integer which doesn't seem necessary, e.g 2.5 timesshould work as well.).I use this option a bit different since I only want to delete particles that are far away from the mean position in longitudinal direction. And OpalT ignores all negative values of
REMOTEPARTDEL
.Only loosely related to this issue: I also remove the method
setMinimumNumberOfParticlesPerCore
andgetMinimumNumberOfParticlesPerCore
since the minimum number of particles was always0
and this never worked properly due to scattering of the charge and gathering of the induced field.Edited by kraus
- Resolved by snuverink_j
added 1 commit
- 44c83fd6 - delete all particles that farther away than x times sigma; remove unused Inform instance
changed milestone to %OPAL 2021.1
mentioned in commit 351f323f