Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+26
@@ -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
|
||||
Reference in New Issue
Block a user