Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#ifndef CHARGE_EXCHANGE_H
|
||||
#define CHARGE_EXCHANGE_H
|
||||
|
||||
#include <functional>
|
||||
#include "simulation/interaction.h"
|
||||
|
||||
namespace species {
|
||||
class Specie;
|
||||
};
|
||||
|
||||
namespace interaction {
|
||||
|
||||
class ChargeExchange : public Interaction {
|
||||
public:
|
||||
ChargeExchange(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::Specie> target);
|
||||
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
};
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* CHARGE_EXCHANGE_H */
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#ifndef CLUSTER_FORMATION_H
|
||||
#define CLUSTER_FORMATION_H
|
||||
|
||||
#include <functional>
|
||||
#include "simulation/interaction.h"
|
||||
|
||||
namespace species {
|
||||
class Specie;
|
||||
};
|
||||
|
||||
namespace interaction {
|
||||
|
||||
class ClusterFormation : public Interaction {
|
||||
public:
|
||||
ClusterFormation(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::Specie> target,
|
||||
std::shared_ptr<species::TrackedSpecie> product);
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
|
||||
private:
|
||||
std::shared_ptr<species::TrackedSpecie> product_;
|
||||
};
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* CLUSTER_FORMATION_H */
|
||||
Executable
+52
@@ -0,0 +1,52 @@
|
||||
#ifndef CROSS_SECTIONS_H
|
||||
#define CROSS_SECTIONS_H
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace interaction {
|
||||
|
||||
namespace d2CrossSection {
|
||||
std::function<double(double, double)> eT2_ionization_bed();
|
||||
}
|
||||
|
||||
namespace totalCrossSection {
|
||||
|
||||
std::function<double(double)> eT2_elastic_scattering_constant();
|
||||
std::function<double(double)> eT2_elastic_scattering();
|
||||
std::function<double(double)> TpT2_elasitc_scattering_tabata();
|
||||
std::function<double(double)> T3pT2_elasitc_scattering_tabata();
|
||||
|
||||
std::function<double(double)> T2pT2_charge_exchange_janev();
|
||||
|
||||
std::function<double(double)> eT2_ionization_bed();
|
||||
std::function<double(double)> eT2_ionization_janev_non_diss();
|
||||
std::function<double(double)> eT2_ionization_janev_diss_ground();
|
||||
std::function<double(double)> eT2_ionization_janev_diss_first();
|
||||
|
||||
std::function<double(double)> TpT2_clustering_radiative_ascendion_pasil();
|
||||
std::function<double(double)> TpT2_clustering_tertiary_ascendion_pasil();
|
||||
std::function<double(double)> T2pT2_clustering_janev();
|
||||
|
||||
std::function<double(double)>
|
||||
eT2_excitation_electric_janev_from_singlet_ground_state(
|
||||
std::string final_state);
|
||||
std::function<double(double)>
|
||||
eT2_excitation_electric_janev_from_singlet_ground_state_symmetry_forbidden(
|
||||
std::string final_state);
|
||||
std::function<double(double)>
|
||||
eT2_excitation_electric_janev_from_triplet_ground_state(
|
||||
std::string final_state);
|
||||
|
||||
std::function<double(double)> eT2_excitation_vibrational_janev_first();
|
||||
std::function<double(double)> eT2_excitation_vibrational_janev_second();
|
||||
std::function<double(double)> eT2_excitation_rotational_j0_to_j2_england();
|
||||
std::function<double(double)> eT2_excitation_rotational_j1_to_j3_england();
|
||||
|
||||
std::function<double(double)> eT2p_recombination_janev();
|
||||
std::function<double(double)> eT3p_recombination_janev();
|
||||
|
||||
}; // namespace totalCrossSection
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* CROSS_SECTIONS_H */
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#ifndef ELASTIC_SCATTERING_H
|
||||
#define ELASTIC_SCATTERING_H
|
||||
|
||||
#include "simulation/interaction.h"
|
||||
|
||||
class ScatteringAngleDistribution;
|
||||
|
||||
namespace interaction {
|
||||
|
||||
class ElasticScattering : public Interaction {
|
||||
public:
|
||||
ElasticScattering(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::Specie> target,
|
||||
std::shared_ptr<ScatteringAngleDistribution> theta_distrib);
|
||||
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
|
||||
private:
|
||||
std::shared_ptr<ScatteringAngleDistribution> theta_distrib_;
|
||||
};
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* ELASTIC_SCATTERING_H */
|
||||
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#ifndef EXCITATION_H
|
||||
#define EXCITATION_H
|
||||
|
||||
#include <functional>
|
||||
#include "simulation/interaction.h"
|
||||
#include "simulation/particle.h"
|
||||
#include "simulation/random_numbers.h"
|
||||
|
||||
namespace species {
|
||||
class Specie;
|
||||
};
|
||||
|
||||
namespace interaction {
|
||||
|
||||
class Excitation : public Interaction {
|
||||
public:
|
||||
Excitation(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::Specie> target,
|
||||
double excitation_energy_eV);
|
||||
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
|
||||
private:
|
||||
const double excitation_energy_eV_;
|
||||
};
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* EXCITATION_H */
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#ifndef FREE_MOVEMENT_H
|
||||
#define FREE_MOVEMENT_H
|
||||
|
||||
#include "simulation/interaction.h"
|
||||
#include "simulation/particle.h"
|
||||
#include "simulation/random_numbers.h"
|
||||
|
||||
namespace interaction {
|
||||
|
||||
class FreeMovement : public Interaction {
|
||||
public:
|
||||
FreeMovement();
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
|
||||
double microscopicCrossSection(double energy_eV);
|
||||
double macroscopicCrossSection(particle::Particle& particle);
|
||||
};
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* FREE_MOVEMENT_H */
|
||||
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 */
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#ifndef RECOMBINATION_H
|
||||
#define RECOMBINATION_H
|
||||
|
||||
#include "simulation/interaction.h"
|
||||
|
||||
namespace interaction {
|
||||
|
||||
class Recombination : public Interaction {
|
||||
public:
|
||||
Recombination(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::TrackedSpecie> target);
|
||||
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
|
||||
private:
|
||||
std::shared_ptr<species::TrackedSpecie> recombination_target_;
|
||||
};
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* RECOMBINATION_H */
|
||||
Reference in New Issue
Block a user