Added Excitation for Electrons:
Rotational J=0->2 Vibrational v=0->1 Electrical various (7 in total, see Paper from Janev 2008 for details)
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
typedef const double constant;
|
||||
|
||||
|
||||
constant zero = 1e-15;
|
||||
constant scale_start = 1e-5;
|
||||
constant scale_end = 2e4;
|
||||
constant infinity = 1e15;
|
||||
|
||||
// Natural Constants
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# Electrical Excitation B1sig+u by Yoon:2008aa
|
||||
# E sig_tot
|
||||
1.180E+01 0.000E+00
|
||||
1.200E+01 3.510E-23
|
||||
1.220E+01 6.400E-23
|
||||
1.240E+01 1.030E-22
|
||||
1.260E+01 1.510E-22
|
||||
1.280E+01 2.060E-22
|
||||
1.300E+01 2.660E-22
|
||||
1.330E+01 3.630E-22
|
||||
1.360E+01 4.640E-22
|
||||
1.400E+01 5.980E-22
|
||||
1.450E+01 7.600E-22
|
||||
1.500E+01 9.130E-22
|
||||
1.550E+01 1.060E-21
|
||||
1.600E+01 1.190E-21
|
||||
1.650E+01 1.310E-21
|
||||
1.700E+01 1.430E-21
|
||||
1.750E+01 1.540E-21
|
||||
1.800E+01 1.640E-21
|
||||
1.850E+01 1.740E-21
|
||||
1.900E+01 1.830E-21
|
||||
2.000E+01 1.990E-21
|
||||
2.250E+01 2.320E-21
|
||||
2.500E+01 2.550E-21
|
||||
2.750E+01 2.730E-21
|
||||
3.000E+01 2.850E-21
|
||||
3.500E+01 3.010E-21
|
||||
4.000E+01 3.080E-21
|
||||
4.500E+01 3.100E-21
|
||||
5.000E+01 3.080E-21
|
||||
6.000E+01 3.010E-21
|
||||
7.000E+01 2.910E-21
|
||||
8.000E+01 2.810E-21
|
||||
9.000E+01 2.710E-21
|
||||
1.000E+02 2.620E-21
|
||||
1.500E+02 2.250E-21
|
||||
2.000E+02 1.980E-21
|
||||
2.500E+02 1.770E-21
|
||||
3.000E+02 1.600E-21
|
||||
3.500E+02 1.460E-21
|
||||
4.000E+02 1.340E-21
|
||||
4.500E+02 1.240E-21
|
||||
5.000E+02 1.150E-21
|
||||
6.000E+02 1.010E-21
|
||||
7.000E+02 9.070E-22
|
||||
8.000E+02 8.230E-22
|
||||
9.000E+02 7.540E-22
|
||||
1.000E+03 6.970E-22
|
||||
1.100E+03 0.000E+00
|
||||
@@ -0,0 +1,50 @@
|
||||
# Electrical Excitation C1piu by Yoon:2008aa
|
||||
# E sig_tot
|
||||
1.100E+01 0.000E+00
|
||||
1.200E+01 0.000E+00
|
||||
1.229E+01 0.000E+00
|
||||
1.240E+01 6.800E-24
|
||||
1.260E+01 2.070E-23
|
||||
1.280E+01 4.810E-23
|
||||
1.300E+01 8.730E-23
|
||||
1.330E+01 1.590E-22
|
||||
1.360E+01 2.420E-22
|
||||
1.400E+01 3.610E-22
|
||||
1.450E+01 5.120E-22
|
||||
1.500E+01 6.570E-22
|
||||
1.550E+01 7.930E-22
|
||||
1.600E+01 9.200E-22
|
||||
1.650E+01 1.040E-21
|
||||
1.700E+01 1.150E-21
|
||||
1.750E+01 1.260E-21
|
||||
1.800E+01 1.350E-21
|
||||
1.850E+01 1.450E-21
|
||||
1.900E+01 1.530E-21
|
||||
2.000E+01 1.690E-21
|
||||
2.250E+01 2.010E-21
|
||||
2.500E+01 2.240E-21
|
||||
2.750E+01 2.420E-21
|
||||
3.000E+01 2.540E-21
|
||||
3.500E+01 2.700E-21
|
||||
4.000E+01 2.780E-21
|
||||
4.500E+01 2.810E-21
|
||||
5.000E+01 2.810E-21
|
||||
6.000E+01 2.760E-21
|
||||
7.000E+01 2.670E-21
|
||||
8.000E+01 2.580E-21
|
||||
9.000E+01 2.500E-21
|
||||
1.000E+02 2.410E-21
|
||||
1.500E+02 2.080E-21
|
||||
2.000E+02 1.840E-21
|
||||
2.500E+02 1.650E-21
|
||||
3.000E+02 1.490E-21
|
||||
3.500E+02 1.360E-21
|
||||
4.000E+02 1.250E-21
|
||||
4.500E+02 1.160E-21
|
||||
5.000E+02 1.080E-21
|
||||
6.000E+02 9.490E-22
|
||||
7.000E+02 8.500E-22
|
||||
8.000E+02 7.710E-22
|
||||
9.000E+02 7.070E-22
|
||||
1.000E+03 6.540E-22
|
||||
1.100E+03 0.000E+00
|
||||
@@ -0,0 +1,37 @@
|
||||
# Electrical Excitation EF1sig+g by Yoon:2008aa
|
||||
# E sig_tot
|
||||
1.400E+01 0.000E+00
|
||||
1.500E+01 2.800E-22
|
||||
1.600E+01 3.300E-22
|
||||
1.700E+01 3.700E-22
|
||||
1.750E+01 3.800E-22
|
||||
1.900E+01 3.900E-22
|
||||
2.000E+01 4.000E-22
|
||||
2.100E+01 4.000E-22
|
||||
2.350E+01 4.000E-22
|
||||
2.600E+01 4.000E-22
|
||||
3.000E+01 4.000E-22
|
||||
4.000E+01 4.100E-22
|
||||
5.000E+01 4.100E-22
|
||||
6.000E+01 3.900E-22
|
||||
7.000E+01 3.600E-22
|
||||
8.000E+01 3.400E-22
|
||||
1.000E+02 2.900E-22
|
||||
1.200E+02 2.600E-22
|
||||
1.400E+02 2.400E-22
|
||||
1.600E+02 2.200E-22
|
||||
1.800E+02 2.100E-22
|
||||
2.000E+02 2.000E-22
|
||||
2.200E+02 1.900E-22
|
||||
2.400E+02 1.800E-22
|
||||
2.600E+02 1.700E-22
|
||||
2.800E+02 1.600E-22
|
||||
3.000E+02 1.500E-22
|
||||
4.000E+02 1.200E-22
|
||||
5.000E+02 9.600E-23
|
||||
6.000E+02 8.000E-23
|
||||
7.000E+02 6.900E-23
|
||||
8.000E+02 6.100E-23
|
||||
9.000E+02 5.400E-23
|
||||
1.000E+03 4.900E-23
|
||||
1.100E+03 0.000E+00
|
||||
@@ -0,0 +1,7 @@
|
||||
# Electrical Excitation a3sig+g by Yoon:2008aa
|
||||
# E sig_tot
|
||||
1.700E+01 0.000E+00
|
||||
1.750E+01 6.990E-22
|
||||
2.000E+01 1.011E-21
|
||||
3.000E+01 1.860E-22
|
||||
3.100E+01 0.000E+00
|
||||
@@ -0,0 +1,13 @@
|
||||
# Electrical Excitation b3Sig+u by Yoon:2008aa
|
||||
# E sig_tot
|
||||
9.000E+00 0.000E+00
|
||||
9.200E+00 1.210E-21
|
||||
1.020E+01 2.080E-21
|
||||
1.220E+01 4.940E-21
|
||||
1.520E+01 8.300E-21
|
||||
1.720E+01 5.730E-21
|
||||
2.020E+01 3.920E-21
|
||||
3.000E+01 1.350E-21
|
||||
4.000E+01 7.710E-22
|
||||
1.000E+02 7.300E-23
|
||||
1.100E+02 0.000E+00
|
||||
@@ -0,0 +1,7 @@
|
||||
# Electrical Excitation c3piu by Yoon:2008aa
|
||||
# E sig_tot
|
||||
1.100E+01 0.000E+00
|
||||
1.750E+01 1.090E-21
|
||||
2.000E+01 2.489E-21
|
||||
3.000E+01 7.960E-22
|
||||
3.100E+01 0.000E+00
|
||||
@@ -0,0 +1,7 @@
|
||||
# Electrical Excitation e3sig+u by Yoon:2008aa
|
||||
# E sig_tot
|
||||
1.700E+01 0.000E+00
|
||||
1.750E+01 1.080E-22
|
||||
2.000E+01 2.520E-22
|
||||
3.000E+01 1.320E-22
|
||||
3.100E+01 0.000E+00
|
||||
@@ -0,0 +1,43 @@
|
||||
# Rotational Excitation J = 0->2 by Yoon:2008aa
|
||||
# E sig_tot
|
||||
4.410E-02 0.000E+00
|
||||
4.700E-02 1.850E-22
|
||||
5.000E-02 2.700E-22
|
||||
5.500E-02 3.500E-22
|
||||
6.000E-02 4.200E-22
|
||||
6.500E-02 4.800E-22
|
||||
7.000E-02 5.300E-22
|
||||
8.000E-02 6.200E-22
|
||||
9.000E-02 6.800E-22
|
||||
1.000E-01 7.400E-22
|
||||
1.100E-01 7.900E-22
|
||||
1.300E-01 8.800E-22
|
||||
1.500E-01 9.700E-22
|
||||
2.000E-01 1.150E-21
|
||||
2.500E-01 1.320E-21
|
||||
3.000E-01 1.520E-21
|
||||
3.500E-01 1.750E-21
|
||||
4.000E-01 2.000E-21
|
||||
4.500E-01 2.280E-21
|
||||
5.000E-01 2.600E-21
|
||||
6.000E-01 3.230E-21
|
||||
7.000E-01 3.940E-21
|
||||
8.000E-01 4.690E-21
|
||||
9.000E-01 5.550E-21
|
||||
1.000E+00 6.380E-21
|
||||
1.200E+00 7.960E-21
|
||||
1.500E+00 1.036E-20
|
||||
2.000E+00 1.370E-20
|
||||
2.500E+00 1.585E-20
|
||||
3.000E+00 1.704E-20
|
||||
3.500E+00 1.755E-20
|
||||
4.000E+00 1.758E-20
|
||||
4.500E+00 1.732E-20
|
||||
5.000E+00 1.689E-20
|
||||
6.000E+00 1.579E-20
|
||||
7.000E+00 1.462E-20
|
||||
8.000E+00 1.350E-20
|
||||
9.000E+00 1.248E-20
|
||||
1.000E+01 1.156E-20
|
||||
1.500E+01 7.300E-21
|
||||
1.600E+01 0.000E+00
|
||||
@@ -0,0 +1,32 @@
|
||||
# Vibration Excitation v = 0->1 by Yoon:2008aa
|
||||
# E sig_tot
|
||||
5.160E-01 0.000E+00
|
||||
5.500E-01 1.000E-22
|
||||
6.000E-01 1.700E-22
|
||||
6.600E-01 2.700E-22
|
||||
7.400E-01 3.800E-22
|
||||
8.000E-01 4.700E-22
|
||||
8.500E-01 5.900E-22
|
||||
1.000E+00 9.400E-22
|
||||
1.250E+00 1.720E-21
|
||||
1.480E+00 2.400E-21
|
||||
2.000E+00 3.670E-21
|
||||
2.460E+00 4.420E-21
|
||||
3.000E+00 4.860E-21
|
||||
3.800E+00 4.610E-21
|
||||
4.600E+00 3.800E-21
|
||||
5.000E+00 3.430E-21
|
||||
5.300E+00 3.240E-21
|
||||
5.600E+00 3.020E-21
|
||||
6.100E+00 2.700E-21
|
||||
7.000E+00 2.100E-21
|
||||
1.500E+01 5.650E-22
|
||||
2.000E+01 3.320E-22
|
||||
2.500E+01 2.420E-22
|
||||
3.000E+01 1.700E-22
|
||||
4.000E+01 1.120E-22
|
||||
5.000E+01 9.680E-23
|
||||
6.000E+01 8.170E-23
|
||||
8.000E+01 6.090E-23
|
||||
1.000E+02 4.510E-23
|
||||
1.100E+02 0.000E+00
|
||||
@@ -17,7 +17,7 @@ DCS_Ionization_Container::DCS_Ionization_Container(double T_min_eV, double T_max
|
||||
double Tmax_eV;
|
||||
for (int i = 0; i < number_T_bins; i++) {
|
||||
Tmax_eV = (T_scale.get_bin_mid(i) - EionT2_eV)/2;
|
||||
W_scale[i] = Log_Scale(zero, Tmax_eV, number_W_bins);
|
||||
W_scale[i] = Log_Scale(scale_start, Tmax_eV, number_W_bins);
|
||||
}
|
||||
init_data();
|
||||
calc_data(load_path);
|
||||
|
||||
@@ -17,20 +17,19 @@ class Drift_Base : public Mover_Base {
|
||||
public:
|
||||
Drift_Base(species this_species, Particle_Logger_Base *Logger, Population_Base *Population) : Mover_Base(this_species, Logger, Population) {};
|
||||
|
||||
void move(Particle *movePart, const double &distance_m);
|
||||
void move(Particle *movePart, const double ¯oSigma_m2);
|
||||
|
||||
protected:
|
||||
double get_zNew_m(Particle *movePart, const double &distance_m);
|
||||
double get_zNew_m(Particle *movePart, const double ¯oSigma_m2);
|
||||
virtual void doWallInteraction(Particle *movePart, vec3 *oldLoc_m, double *znew_m) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
||||
inline void Drift_Base::move(Particle *movePart, const double &distance_m) {
|
||||
inline void Drift_Base::move(Particle *movePart, const double ¯oSigma_m2) {
|
||||
vec3 oldLoc_m = movePart->get_Location_m();
|
||||
vec3 newLoc_m = oldLoc_m;
|
||||
|
||||
double znew_m = get_zNew_m(movePart, distance_m);
|
||||
double znew_m = get_zNew_m(movePart, macroSigma_m2);
|
||||
doWallInteraction(movePart, &oldLoc_m, &znew_m);
|
||||
newLoc_m[2] = znew_m;
|
||||
|
||||
@@ -39,15 +38,20 @@ inline void Drift_Base::move(Particle *movePart, const double &distance_m) {
|
||||
Population->increase_density(*movePart, oldLoc_m);
|
||||
}
|
||||
|
||||
inline double Drift_Base::get_zNew_m(Particle *movePart, const double &distance_m) {
|
||||
inline double Drift_Base::get_zNew_m(Particle *movePart, const double ¯oSigma_m2) {
|
||||
double zold_m = movePart->get_Location_m()[2];
|
||||
|
||||
vec3 v_ms = movePart->get_Speed_ms();
|
||||
double vTotAbs_ms = vec3Abs(v_ms);
|
||||
double vForwardAbs_ms = vec3Abs(vec3(0,0,v_ms[2]));
|
||||
double zDir = v_ms[2] < 0 ? -1 : 1;
|
||||
|
||||
double znew_m = zold_m + zDir*vForwardAbs_ms/vTotAbs_ms * distance_m;
|
||||
double zDir = v_ms[2] <= 0 ? -1 : 1;
|
||||
double znew_m;
|
||||
if (macroSigma_m2 == 0) {
|
||||
znew_m = (zDir == -1) ? Katrin_Geo::get_z_RW_m() : Katrin_Geo::get_z_WGTSend_m();
|
||||
} else {
|
||||
double distance_m = 1/macroSigma_m2;
|
||||
znew_m = zold_m + zDir*vForwardAbs_ms/vTotAbs_ms * distance_m;
|
||||
}
|
||||
return (znew_m);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ class eT2_Elastic : public Sub_Interaction_Base {
|
||||
|
||||
public:
|
||||
eT2_Elastic(Population_Base *T2Population, UniRNG *rngUni) : Sub_Interaction_Base(T2Population, rngUni),
|
||||
tcs_data(zero, 2e4, 1e3, get_data_path() + "eT2_ela_TCS.dat"),
|
||||
dcs_data(zero, 2e4, 1e3, 200, get_data_path() + "eT2_ela_DCS.dat"),
|
||||
tcs_data(scale_start, scale_end, 1e3, get_data_path() + "eT2_ela_TCS.dat"),
|
||||
dcs_data(scale_start, scale_end, 1e3, 200, get_data_path() + "eT2_ela_DCS.dat"),
|
||||
kinematics(me_eV, mT2_eV) {}
|
||||
|
||||
double get_macroSigma_m2(const Particle &interPart);
|
||||
|
||||
@@ -55,7 +55,7 @@ inline InteractionOut eT2_T2I_Ionization_Base::do_Interaction (Particle *interPa
|
||||
}
|
||||
double W_eV = roll_ionW_eV(T_eV);
|
||||
double E1_eV = T_eV-EionT2_eV - W_eV;
|
||||
E1_eV = (E1_eV < 0) ? zero : E1_eV;
|
||||
E1_eV = (E1_eV < 0) ? 0 : E1_eV;
|
||||
|
||||
double phi1 = rngUni->random()*2*pi;
|
||||
double phi2 = phi1-pi;
|
||||
@@ -162,8 +162,8 @@ class eT2_T2I_Ionization_Container : public eT2_T2I_Ionization_Base {
|
||||
public:
|
||||
eT2_T2I_Ionization_Container(Population_Base *T2Population, UniRNG *rngUni) :
|
||||
eT2_T2I_Ionization_Base(T2Population, rngUni),
|
||||
tcs_data(zero, 2e4, 100, (get_data_path() + "eT2_ion_TCS.dat")),
|
||||
dcs_data(zero, 2e4, 100, 50, (get_data_path() + "eT2_ion_DCS.dat"))
|
||||
tcs_data(scale_start, scale_end, 100, (get_data_path() + "eT2_ion_TCS.dat")),
|
||||
dcs_data(scale_start, scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat"))
|
||||
{};
|
||||
|
||||
protected:
|
||||
|
||||
@@ -19,7 +19,7 @@ public:
|
||||
this->dt_s = dt_s;
|
||||
};
|
||||
|
||||
void move(Particle *movePart, const double &distance_m);
|
||||
void move(Particle *movePart, const double ¯oSigma_m2);
|
||||
|
||||
private:
|
||||
double doBoris_singleStep_m(Particle *movePart, const vec3 &E_Vm , const vec3 &B_T);
|
||||
@@ -28,11 +28,19 @@ private:
|
||||
void doBoris_LogzDirChange(Particle *movePart, double *oldzDir, vec3 *oldLoc_m);
|
||||
};
|
||||
|
||||
void E_Mover_Boris::move(Particle *movePart, const double &distance_m) {
|
||||
void E_Mover_Boris::move(Particle *movePart, const double ¯oSigma_m2) {
|
||||
// Prepare detection for change of z direction for logging
|
||||
double oldzDir = movePart->get_Speed_ms()[2] < 0 ? -1 : 1;
|
||||
vec3 oldLoc_m = movePart->get_Location_m();
|
||||
|
||||
if (macroSigma_m2 == 0) { // If infinite movement distance let electron leave at only exit... Prob extremly faulty, but also impossible.
|
||||
movePart->set_Location_m(Katrin_Geo::get_z_RW_m());
|
||||
Logger->log(*movePart,oldLoc_m);
|
||||
return;
|
||||
}
|
||||
|
||||
double distance_m = 1/macroSigma_m2;
|
||||
|
||||
double traveledDistance_m = 0;
|
||||
vec3 loc_m, E_Vm ,B_T;
|
||||
while (traveledDistance_m < distance_m) {
|
||||
|
||||
@@ -13,12 +13,13 @@
|
||||
class Excitation_Base : public Sub_Interaction_Base {
|
||||
Inelastic_Kinematic_Base kinematics;
|
||||
DCS_Theta_Container dcs_data;
|
||||
protected:
|
||||
double deltaE_eV;
|
||||
|
||||
public:
|
||||
Excitation_Base(Population_Base *Population, UniRNG *rngUni, double deltaE_eV) : Sub_Interaction_Base(Population, rngUni),
|
||||
kinematics(deltaE_eV, me_eV, mT2_eV),
|
||||
dcs_data(zero, 2e4, 1e3, 200, get_data_path() + "eT2_ela_DCS.dat") {
|
||||
dcs_data(scale_start, scale_end, 1e3, 200, get_data_path() + "eT2_ela_DCS.dat") {
|
||||
this->deltaE_eV = deltaE_eV;
|
||||
}
|
||||
|
||||
@@ -64,4 +65,19 @@ inline double Excitation_Base::calc_T_eV(Particle *interPart, vec3 *v2_ms) {
|
||||
}
|
||||
|
||||
|
||||
class Exp_Excitation_Base : public Excitation_Base {
|
||||
TCS_Container tcs_data;
|
||||
public:
|
||||
Exp_Excitation_Base(Population_Base *T2Population, UniRNG *rngUni, double deltaE_eV, std::string load_file_name) : Excitation_Base(T2Population, rngUni, deltaE_eV),
|
||||
tcs_data(scale_start, scale_end, 1e3, get_data_path() + load_file_name) {};
|
||||
|
||||
private:
|
||||
double get_microSigma_m2(const double &Ekin_eV) {
|
||||
if (Ekin_eV < deltaE_eV) {
|
||||
return 0;
|
||||
} else {
|
||||
return tcs_data.get_value(Ekin_eV);
|
||||
}
|
||||
}
|
||||
};
|
||||
#endif /* exc_base_h */
|
||||
|
||||
@@ -48,7 +48,7 @@ Particle Injector::injectElectron (const int &newId) {
|
||||
double Injector::roll_FermiEnergy_eV() {
|
||||
double pmax,E_min_eV, E_max_eV, Ecan_eV,eta1,eta2;
|
||||
pmax = 1.5e-28; // From Plotting EnergyDistributionBetaDecay
|
||||
E_min_eV = zero;
|
||||
E_min_eV = scale_start;
|
||||
E_max_eV = TritiumDecayEndpoint_eV;
|
||||
do {
|
||||
eta1 = rngUni->random();
|
||||
|
||||
@@ -38,23 +38,24 @@ public:
|
||||
inline InteractionOut Interaction_Base::do_Interaction(Particle *interPart) {
|
||||
double macroSigma_m2 = get_macroSigma_m2(*interPart);
|
||||
|
||||
double currentStackedSigma = zero;
|
||||
double currentStackedSigma = 0;
|
||||
double targetStackedSigma = rngUni->random() * macroSigma_m2;
|
||||
|
||||
|
||||
for (int i = 0; i < numSubInteractions; i++) {
|
||||
currentStackedSigma += SubInteractions[i]->get_macroSigma_m2(*interPart);
|
||||
if (currentStackedSigma > targetStackedSigma) {
|
||||
if (currentStackedSigma >= targetStackedSigma) {
|
||||
return (SubInteractions[i]->do_Interaction(interPart));
|
||||
}
|
||||
}
|
||||
std::cout<<interPart->get_species()<<"\n";
|
||||
std::stringstream ss;
|
||||
ss<<"Interaction_Base::do_Interactio: No Interaction selected.\n";
|
||||
ss<<"Interaction_Base::do_Interaction: No Interactions added.\n";
|
||||
throw MyException (ss.str());
|
||||
}
|
||||
|
||||
inline double Interaction_Base::get_macroSigma_m2(const Particle &interPart) {
|
||||
double macroSigma_m2 = zero;
|
||||
double macroSigma_m2 = 0;
|
||||
for (int i = 0; i < numSubInteractions; i++) {
|
||||
macroSigma_m2 += SubInteractions[i]->get_macroSigma_m2(interPart);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
#include "eT2_elastic.h"
|
||||
#include "eT2_ionization.h"
|
||||
#include "eT2I_recombination.h"
|
||||
#include "eT2_vibexc0102.h"
|
||||
|
||||
//#include "eT2_vibexc0102.h"
|
||||
#include "exc_base.h"
|
||||
|
||||
#include "TT2_elastic.h"
|
||||
|
||||
@@ -38,11 +40,20 @@ Interaction_Base* Interaction_Builder::build_electron(Population_Manager *Popula
|
||||
if (eT2ionization == 1) {
|
||||
eInteraction->add(new eT2_T2I_Ionization_Container(T2Population, rngUni));
|
||||
}
|
||||
|
||||
|
||||
eInteraction->add(new eT2I_Recombination(T2IPopulation, rngUni));
|
||||
eInteraction->add(new eT2_VibExc01(T2Population, rngUni));
|
||||
eInteraction->add(new eT2_VibExc02(T2Population, rngUni));
|
||||
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 4.41e-4, "rot_exc_j02.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 0.516, "rot_exc_j02.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 8.48, "el_exc_b3sigpu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.18, "el_exc_B1sigpu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.76, "el_exc_c3piu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 11.79, "el_exc_a3sigpg.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 12.29, "el_exc_C1piu.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 12.3, "el_exc_EF1sigpg.dat"));
|
||||
eInteraction->add(new Exp_Excitation_Base(T2Population, rngUni, 13.23, "el_exc_e3sigpu.dat"));
|
||||
|
||||
//eInteraction->add(new eT2_VibExc01(T2Population, rngUni));
|
||||
//eInteraction->add(new eT2_VibExc02(T2Population, rngUni));
|
||||
return(eInteraction);
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ inline double Kinetic_Population::get_density_m3(const vec3 &loc_m) {
|
||||
}
|
||||
double bin_size_m3 = bin_sizes.get_cell_volume_m3(loc_m);
|
||||
double dens_m3 = total_cumulated_time_s/physical_time_s/bin_size_m3 - total_offset;
|
||||
dens_m3 = (dens_m3 < 0) ? zero : dens_m3;
|
||||
dens_m3 = (dens_m3 < 0) ? 0 : dens_m3;
|
||||
return(dens_m3);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
this->Population = Population;
|
||||
}
|
||||
|
||||
virtual void move(Particle *movePart, const double &distance_m) = 0;
|
||||
virtual void move(Particle *movePart, const double ¯oSigma_m2) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ Pop4_Container::Pop4_Container(int num_z_bins, int num_r_bins, int num_phi_bins,
|
||||
z_scale = Lin_Scale(Katrin_Geo::get_z_RW_m(), Katrin_Geo::get_z_WGTSend_m(), num_z_bins);
|
||||
r_scale = Lin_Scale(0,Katrin_Geo::get_radius_m(), num_r_bins);
|
||||
phi_scale = Lin_Scale(0, 2*pi, num_phi_bins);
|
||||
E_scale = Log_Scale(zero, 2e4, num_E_bins);
|
||||
E_scale = Log_Scale(scale_start, scale_end, num_E_bins);
|
||||
|
||||
data = new double ***[num_z_bins];
|
||||
for (int i = 0; i < num_z_bins; i++) {
|
||||
|
||||
@@ -48,7 +48,7 @@ void Simulation::doit() {
|
||||
Terminator_Base *terminatorPtr;
|
||||
|
||||
InteractionOut IntOut;
|
||||
double macroSigma_m2, mfp_m;
|
||||
double macroSigma_m2;
|
||||
std::deque<Particle> partQue;
|
||||
Particle curPart;
|
||||
vec3 oldLoc_m;
|
||||
@@ -70,8 +70,7 @@ void Simulation::doit() {
|
||||
while (!terminatorPtr->checkTermination(curPart)) {
|
||||
oldLoc_m = curPart.get_Location_m();
|
||||
macroSigma_m2 = interactionPtr->get_macroSigma_m2(curPart);
|
||||
mfp_m = 1/macroSigma_m2;
|
||||
moverPtr->move(&curPart, mfp_m);
|
||||
moverPtr->move(&curPart, macroSigma_m2);
|
||||
if (!terminatorPtr->checkTermination(curPart)) {
|
||||
IntOut = interactionPtr->do_Interaction(&curPart);
|
||||
for (int i=0; i<IntOut.get_number_new_particles(); i++) {
|
||||
|
||||
@@ -87,7 +87,7 @@ inline double Thermal_Population::get_density_m3(const vec3 &loc_m) {
|
||||
double offset = number_annhilated.get_value(loc_m);
|
||||
double bin_size_m3 = bin_sizes.get_cell_volume_m3(loc_m);
|
||||
double dens_m3 = cumulated_time_s_s/physical_time_s/bin_size_m3 - offset;
|
||||
dens_m3 = (dens_m3 < 0) ? zero : dens_m3;
|
||||
dens_m3 = (dens_m3 < 0) ? 0 : dens_m3;
|
||||
return(dens_m3);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ const double T2_Population::wgtsT2FlowSpeed_ms = load_parameter("wgtsT2FlowSpeed
|
||||
inline double T2_Population::get_density_m3(const vec3 &loc_m) {
|
||||
Katrin_Geo::check_inKatrin(loc_m);
|
||||
if (!Katrin_Geo::inWGTS(loc_m)) {
|
||||
return (zero);
|
||||
return 0; // Prob change to some realisitc value -> search for one
|
||||
} else {
|
||||
return (calc_DensityTriangle(loc_m[2]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user