Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / simulator / simulation / particle.py
diff --git a/research/transmission_spectroscopy/simulator/simulation/particle.py b/research/transmission_spectroscopy/simulator/simulation/particle.py
new file mode 100644 (file)
index 0000000..e1b29fa
--- /dev/null
@@ -0,0 +1,27 @@
+"""\r
+    Representation of a particle\r
+    @author Sam Moore\r
+    @copyright 2012\r
+    @email [email protected]\r
+"""\r
+\r
+import os\r
+import sys\r
+\r
+class Particle():\r
+    def __init__(self):\r
+        """Initialise a particle with no properties"""\r
+        self.properties = {}\r
+\r
+    def __init__(self, properties):\r
+        """Initialise a particle with given properties"""\r
+        self.properties = {}\r
+        self.properties.update(properties)\r
+\r
+    def step(self):\r
+        """Control the step of the dictionary"""\r
+        \r
+\r
+\r
+    def calculateForce(a, b):\r
+        """Calculate the force acting on a due to b"""\r

UCC git Repository :: git.ucc.asn.au