Multiple Changes:

Conceptional Change, where terminated Particles were set to Energy = 0. Now Particles are just moved within mover and termination detects, position and starts Interaction only if particle remains in tank.

Added function_container: Filled with anker points and get values corresponding to input by interpolation. 2D Interpolation needs improvement. CSV-Read in function needs error checks of input file.
Changes in katrin class: Boris Push and Drift Approximation improved.
Minor Renamings.
This commit is contained in:
Christian
2019-03-18 13:51:41 +01:00
parent 698eb8e7b2
commit e77176cc76
21 changed files with 503 additions and 186 deletions
+4 -2
View File
@@ -15,7 +15,7 @@ using namespace std;
int main(int argc, const char * argv[]) {
clock_t start = clock();
/*
try {
Simulation Sim;
Sim.doit();
@@ -23,6 +23,8 @@ int main(int argc, const char * argv[]) {
cout<<caught.what()<<endl;
exit(1);
}
*/
Simulation Sim;
Sim.doit();
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<'\n';
}