Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#include "interactions/recombination.h"
|
||||
|
||||
#include "simulation/density_field.h"
|
||||
|
||||
namespace interaction {
|
||||
|
||||
Recombination::Recombination(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::TrackedSpecie> target)
|
||||
: Interaction(cross_section, target), recombination_target_(target) {}
|
||||
|
||||
InteractionOutput Recombination::performInteraction(
|
||||
particle::Particle& particle,
|
||||
RandomNumbers* generator) {
|
||||
DEBUG_LEVEL_3("Perform recombination.");
|
||||
|
||||
// energy dependent deletions in the future
|
||||
const double energy_eV = 0.;
|
||||
recombination_target_->dynamicDensityField()->logDeletion(particle.position(),
|
||||
energy_eV);
|
||||
|
||||
InteractionOutput output;
|
||||
output.deleteCurrentParticle(true);
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
}; // namespace interaction
|
||||
Reference in New Issue
Block a user