source: ZHANGProjects/ICOSIM/CPP/trunk/source/testParticle.cc @ 2

Last change on this file since 2 was 2, checked in by zhangj, 10 years ago

Initial import

File size: 874 bytes
Line 
1#include <iostream>
2#include <vector>
3#include <string>
4#include <cmath>
5#include "Particle.h"
6using namespace std;
7
8/*
9#####################################################################
10
11Test file for the class Particle
12
13#####################################################################
14*/
15
16
17main()
18{
19
20    Particle p1;
21    Particle p2(1, 1, 1, 1, 2, 3);
22
23    double ax(-2.316794521);
24    double bx(103.4788975);
25    double dx(1.231007397);
26    double dpx(0.027602708);
27    double by(20.8994661);
28    double ay(1);
29    double dy(0);
30    double dpy(0);
31    srand(time(0));
32
33    srand(time(0));
34
35
36    p1.genpartdist(1, 1, "kv", 1.00095, 1.2e-8, 1.2e-8, 0.00011, bx, ax, dx, dpx, by, ay, dy, dpy, 6);
37    p1.afficheCoordonnees();
38
39    p1.genpartdist(1, 1, "kv", 1.00095, 1.2e-8, 1.2e-8, 0.00011, bx, ax, dx, dpx, by, ay, dy, dpy, 6);
40    p1.afficheCoordonnees();
41
42
43
44}
45
46
Note: See TracBrowser for help on using the repository browser.