Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+58
@@ -0,0 +1,58 @@
|
||||
#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);
|
||||
|
||||
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_;
|
||||
|
||||
std::shared_ptr<species::TrackedSpecie> electron_;
|
||||
std::shared_ptr<species::TrackedSpecie> ion_;
|
||||
};
|
||||
|
||||
} // namespace interaction
|
||||
|
||||
#endif /* IONIZATION_H */
|
||||
Reference in New Issue
Block a user