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

Cropping of particles at boundaries for deposition for charge conservation #5649

Open
wants to merge 17 commits into
base: development
Choose a base branch
from

Conversation

dpgrote
Copy link
Member

@dpgrote dpgrote commented Feb 8, 2025

This modifies the deposition (and field gather), cropping particle orbits at the boundary of the domain for PEC and PMC boundaries. This is a simple way of achieving charge conservation as particles are absorbed at boundaries.

In input flag particles.crop_on_PEC_boundary was added to turn this feature on. It now defaults to false.

Only in Villasenor and Buneman current deposition now. Can be extended to Esirkepov.

A second necessary change for charge conservation is to stop the particle orbits at the boundary, instead of reflecting them back into the domain, so that in the next time step the particles start at the boundary.

Only in Villasenor and Buneman current deposition in this commit
@JustinRayAngus
Copy link
Contributor

The cropping should not be applied at PMC (symmetry) boundaries. Only at physical boundaries like conductors and insulators.

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

Successfully merging this pull request may close these issues.

2 participants