Files
2025-09-11 16:37:24 +02:00

28 lines
797 B
C++
Executable File

#ifndef RECOMBINATION_H
#define RECOMBINATION_H
#include "simulation/interaction.h"
namespace interaction {
class Recombination : public Interaction {
public:
Recombination(std::function<double(double)> cross_section,
std::shared_ptr<species::TrackedSpecie> target);
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
double macroscopicCrossSection(particle::Particle& particle);
double drawCollisionTime(particle::Particle& particle, RandomNumbers* generator);
private:
double macroscopicCrossSection(const Coordinate& position, const int bin_index);
std::shared_ptr<species::TrackedSpecie> recombination_target_;
};
}; // namespace interaction
#endif /* RECOMBINATION_H */