Reworked Katrin Geometrics.
Added creation of T3+ clusters. Added diss. recombination fo T3+ + e-
This commit is contained in:
@@ -31,6 +31,9 @@ std::string get_species_string(const species &spec) {
|
||||
case tritium2:
|
||||
res = "T2";
|
||||
break;
|
||||
case tritium3I:
|
||||
res = "T3+";
|
||||
break;
|
||||
default:
|
||||
stringstream ss;
|
||||
ss<<"get_species_string: Species not defined\n";
|
||||
@@ -46,6 +49,7 @@ species get_species_from_string(const std::string &species_string) {
|
||||
all.push_back(tritiumI);
|
||||
all.push_back(tritium2I);
|
||||
all.push_back(tritium2);
|
||||
all.push_back(tritium3I);
|
||||
for (std::vector<species>::iterator Itr = all.begin(); Itr!= all.end(); Itr++) {
|
||||
if (get_species_string(*Itr) == species_string) {
|
||||
return *Itr;
|
||||
@@ -69,10 +73,13 @@ double get_species_mass(const species &spec) {
|
||||
res = mT_eV;
|
||||
break;
|
||||
case tritium2I:
|
||||
res = mT2_eV;
|
||||
res = 2*mT_eV;
|
||||
break;
|
||||
case tritium2:
|
||||
res = mT2_eV;
|
||||
res = 2*mT_eV;
|
||||
break;
|
||||
case tritium3I:
|
||||
res = 3*mT_eV;
|
||||
break;
|
||||
default:
|
||||
stringstream ss;
|
||||
@@ -91,8 +98,8 @@ ostream& operator<<(ostream& os, const species& spec) {
|
||||
ostream& operator<<(ostream& os, const Particle& partOut) {
|
||||
os
|
||||
<< partOut.Id << ";"
|
||||
<<partOut.parentId << ";"
|
||||
<<partOut.s << ";"
|
||||
<<partOut.PId << ";"
|
||||
<<partOut.spec << ";"
|
||||
<<partOut.m_eV << ";"
|
||||
<< partOut.Z << ";"
|
||||
<< partOut.x_m[0] << ";"
|
||||
@@ -104,13 +111,18 @@ ostream& operator<<(ostream& os, const Particle& partOut) {
|
||||
return os;
|
||||
}
|
||||
|
||||
Particle::Particle(double mass_eV, double charge_e,vec3 loc_m, vec3 speed_ms, double idnum, double parentIdnum, species spec) {
|
||||
m_eV = mass_eV;
|
||||
Z = charge_e;
|
||||
x_m = loc_m;
|
||||
v_ms = speed_ms;
|
||||
Id = idnum;
|
||||
parentId = parentIdnum;
|
||||
s = spec;
|
||||
Particle::Particle(double m_eV, double Z, vec3 x_m, vec3 v_ms, double Id, double PId, species spec) {
|
||||
this->m_eV = m_eV;
|
||||
this->Z = Z;
|
||||
this->x_m = x_m;
|
||||
this->v_ms = v_ms;
|
||||
this->Id = Id;
|
||||
this->PId = PId;
|
||||
this->spec = spec;
|
||||
calc_E_eV();
|
||||
}
|
||||
|
||||
|
||||
void Particle::calc_E_eV() {
|
||||
E_eV = calc_E_eV_from_v_ms(v_ms, m_eV);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user