Skip to content
Discussion options

You must be logged in to vote

The standard AMReX way would be to add ghost cells, call FillBoundary with the periodicity, and let particles interpolate from the ghost cells. Redistribute would be called on the particles after every push to periodically shift the particles positions so that they are inside the domain. The advantage of this approach is that this also works if the domain is distributed across multiple MPI ranks, as both FillBoundary and Redistribute will do the necessary MPI communications. However, if you only have a single process, it can work without ghost cells by adding a modulo operation to the index calculation for particles. For this, MeshToParticle needs to be replaced with a custom function. Th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@iljah
Comment options

Comment options

You must be logged in to vote
1 reply
@iljah
Comment options

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