Skip to content

Commit

Permalink
Update coned cosine reflection in models
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Oct 23, 2023
1 parent 098bd4e commit 012140a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions include/Models/PlasmaDamage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class DamageIon : public csParticle<DamageIon<T, D>, T> {
if (NewEnergy > minEnergy) {
reflect = true;
auto direction = rayReflectionConedCosine<T, D>(
rayInternal::PI / 2. - std::min(incAngle, minAngle), rayDir,
geomNormal, Rng);
rayDir, geomNormal, Rng, std::min(incAngle, minAngle));
E = NewEnergy;
return std::pair<T, rayTriple<T>>{impactEnergy, direction};
} else {
Expand Down
2 changes: 1 addition & 1 deletion include/Models/SF6O2Etching.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class SF6O2Ion : public rayParticle<SF6O2Ion<NumericType, D>, NumericType> {
E = NewEnergy;

auto direction = rayReflectionConedCosine<NumericType, D>(
halfPI - std::min(incAngle, minAngle), rayDir, geomNormal, Rng);
rayDir, geomNormal, Rng, std::min(incAngle, minAngle));

return std::pair<NumericType, rayTriple<NumericType>>{0., direction};
} else {
Expand Down

0 comments on commit 012140a

Please sign in to comment.