GCMC Simulation
A C++ and Python-based Monte Carlo simulation framework for interacting particles.
|
Functions | |
void | initializeParticles (std::vector< Particle > &particles, const SimulationBox &box, int N, bool random, unsigned int seed) |
Initializes N particles in the simulation box. | |
void initializeParticles | ( | std::vector< Particle > & | particles, |
const SimulationBox & | box, | ||
int | N, | ||
bool | random = true, | ||
unsigned int | seed = 0 ) |
Initializes N particles in the simulation box.
particles | A vector to store the particles. |
box | The simulation box where particles will be placed. |
N | The number of particles to initialize. |
random | If true, particles are placed randomly; if false, they are placed in a grid. |