Skip to content
Discussion options

You must be logged in to vote

If my understanding of ParticleInterpolator is correct, then the Nearest only works if the grid is node-centered data (but does not explicitly check/convert this), while the Linear interpolator only works for cell-centered data. It also has the offset of +0.5 but this is actually needed since it uses two cells per direction. Other codes based on AMReX typically implement custom interpolators that also support higher orders. 
https://github.com/Hi-PACE/hipace/blob/development/src/particles/particles_utils/ShapeFactors.H
https://github.com/BLAST-WarpX/warpx/blob/development/Source/Particles/ShapeFactors.H
Note how every second order has an offset of 0.5. The input for these functions alread…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@iljah
Comment options

@iljah
Comment options

@AlexanderSinn
Comment options

Answer selected by iljah
@iljah
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants