37 lines
1.1 KiB
C++
Executable File
37 lines
1.1 KiB
C++
Executable File
#ifndef EXCITATION_H
|
|
#define EXCITATION_H
|
|
|
|
#include <functional>
|
|
#include "simulation/interaction.h"
|
|
#include "simulation/particle.h"
|
|
#include "simulation/random_numbers.h"
|
|
|
|
// defined in "simulation/species.h"
|
|
namespace species {
|
|
class Specie;
|
|
};
|
|
|
|
namespace interaction {
|
|
|
|
// class for handling processes consisting of the excitation (rotational, vibrational or
|
|
// electronic) of the target particle (e.g. A + B --> A + B*)
|
|
class Excitation : public Interaction {
|
|
public:
|
|
// Constructor: takes the function for the cross section, a shared_ptr to the Specie of the
|
|
// the threshold energy of the specific excitation type
|
|
Excitation(std::function<double(double)> cross_section,
|
|
std::shared_ptr<species::Specie> target,
|
|
double excitation_energy_eV);
|
|
|
|
// return the output of the interaction as an InteractionOutput object
|
|
InteractionOutput performInteraction(particle::Particle& particle,
|
|
RandomNumbers* generator);
|
|
|
|
private:
|
|
const double excitation_energy_eV_;
|
|
};
|
|
|
|
}; // namespace interaction
|
|
|
|
#endif /* EXCITATION_H */
|