blob: 28c64b4f952b7eabb74b834efd98ac3c24d82a20 (
plain)
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
|
#ifndef SPHERE_H
#define SPHERE_H
#include "vector.h"
class sphere {
public:
// constructor and destructor
sphere();
sphere(const sphere& s);
sphere(int i_i, vector<DIM> x, vector<DIM, int> cell_i, double lutime_i,
double r_i, double gr_i, double m_i, int species_i);
~sphere();
//variables
int i; // sphere ID
// impending event
event nextevent; // next event...can be collision or transfer
event nextcollision; // next collision if next event is transfer
// maybe nextnext event
// past information
double lutime; // last update time
vector<DIM, int> cell; // cell that it belongs to
vector<DIM, double> x; // position
vector<DIM, double> v; // velocity
double r; // sphere radius
double gr; // sphere growth rate
double m; // sphere mass
int species; // species number (not used during the MD)
// make sure efficent in memory
};
#endif
|