summaryrefslogtreecommitdiff
path: root/src/spheres_poly/sphere.cpp
diff options
context:
space:
mode:
authorpants <jaron@kent-dobias.com>2016-12-07 13:29:51 -0500
committerpants <jaron@kent-dobias.com>2016-12-07 13:29:51 -0500
commit5ba4109f0021e7b2c9c66821461742a339e07355 (patch)
tree484ff12ba10a58a21bc3048c07757bb3f4fb6f3e /src/spheres_poly/sphere.cpp
parentcdb18338d3ae54785f311608d303420d5b47d698 (diff)
downloadfuse_networks-5ba4109f0021e7b2c9c66821461742a339e07355.tar.gz
fuse_networks-5ba4109f0021e7b2c9c66821461742a339e07355.tar.bz2
fuse_networks-5ba4109f0021e7b2c9c66821461742a339e07355.zip
added support for hyperuniform lattices using existing hard-sphere jamming routine
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()
+{
+
+}
+
+