e1b29faac1f0b34faa5f19447448d86c958c86d6
[matches/honours.git] / research / transmission_spectroscopy / simulator / simulation / particle.py
1 """\r
2     Representation of a particle\r
3     @author Sam Moore\r
4     @copyright 2012\r
5     @email [email protected]\r
6 """\r
7 \r
8 import os\r
9 import sys\r
10 \r
11 class Particle():\r
12     def __init__(self):\r
13         """Initialise a particle with no properties"""\r
14         self.properties = {}\r
15 \r
16     def __init__(self, properties):\r
17         """Initialise a particle with given properties"""\r
18         self.properties = {}\r
19         self.properties.update(properties)\r
20 \r
21     def step(self):\r
22         """Control the step of the dictionary"""\r
23         \r
24 \r
25 \r
26     def calculateForce(a, b):\r
27         """Calculate the force acting on a due to b"""\r

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