Changed distance drawing procedure;

Changed mover to work with times instead of distance;
Changed how interactions are done (recombination still tbd)
This commit is contained in:
2025-05-08 09:56:25 +02:00
parent 2c79c567d8
commit 60430abcba
16 changed files with 225 additions and 76 deletions
+7
View File
@@ -33,12 +33,19 @@ class Interaction {
virtual double microscopicCrossSection(double energy_eV);
virtual double macroscopicCrossSection(particle::Particle& particle);
// return the time the given particle can travel in the laboratory frame
// before this specific interaction occurs (also stores the velocity of the
// target particle)
virtual double drawCollisionTime(particle::Particle& particle,
RandomNumbers* generator);
virtual InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator) = 0;
protected:
std::function<double(double)> cross_section_;
std::shared_ptr<species::Specie> target_;
CartesianVector target_velocity_;
};
}; // namespace interaction