Version 2, position dependent E/B, kinetic ions, boris mover, terminator

This commit is contained in:
Jonas Kellerer
2022-10-21 10:09:19 +02:00
parent acc55cf003
commit 83fd2e5d7e
869 changed files with 1033204 additions and 3634436 deletions
+26
View File
@@ -0,0 +1,26 @@
#include "interactions/free_movement.h"
#include "constants/sim_constants.h"
namespace interaction {
FreeMovement::FreeMovement()
: Interaction(std::function<double(double)>([](double x) { return 0.; }),
nullptr) {}
InteractionOutput FreeMovement::performInteraction(particle::Particle& particle,
RandomNumbers* generator) {
DEBUG_LEVEL_3("Perform free movement.");
// do nothing
return InteractionOutput();
}
double FreeMovement::microscopicCrossSection(double energy_eV) {
// returns very small number
return SimConstants::minimal_cross_section;
}
double FreeMovement::macroscopicCrossSection(particle::Particle& particle) {
// returns a very small number, so the interaction will only be
return SimConstants::minimal_macroscopic_cross_section;
}
}; // namespace interaction