e-: E < 10eV, ions: E < 0.05eV; Ions from dissociative ionization are created with 9 eV; non-dissociative ionization does not create an ion
61 lines
1.9 KiB
C++
Executable File
61 lines
1.9 KiB
C++
Executable File
#ifndef IONIZATION_H
|
|
#define IONIZATION_H
|
|
|
|
#include "simulation/interaction.h"
|
|
|
|
namespace interaction {
|
|
|
|
class IonizationEnergyDistribution {
|
|
public:
|
|
IonizationEnergyDistribution(
|
|
std::function<double(double, double)> d2_cross_section,
|
|
double ionization_energy_eV);
|
|
double rollImpactParticleEnergyAfterCollision(double impact_energy,
|
|
RandomNumbers* generator);
|
|
|
|
private:
|
|
std::function<double(double, double)> d2_cross_section_;
|
|
const double ionization_energy_eV_;
|
|
};
|
|
|
|
class IonizationScatteringAngleDistribution {
|
|
public:
|
|
double rollAzimuthImpactParticleAfterCollision(
|
|
double impact_energy,
|
|
double energy_impact_particle_new,
|
|
RandomNumbers* generator);
|
|
double rollAzimuthEjectedParticleAfterCollision(
|
|
double impact_energy,
|
|
double energy_impactParticle_new,
|
|
RandomNumbers* generator);
|
|
};
|
|
|
|
class ElectronIonization : public Interaction {
|
|
public:
|
|
ElectronIonization(
|
|
std::function<double(double)> cross_section,
|
|
std::shared_ptr<species::Specie> target,
|
|
std::shared_ptr<species::TrackedSpecie> electron,
|
|
std::shared_ptr<species::TrackedSpecie> ion,
|
|
std::shared_ptr<IonizationEnergyDistribution> distribution,
|
|
std::shared_ptr<IonizationScatteringAngleDistribution> angle_distribution,
|
|
double ionization_energy_eV,
|
|
double ion_energy);
|
|
|
|
InteractionOutput performInteraction(particle::Particle& particle,
|
|
RandomNumbers* generator);
|
|
|
|
private:
|
|
std::shared_ptr<IonizationEnergyDistribution> energy_distribution_;
|
|
std::shared_ptr<IonizationScatteringAngleDistribution> angle_distribution_;
|
|
const double ionization_energy_eV_;
|
|
const double ion_energy_;
|
|
|
|
std::shared_ptr<species::TrackedSpecie> electron_;
|
|
std::shared_ptr<species::TrackedSpecie> ion_;
|
|
};
|
|
|
|
} // namespace interaction
|
|
|
|
#endif /* IONIZATION_H */
|