lcpp-org / RustBCA

A free, open-source Binary Collision Approximation (BCA) code for ion-material interactions including sputtering, implantation, and reflection
https://github.com/lcpp-org/RustBCA/wiki
GNU General Public License v3.0
41 stars 14 forks source link

Added tagged BCA output. Now particles carry tags and weights through… #148

Closed drobnyjt closed 3 years ago

drobnyjt commented 3 years ago

… calculation.

Thank you for your contribution to rustBCA!

Before submitting this PR, please make sure you have:

Fixes #147

Description

Adds a tagged and weighted version of the C bindings. Incident particles propagate through their tag (an input integer), their statistical weight, and an arbitrary tracked vector (here, the originating position in the PIC coordinates is used) so that sputtered particles can be associated with the particles that sputtered them