Skip to content

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

ParSim::ParticleSystem::ParticleSystem(int N, double omega, double dim)
Parameterized constructor. Initializes a system of N 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.

double ParSim::ParticleSystem::distance(Particle &par1, Particle &par2)
Calculates distance between two particles par1 and par2.