Abstract class for defining clusters of Particle objects.
Class for encapsulating and iterating over multiple Particle objects.
#define TYPE_DEFAULT
Definition Particle.h:18
#define EPSILON_DEFAULT
Definition Particle.h:20
#define SIGMA_DEFAULT
Definition Particle.h:19
Abstract class which models common information about Particle objects arranged in some cluster.
Definition Cluster.h:14
std::array< double, 3 > v
Starting velocity of the particles in the Cluster (before adding Maxwell-Boltzmann perturbations).
Definition Cluster.h:42
ParticleContainer & particles
Reference to the ParticleContainer object from the Simulation.
Definition Cluster.h:48
double m
Mass of the particles in the Cluster.
Definition Cluster.h:29
std::array< double, 3 > x
Starting coordinate of the Cluster.
Definition Cluster.h:23
double h
Distance between the particles in the Cluster.
Definition Cluster.h:26
double sigma
Distance where the Lennard-Jones potential reaches zero of the particles in the Cluster.
Definition Cluster.h:38
double epsilon
Depth of the potential well of the particles in the Cluster.
Definition Cluster.h:35
Class storing metadata about a Particle disc.
Definition Disc.h:21
std::vector< std::array< double, 3 > > getCircleCoordinates(double centerX, double centerY, double radius, double distance)
Helper function to get circle point (Particle) coordinates.
std::string toString()
Returns a string representation of this Disc.
int r
Radius of the disc in terms of number of particles.
Definition Disc.h:24
bool operator!=(const Disc &other) const
Overload of the inequality operator for Disc objects.
bool operator==(const Disc &other) const
Overload of the equality operator for Cuboid objects.
void initialize(size_t dimensions=2) override
Main function of Disc class, initializes the particles based on the disc metadata in a grid and adds ...
Disc(ParticleContainer &particles, const std::array< double, 3 > &x, int r, const std::array< double, 3 > &v, double h, double m, int type=TYPE_DEFAULT, double epsilon=EPSILON_DEFAULT, double sigma=SIGMA_DEFAULT)
Constructs a new Disc object with all the needed metadata.
int getR() const
Gets the radius of this disc.
Class for encapsulating multiple Particle objects..
Definition ParticleContainer.h:17
Enumeration class corresponding to the type schema type.
Definition vtk-unstructured.h:2125