How do I use Particle::ParIter to iterate over multiple spheres, where each sphere is surrounded by multiple particles? #4834
-
|
Hello AMReX Team! Regarding of the Particle class, I have some questions:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
atmyers
Dec 8, 2025
Replies: 1 comment 3 replies
-
|
A way people have done this is to use an AMReX to represent to center of the sphere, and then give the particle enough internal data components to reconstruct all the surrounding points. Redistribute() does in general change the memory addresses. You could also add an additional data component to track the old value, which would then be moved around with the particle during a Redistribute(). |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
APTX-4869-core
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A way people have done this is to use an AMReX to represent to center of the sphere, and then give the particle enough internal data components to reconstruct all the surrounding points.
Redistribute() does in general change the memory addresses. You could also add an additional data component to track the old value, which would then be moved around with the particle during a Redistribute().