Many, many more comments

This commit is contained in:
2024-12-04 17:15:04 +01:00
parent 8696517336
commit 03854339ca
100 changed files with 1702 additions and 49 deletions
+6 -1
View File
@@ -5,14 +5,19 @@
namespace interaction {
// class for handling recombination between two simulated species (TrackedSpecies)
class Recombination : public Interaction {
public:
// Constructor: takes a function describing the energy dependent cross section
// and a shared_ptr to the TrackedSpecie that is the target in the interaction
Recombination(std::function<double(double)> cross_section,
std::shared_ptr<species::TrackedSpecie> target);
// return the result of the interaction as an InteractionOutput object
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
// return the cross section scaled by the density of the target at the position
// of the incident particle (units: m^{-1})
double macroscopicCrossSection(particle::Particle& particle);
private: