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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user