More or less last working status, major changes comming now.
This commit is contained in:
+11
-57
@@ -22,7 +22,6 @@ void createBED_TCS_Func_container() {
|
||||
Average1D_FuncContainer BED_average_TCS;
|
||||
BED_average_TCS.set_Map(BED_edge_TCS);
|
||||
BED_average_TCS.exportToFile("/Users/ChristianReiling/Documents/Masterarbeit/katrin-plasma/src/mc_electron/data/BED_average_TCS.dat");
|
||||
|
||||
}
|
||||
|
||||
void createBED_SDCS_Func2D_container() {
|
||||
@@ -43,71 +42,26 @@ void createBED_SDCS_Func2D_container() {
|
||||
BED_stacked_SDCS.set_Map(BED_average_SDCS);
|
||||
BED_stacked_SDCS.exportToFile("/Users/ChristianReiling/Documents/Masterarbeit/katrin-plasma/src/mc_electron/data/BED_stacked_SDCS.dat");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void testSpeed() {
|
||||
double dummy;
|
||||
Edge1D_FuncContainer TCS = Edge1D_FuncContainer("/Users/ChristianReiling/Documents/Masterarbeit/katrin-plasma/src/mc_electron/data/BED_TCS.dat");
|
||||
Edge2D_FuncContainer SDCS = Edge2D_FuncContainer("/Users/ChristianReiling/Documents/Masterarbeit/katrin-plasma/src/mc_electron/data/BED_SDCS.dat");
|
||||
clock_t start = clock();
|
||||
int imax = 1000;
|
||||
double T_eV = 20;
|
||||
double W_eV = 1;
|
||||
cout<<"TCS function call:\n";
|
||||
for (int i = 0;i<imax;i++) {
|
||||
dummy = BED_Ionization::get_TCS(T_eV);
|
||||
}
|
||||
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<'\n';
|
||||
|
||||
start = clock();
|
||||
cout<<"TCS container call:\n";
|
||||
for (int i = 0;i<imax;i++) {
|
||||
dummy = TCS.interpolate(T_eV);
|
||||
}
|
||||
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<'\n';
|
||||
|
||||
start = clock();
|
||||
cout<<"SDCS function call:\n";
|
||||
for (int i = 0;i<imax;i++) {
|
||||
dummy = BED_Ionization::get_SDCS(T_eV,W_eV);
|
||||
}
|
||||
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<'\n';
|
||||
|
||||
start = clock();
|
||||
cout<<"SDCS container call:\n";
|
||||
for (int i = 0;i<imax;i++) {
|
||||
dummy = SDCS.interpolate(T_eV,W_eV);
|
||||
}
|
||||
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<'\n';
|
||||
}
|
||||
|
||||
|
||||
static Katrin Kat;
|
||||
double tritiumDens(vec3 cordszrphi) {
|
||||
double x = cordszrphi[1] * cos(cordszrphi[2]);
|
||||
double y = cordszrphi[1] * sin(cordszrphi[2]);
|
||||
double z = cordszrphi[0];
|
||||
return (Kat.getTritiumDensity_m3(vec3(x,y,z)));
|
||||
}
|
||||
|
||||
int main(int argc, const char * argv[]) {
|
||||
/*
|
||||
try {
|
||||
Simulation Sim;
|
||||
Sim.doit();
|
||||
} catch (MyException& caught) {
|
||||
cout<<caught.what()<<endl;
|
||||
exit(1);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
//testSpeed();
|
||||
|
||||
clock_t start = clock();
|
||||
Simulation Sim;
|
||||
Sim.doit();
|
||||
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<'\n';
|
||||
|
||||
|
||||
//createBED_TCS_Func_container();
|
||||
//createBED_SDCS_Func2D_container();
|
||||
|
||||
|
||||
//Katrin Kat;
|
||||
//Skalar_WGTS_Container Ion_Container(0, 10, 0.045, vec3(10,10,10));
|
||||
//Ion_Container.set_Bins_from_Function(tritiumDens);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user