The program simulates the normalized electric vector field given an input of a variable number of point charges. It uses Coulumb's law in vector form to calculate a three dimensional direction vector at each point of a specific grid resolution. This resolution can be varied in code.
For better overview, the alpha channel can be manipulated based on the standardized magnitude calculation before the normalization. The following plot can be enabled in the code (mag_plot = True
).
For every point charge in the simulation the force vector at a specific point on the grid acting on a standardized test charge is calculated using:
Where
The force vectors to every point charge from one point on the grid are added together resulting in the final vector for this point in space. This vector then gets normalized.