-
Notifications
You must be signed in to change notification settings - Fork 1
/
defaults.hpp
65 lines (57 loc) · 1.37 KB
/
defaults.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include "complex.hpp"
// Modes
#define SCHRODINGER 1
#define CLASSICAL 2
#define SCHRODINGER_EIGENSTATE 3
#define CLASSICAL_STANDING 4
struct defaults {
long steps;
long latticeSize;
_float latticeWidth;
_float waveWidth;
char* outFile;
_float timestep;
int waveWrite;
} defaults;
void generateDefaults(int mode)
{
switch(mode) {
default:
case SCHRODINGER:
defaults.steps = 125000;
defaults.latticeSize = 1000;
defaults.latticeWidth = 50.0;
defaults.waveWidth = 1.0;
defaults.outFile = (char*)"outqu.txt";
defaults.timestep = 0.005;
defaults.waveWrite = 300;
break;
case CLASSICAL_STANDING:
defaults.outFile = (char*)"outwvs.txt";
defaults.steps = 1000000;
defaults.latticeSize = 1000;
defaults.latticeWidth = 1000;
defaults.waveWidth = 50;
defaults.timestep = 0.001;
defaults.waveWrite = 5000;
break;
case CLASSICAL:
defaults.outFile = (char*)"outwv.txt";
defaults.steps = 1000000;
defaults.latticeSize = 1000;
defaults.latticeWidth = 1000;
defaults.waveWidth = 50;
defaults.timestep = 0.001;
defaults.waveWrite = 5000;
break;
case SCHRODINGER_EIGENSTATE:
defaults.steps = 10000000;
defaults.latticeSize = 100;
defaults.latticeWidth = 10.0;
defaults.waveWidth = 0.1;
defaults.outFile = (char*)"outque.txt";
defaults.timestep = 0.0005;
defaults.waveWrite = 3000;
break;
}
}