summaryrefslogtreecommitdiff
path: root/src/spheres_poly/sphere.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spheres_poly/sphere.cpp')
-rw-r--r--src/spheres_poly/sphere.cpp66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/spheres_poly/sphere.cpp b/src/spheres_poly/sphere.cpp
new file mode 100644
index 0000000..0fbbd68
--- /dev/null
+++ b/src/spheres_poly/sphere.cpp
@@ -0,0 +1,66 @@
+#include "box.h"
+#include <iostream>
+#include <math.h>
+#include <stdlib.h>
+#include <time.h>
+
+#include "vector.h"
+
+//==============================================================
+//==============================================================
+// Class Sphere:
+//==============================================================
+//==============================================================
+
+
+//==============================================================
+// Constructor
+//==============================================================
+sphere::sphere()
+{
+}
+
+
+//==============================================================
+// Constructor
+//==============================================================
+sphere::sphere(const sphere& s)
+{
+ i = s.i;
+ x = s.x;
+ v = s.v;
+ cell = s.cell;
+ lutime = s.lutime;
+ nextevent = s.nextevent;
+ nextcollision = s.nextcollision;
+ r = s.r;
+ gr = s.gr;
+ m = s.m;
+ species=s.species;
+}
+
+//==============================================================
+// Constructor
+//==============================================================
+sphere::sphere(int i_i, vector<DIM> x_i, vector<DIM, int> cell_i,
+ double lutime_i, double r_i, double gr_i, double m_i, int species_i):
+ i(i_i),
+ x(x_i),
+ cell(cell_i),
+ lutime(lutime_i),
+ r(r_i),
+ gr(gr_i),
+ m(m_i),
+ species(species_i)
+{
+}
+
+//==============================================================
+// Destructor
+//==============================================================
+sphere::~sphere()
+{
+
+}
+
+