-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource.cpp
More file actions
37 lines (26 loc) · 799 Bytes
/
source.cpp
File metadata and controls
37 lines (26 loc) · 799 Bytes
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
#include <iostream>
#include <vector>
#include <cmath>
#include <fstream>
#include "kernel.hpp"
int main()
{
float E = - 1.6 ;
float ME = 9.1 * pow(10, -3);
float mass = ME;
float charge = E;
std::vector<Particle> particles;
//for(size_t x = -1; x <= 1 ; ++x)
//particles.emplace_back(20, 1, 0, 0, x, x); //mass, charge, vx, vy, x, y
particles.emplace_back(10,-1, 0.01, 0.05, 0.5, 0);
particles.emplace_back(10, 1, 0, -0.05,-0.5, 0);
/*particles.emplace_back(10,-1, -0.1, 0.1, 0, 0);
particles.emplace_back(10,-1, 0.1, -0.7, 0.5, 2);
particles.emplace_back(10,-1, 0.4, -0.7, -0.5, 2);
particles.emplace_back(10,-1, 0, -1, 0, 3);
particles.emplace_back(10,-1, -0.2, 0.2, -1, 1);
*/
time(0.0005, 0, 15, particles);
system("python3 path.py");
return 0;
}