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

Weak collision loop energy subtraction order #217

Closed drobnyjt closed 1 year ago

drobnyjt commented 1 year ago

Thank you for your contribution to rustBCA!

Before submitting this PR, please make sure you have:

Fixes #216

Description

This changes the order of energy subtraction in the weak collision loop; there may be a problem with energy conservation leading to unphysical sputtering yields when weak collisions are on and Z1>>Z2.

Tests

cargo test runs fine. I need to do a comprehensive comparison of near-threshold sputtering yield curves.