Reworked Katrin Geometrics.
Added creation of T3+ clusters. Added diss. recombination fo T3+ + e-
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// T2IT2_cluster.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 12.07.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef T2IT2_cluster_h
|
||||
#define T2IT2_cluster_h
|
||||
|
||||
#include "janev_T2IT2_cluster.h"
|
||||
|
||||
|
||||
class T2IT2_Cluster : public Sub_Interaction_Base {
|
||||
public:
|
||||
T2IT2_Cluster(Population_Base *T2Population, UniRNG *rngUni) : Sub_Interaction_Base(T2Population, rngUni) {}
|
||||
double get_macroSigma_m2(const Particle &interPart);
|
||||
InteractionOut do_Interaction (Particle *interPart);
|
||||
};
|
||||
|
||||
|
||||
inline double T2IT2_Cluster::get_macroSigma_m2(const Particle &interPart) {
|
||||
double E_eV = interPart.get_E_eV();
|
||||
double microSigma_m2 = Janev_T2IT2_Cluster::get_TCS(E_eV);
|
||||
vec3 loc_m = interPart.get_x_m();
|
||||
double nT2_m3 = Population->get_density_m3(loc_m);
|
||||
return microSigma_m2*nT2_m3;
|
||||
}
|
||||
|
||||
inline InteractionOut T2IT2_Cluster::do_Interaction (Particle *interPart) {
|
||||
InteractionOut InterOut;
|
||||
vec3 loc_m = interPart->get_x_m();
|
||||
vec3 v2_ms = Population->roll_v_ms(loc_m);
|
||||
vec3 vLab_ms = interPart->get_v_ms() - v2_ms;
|
||||
vec3 v1_ms = roll_uniform_direction(rngUni) * calc_vec3_abs(vLab_ms) + v2_ms;
|
||||
Particle TNew = Particle_Builder::create_T(loc_m, v1_ms, -1, interPart->get_Id());
|
||||
Particle T3New = Particle_Builder::create_T3I(loc_m, v2_ms, -1, interPart->get_Id());
|
||||
|
||||
InterOut.add_new_particle(TNew);
|
||||
InterOut.add_new_particle(T3New);
|
||||
InterOut.set_delete_current(true);
|
||||
return InterOut;
|
||||
}
|
||||
|
||||
|
||||
#endif /* T2IT2_cluster_h */
|
||||
Reference in New Issue
Block a user