Class: ParticleSystem
Introduction¶
This class handles creation of a particle System of particle objects.
The particle system is an instance of the class ParSim::ParticleSystem. A ParticleSystem object basically
represents our particle system each entity of which is a Particle object.
ParticleSystem has an array of Particle objects created on heap.
| Attributes | Description |
|---|---|
Particle *particle_array |
An array of Particle objects |
Other attributes are total number of particles in a system, size etc.
| Attributes | Description |
|---|---|
int no_of_particles |
Total number of particles in the system |
double L |
Size of the system \(L\) |
double phi |
Area density of the system \(\phi\) |
\(L\) and \(\phi\) will be ofcourse related.
Intialization¶
Parameterized constructor. Initializes a system ofN particles on a lattice grid defined by length dim.
Each particle has omega_activity set to omega.
There are other helpful methods that might be needed.
Calculates distance between two particlespar1 and par2.