For a circular boundary, set both the axis lengths to same value which is the radius.
BOUNDARY POINTS
The energy between two charges of p and q units, separated by a distance d. Please stick to using p, q and d while modifying this function.
ELECTROSTATIC WALK
Move the nth charge, a distance of d in the direction of electrostatic force, if the new location is within the boundary.
Code : electrostaticForce(n, d)
Pick a random charge
Code : pickCharge()
ALGORITHM
PLAY
STEP
RESET
The code is written in Javascript and exact function names have to followed since they are case sensitive.
CHOOSE ALGORITHM
The goal is to attain minimum energy configurations. Some algorithms should work for certain cases.
N Charges inside a boundary
Finding Minimum Energy Configurations
Vinton Adrian Rebello, Manas Shetty and Prajwal DSouza
inspired by the work of Kari J Nurmela