Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to "fillNeighbors" for particles with the symmetrical boundary condition #3697

Open
Horizonatpku opened this issue Jan 15, 2024 · 1 comment

Comments

@Horizonatpku
Copy link

Hi everyone,

I have read the TEST case NeighborParticles.

[amrex/Tests/Particles/NeighborParticles

This case builds the neighbor list for particles with periodic boundary condition (b.c.):

int is_per[] = {AMREX_D_DECL(params.is_periodic, params.is_periodic, params.is_periodic)};

However, other type b.c. are usually in many applications, such as the symmetrical boundary condition
Could you please help me with build the neighbor list for various kinds of b.c.

Thanks a lot!

Yifeng He

@atmyers
Copy link
Member

atmyers commented Jan 17, 2024

Hi Yifeng He,

If what you want to do is have the neighbor particles filled with, e.g. reflected copies of particles near the domain boundaries, then that is currently not supported and would have to be implemented. However, if you're interested in implementing this, I can point to where in the NeighborParticle class you'd need to make the changes.

-Andrew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants