| Diploma Thesis Percolation Simulation C++ Sourcecode Documentation |
Functions | |
| void | ask_for_parameters (NUMBER &n, int &min_loops, int &additional_loops, int &steps, const REAL file_from, const REAL file_to) |
| void | ask_parameter (NUMBER &n, int &loops, int &steps, const REAL file_from, const REAL file_to) |
| void | ask_for_dim_N_loops (NUMBER &N, int &dim, COUNTER &loops) |
| void | introduction (NUMBER &N, REAL &R, int dimension) |
| void | ask_for_ff_range (REAL &ff_from, REAL &ff_to) |
| void | svg_frontend () |
|
||||||||||||||||
|
Definition at line 34 of file frontend.h. References COUNTER, and NUMBER.
00035 {
00036 cout <<" dimension: (e.g. 3) ";
00037 cin >> dim;
00038 cout <<" Number of spheres: (e.g. 1250) ";
00039 cin >> N;
00040 cout <<" number of averaging loops (e.g. 5) ";
00041 cin >> loops ;
00042 }
|
|
||||||||||||
|
Definition at line 68 of file frontend.h. References REAL. Referenced by starters::into_file7_starter(), and starters::into_file8_starter().
00069 {
00070 ff_from=0.00; ff_to=2.00;
00071 cout <<"range of scanned fillingfactors";
00072 cout <<"\nfrom (e.g. 0.00): ";
00073 cin >> ff_from;
00074 cout <<"to (e.g. 2.00): ";
00075 cin >> ff_to;
00076 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 11 of file frontend.h. Referenced by starters::into_file7_starter(), and starters::into_file8_starter().
00011 {
00012
00013 cout <<" Number of spheres: (e.g. 2500) ";
00014 cin >> n;
00015 cout <<" number of (radius) steps between fillingfactor "<<file_from<<" and "<<file_to<<": (e.g. 60) ";
00016 cin >> steps;
00017 cout <<" number of minimum averaging loops on each radius: (e.g. 50) ";
00018 cin >> min_loops ;
00019 cout <<" number of additional averaging loops around critical radius: (e.g. 100) ";
00020 cin >> additional_loops ;
00021 }
|
|
||||||||||||||||||||||||
|
Definition at line 23 of file frontend.h. Referenced by starters::into_file(), and starters::into_file2().
00024 {
00025
00026 cout <<" Number of spheres: (e.g. 1000) ";
00027 cin >> n;
00028 cout <<" number of averaging loops on each radius: (e.g. 50) ";
00029 cin >> loops ;
00030 cout <<" number of (radius) steps between fillingfactor "<<file_from<<" and "<<file_to<<": (e.g. 60) ";
00031 cin >> steps;
00032 }
|
|
||||||||||||||||
|
Definition at line 44 of file frontend.h. References GRIDSIZE, NUMBER, R_critical(), R_critical_guessed(), and REAL. Referenced by starters::into_screen().
00045 {
00046 srand( (unsigned)time( NULL ) ); // set the random generator
00047
00048
00049 cout <<"\nPlease type in the number of spheres to throw: ";
00050 cin >> N;
00051
00052 double rr=R_critical(N,GRIDSIZE, dimension);
00053 if (rr!=-1) {
00054 cout << "\nThe theoretically critical radius in ";
00055 cout <<dimension<<"dim is "<<rr;
00056 }
00057 else {
00058 rr=R_critical_guessed(N,GRIDSIZE,dimension);
00059 cout << "The critical radius in ";
00060 cout <<dimension<<"dim is approximately "<<rr;
00061 }
00062
00063 cout <<"\nPlease type in the radius of one sphere: ";
00064 cin >> R;
00065 } // gives back N: the number of spheres and R: the radius
|
|
|
Definition at line 289 of file svg.h. References COORDFLOAT, NUMBER, R_critical_guessed(), REAL, graphics::svg_circles(), and graphics::svg_test(). Referenced by main().
00289 {
00290 cout <<"SVG Scalable Vector Graphics\nPlease choose\n"<<endl;
00291 cout <<"a test (t)"<<endl;
00292 cout <<"throw random discs (r)"<<endl;
00293
00294 char a; cin>>a;
00295
00296 switch (a) {
00297 case 't': graphics::svg_test(); break;
00298 case 'r':
00299 COORDFLOAT L=500;
00300 cout<<"number of discs : ";
00301 NUMBER N; cin >>N;
00302 REAL Rcrit=R_critical_guessed (N, L, 2);
00303 cout<<"choose radius (r.critical="<<Rcrit<<") : ";
00304 REAL R; cin >>R;
00305 graphics::svg_circles(L, N, R); break;
00306 }
00307 }
|
| Diploma Thesis Sourcecode
Documentation check out the text and the executable binaries |