#include "interactions/free_movement.h" #include "constants/sim_constants.h" namespace interaction { FreeMovement::FreeMovement() : Interaction(std::function([](double x) { return 0.; }), nullptr) {} InteractionOutput FreeMovement::performInteraction(particle::Particle& particle, RandomNumbers* generator) { #ifdef debug_level3 DEBUG_LEVEL_3("Perform free movement."); #endif // 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; } double FreeMovement::drawCollisionTime(particle::Particle& particle, RandomNumbers* generator) { return std::numeric_limits::max(); } }; // namespace interaction