Many, many more comments

This commit is contained in:
2024-12-04 17:15:04 +01:00
parent 8696517336
commit 03854339ca
100 changed files with 1702 additions and 49 deletions
+6
View File
@@ -4,17 +4,23 @@
#include <functional>
#include "simulation/interaction.h"
// defined in "simulation/species.h"
namespace species {
class Specie;
};
namespace interaction {
// class for charge exchange interactions e.g. T2+ + T2 --> T2 + T2+
// only for symmetric charge exchange processes (i.e. A+ + A --> A + A+)
class ChargeExchange : public Interaction {
public:
// Constructor: takes the function describing the cross section (dependent on the energy of the incident particle)
// and a shared_ptr to the Species that is the target in the interaction
ChargeExchange(std::function<double(double)> cross_section,
std::shared_ptr<species::Specie> target);
// return the result of the interaction as an InteractionOutput object
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
};
+6
View File
@@ -4,17 +4,23 @@
#include <functional>
#include "simulation/interaction.h"
// defined in "simulation/species.h"
namespace species {
class Specie;
};
namespace interaction {
// class for cluster formation interactions (A + B --> AB)
class ClusterFormation : public Interaction {
public:
// Constructor: takes the function describing the cross section (dependent on the energy of the incident particle)
// and a shared_ptr to the Species that is the target in the interaction
// and a shared_ptr to the TrackedSpecie that is the product of the interaction
ClusterFormation(std::function<double(double)> cross_section,
std::shared_ptr<species::Specie> target,
std::shared_ptr<species::TrackedSpecie> product);
// return an InteractionOutput object with the results of the interaction
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
+56
View File
@@ -7,43 +7,99 @@
namespace interaction {
namespace d2CrossSection {
// returns a function dependent on the initial energy of the electron ionization
// of T2 and the final energy of (one of) the resulting electrons
// function defines the energy distribution of the energy distribution of
// the secondary electron
// (functional form from Kim and Rudd 1994)
std::function<double(double, double)> eT2_ionization_bed();
}
// ? mention how data was obtained ?
namespace totalCrossSection {
// returns function that returns a constant value of 1.4e-19 m²
std::function<double(double)> eT2_elastic_scattering_constant();
// returns a function that linearly interpolates between the values
// defined in the file "data/crossSections/eT2_elastic_scattering/eT2_elastic_cross_section_total.h5"
// (relative to the HOMEBASE variable)
// data for e + T2 elastic scattering
std::function<double(double)> eT2_elastic_scattering();
// return function that describes the total elastic scattering cross section
// for T⁺ + T₂
std::function<double(double)> TpT2_elastic_scattering_tabata();
// return function that describes the total elastic scattering cross section
// for T₃⁺ + T₂
std::function<double(double)> T3pT2_elastic_scattering_tabata();
// return a function that describes the cross section for charge exchange
// T₂⁺ + T₂ --> T₂ + T₂⁺
std::function<double(double)> T2pT2_charge_exchange_janev();
// return a function describing the cross section for electron ionization of
// T₂: T₂ + e¯ --> T₂⁺ + 2e¯ (?)
std::function<double(double)> eT2_ionization_bed();
// return a function describing the non-dissociative cross section for electron ionization of
// T₂: T₂ + e¯ --> T₂⁺ + 2e¯
std::function<double(double)> eT2_ionization_janev_non_diss();
// return a function describing the cross section for dissociative electron ionization of
// T₂, where the products are in the ground state: T₂ + e¯ --> T⁺ + T + 2e¯ (?)
std::function<double(double)> eT2_ionization_janev_diss_ground();
// return a function describing the cross section for dissociative electron ionization of
// T₂, where the products are in the first excited state: T₂ + e¯ --> T⁺ + T* + 2e¯ (?)
std::function<double(double)> eT2_ionization_janev_diss_first();
// return a function describing the cross section for radiative clustering of T⁺ and T₂:
// T⁺ + T₂ --> T₃⁺ + h\nu
std::function<double(double)> TpT2_clustering_radiative_ascendion_pasil();
// return a function describing the cross section for tertiary clustering of T⁺ and T₂:
// T⁺ + 2T₂ --> T₃⁺ + T₂
std::function<double(double)> TpT2_clustering_tertiary_ascendion_pasil();
// return a function describing the cross section for clustering of T₂⁺ and T₂:
// T₂⁺ + T₂ --> T₃⁺ + T
std::function<double(double)> T2pT2_clustering_janev();
// return a function describing the cross section for electronic excitation of T₂ by
// the impact of an electron from the singlet ground state to the final state
// specified in the string "final_state". final_state has to have one of the following
// values: "B1", "B1prime", "B1primeprime", "C1", "D1", "D1prime"
std::function<double(double)>
eT2_excitation_electric_janev_from_singlet_ground_state(
std::string final_state);
// return a function describing the cross section for electronic excitation of T₂ by
// the impact of an electron from the singlet ground state to the final state that is
// forbidden by the symmetry of the system specified in the string "final_state".
// final_state has to have one of the following values:
// "EF1", "HHb", "GK1", "I1"
std::function<double(double)>
eT2_excitation_electric_janev_from_singlet_ground_state_symmetry_forbidden(
std::string final_state);
// return a function describing the cross section for electronic excitation of T₂ by
// the impact of an electron from the triplet ground state to the final state
// specified in the string "final_state". final_state has to have one of the following
// values: "A3", "B3", "C3", "D3", "E3"
std::function<double(double)>
eT2_excitation_electric_janev_from_triplet_ground_state(
std::string final_state);
// return a function describing the cross section for vibrational excitation of T₂
// from ground to first excited state by electron impact.
std::function<double(double)> eT2_excitation_vibrational_janev_first();
// return a function describing the cross section for vibrational excitation of T₂
// from ground to second excited state by electron impact.
std::function<double(double)> eT2_excitation_vibrational_janev_second();
// return a function describing the cross section for rotational excitation of T₂
// from ground to second excited state by electron impact.
std::function<double(double)> eT2_excitation_rotational_j0_to_j2_england();
// return a function describing the cross section for rotational excitation of T₂
// from first to third excited state by electron impact.
std::function<double(double)> eT2_excitation_rotational_j1_to_j3_england();
// return a function describing the cross section for recombination of T₂⁺ with an
// electron: T₂⁺ + e⁼ --> T₂
std::function<double(double)> eT2p_recombination_janev();
// return a function describing the cross section for recombination of T₃⁺ with an
// electron: T₃⁺ + e⁼ --> T₂ + T
std::function<double(double)> eT3p_recombination_janev();
}; // namespace totalCrossSection
@@ -7,12 +7,16 @@ class ScatteringAngleDistribution;
namespace interaction {
// class for handling elastic scattering interactions (A + B --> A + B)
class ElasticScattering : public Interaction {
public:
// Constructor: takes a function for the cross section, a shared_ptr with the Specie of the target of the interaction
// and a shared_ptr to a scatteringAngleDistribution object
ElasticScattering(std::function<double(double)> cross_section,
std::shared_ptr<species::Specie> target,
std::shared_ptr<ScatteringAngleDistribution> theta_distrib);
// return the interaction outcome as an InteractionOutput object
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
+6
View File
@@ -6,18 +6,24 @@
#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);
+6
View File
@@ -7,13 +7,19 @@
namespace interaction {
// class for dummy interaction "free movement" (i.e. no interaction)
class FreeMovement : public Interaction {
public:
// Constructor: does not need anything
FreeMovement();
// return the result of the interaction as an InteractionOutput object
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
// return the value of the cross section at the given energy (eV) (units: m^2)
double microscopicCrossSection(double energy_eV);
// return the density scaled cross section value for the energy of the
// Particle (units m^{-1})
double macroscopicCrossSection(particle::Particle& particle);
};
+26
View File
@@ -5,11 +5,18 @@
namespace interaction {
// class for drawing the energy of the outgoing electron (i.e. the slower one of the
// two electrons that exist after the interaction)
class IonizationEnergyDistribution {
public:
// Constructor: takes a function dependent on the energy of the incident particle
// and the energy of the ejected electron. Function should describe
// the energy distribution of the ejected electron.
// takes the ionization threshold energy in eV
IonizationEnergyDistribution(
std::function<double(double, double)> d2_cross_section,
double ionization_energy_eV);
// draw the energy (always < (impact_energy - ionization_energy)/2) of the ejected particle
double rollImpactParticleEnergyAfterCollision(double impact_energy,
RandomNumbers* generator);
@@ -18,20 +25,37 @@ class IonizationEnergyDistribution {
const double ionization_energy_eV_;
};
// function handling the azimuthal angle distribution for
// electron ionization
class IonizationScatteringAngleDistribution {
public:
// draw the azimuthal angle of the faster electron after collision
// impact_energy is the kinetic energy of the particle in the rest frame of the target in eV before the collision
// impact_energy is the kinetic energy of the particle (the faster of the two electrons) in the rest frame of the target in eV after the collision
double rollAzimuthImpactParticleAfterCollision(
double impact_energy,
double energy_impact_particle_new,
RandomNumbers* generator);
// draw the azimuthal angle of the slower electron after collision
// impact_energy is the kinetic energy of the particle in the rest frame of the target in eV before the collision
// impact_energy is the kinetic energy of the particle (the slower of the two electrons) in the rest frame of the target in eV after the collision
double rollAzimuthEjectedParticleAfterCollision(
double impact_energy,
double energy_impactParticle_new,
RandomNumbers* generator);
};
// class for handling electron impact ionization
class ElectronIonization : public Interaction {
public:
// Constructor: takes a function describing the cross section for the interaction
// a shared_ptr to the Specie of the target particle
// a shared_ptr to the TrackedSpecie electron describing the incident electron
// a shared_ptr to the TrackedSpecie ion describing the positive ion type that is created
// a shared_ptr to the IonizationEnergyDistribution, descibing the energy distribution of either
// of the two electrons after the interaction
// a shared_ptr to the IonizationScatterinAngleDistribution, which describes the
// azimuthal angle distribution of both final electrons
ElectronIonization(
std::function<double(double)> cross_section,
std::shared_ptr<species::Specie> target,
@@ -41,6 +65,8 @@ class ElectronIonization : public Interaction {
std::shared_ptr<IonizationScatteringAngleDistribution> angle_distribution,
double ionization_energy_eV);
// perform the interaction and return an InteractionOutput object
// containing the corresponding information (new particles)
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
+6 -1
View File
@@ -5,14 +5,19 @@
namespace interaction {
// class for handling recombination between two simulated species (TrackedSpecies)
class Recombination : public Interaction {
public:
// Constructor: takes a function describing the energy dependent cross section
// and a shared_ptr to the TrackedSpecie that is the target in the interaction
Recombination(std::function<double(double)> cross_section,
std::shared_ptr<species::TrackedSpecie> target);
// return the result of the interaction as an InteractionOutput object
InteractionOutput performInteraction(particle::Particle& particle,
RandomNumbers* generator);
// return the cross section scaled by the density of the target at the position
// of the incident particle (units: m^{-1})
double macroscopicCrossSection(particle::Particle& particle);
private: