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

Add MCC forward scattering #5621

Merged

Conversation

budjensen
Copy link
Contributor

Added a version of forward scattering suggested in J F J Janssen et al (2016). This process decreases total particle energy by the process' energy threshold. If no energy threshold is given in the input file, this process is equivalent to no collision being carried out (no scattering and no energy change).

Adjusted documentation appropriately and fixed a pre-existing typo.

Feature was tested on my own machine by confirming with python callbacks that the pre-collision and post-collision velocities were equal in the case of no energy cost threshold being supplied, and that the velocities were scaled down by the appropriate amount when a threshold was supplied (it was also checked that particle direction was the same before and after collision). No formal test was added since no current MCC tests exist and adding a framework to access cross sections while executing tests was prohibitive.

@ax3l ax3l added the component: collisions Anything related to particle collisions label Jan 31, 2025
Copy link
Member

@roelof-groenewald roelof-groenewald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for the contribution!

The PR looks good. I just have two requests for small changes.

Btw, we do have tests for MCC (https://github.com/ECP-WarpX/WarpX/tree/development/Examples/Physics_applications/capacitive_discharge). The cross-sections for such tests are kept in a separate repo: https://github.com/ECP-WarpX/warpx-data.

Docs/source/usage/parameters.rst Show resolved Hide resolved
* Added a reference for the forward scattering theory section
* Included excitation and forward scattering as possible scattering
processes for ions in the usage section
Copy link
Member

@roelof-groenewald roelof-groenewald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks again for the contribution.

@roelof-groenewald roelof-groenewald enabled auto-merge (squash) February 7, 2025 01:10
@roelof-groenewald roelof-groenewald merged commit 4f0f163 into ECP-WarpX:development Feb 7, 2025
37 checks passed
@budjensen budjensen deleted the add_forward_scattering branch February 7, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: collisions Anything related to particle collisions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants