Added elastic scattering interaction that creates

a particle for the "upscattered" neutralgas target
This commit is contained in:
2026-04-20 10:50:55 +02:00
parent 2b850c6be9
commit 2518e9bbc6
3 changed files with 92 additions and 2 deletions
+17 -2
View File
@@ -13,14 +13,29 @@ class ElasticScattering : public Interaction {
std::shared_ptr<species::Specie> target,
std::shared_ptr<ScatteringAngleDistribution> theta_distrib);
InteractionOutput performInteraction(particle::Particle& particle,
virtual InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
virtual double drawCollisionTime(particle::Particle& particle,
RandomNumbers* generator);
private:
protected:
std::shared_ptr<ScatteringAngleDistribution> theta_distrib_;
};
// Full elastic scattering in the sense that both particles after scattering
// become tracked
class ElasticScatteringFull : public ElasticScattering {
public:
ElasticScatteringFull(std::function<double(double)> cross_section,
std::shared_ptr<species::Specie> target,
std::shared_ptr<ScatteringAngleDistribution> theta_distrib,
std::shared_ptr<species::TrackedSpecie> product);
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
protected:
std::shared_ptr<species::TrackedSpecie> product_;
};
}; // namespace interaction
#endif /* ELASTIC_SCATTERING_H */