Four charged particles produce a quadrupole electrostatic potential.

An Introduction to Computer Simulation Methods
Chapter 10 Examples: Electrodynamics

We compute the electric fields due to static and moving charges, describe methods for computing the electric potential in boundary value problems, and solve Maxwell's equations numerically.

 

The following EJS models are described in Chapter 10 of the EJS adaptation of An Introduction to Computer Simulation Methods.

 

Download

 

An Introduction to Computer Simulation Methods examples are distributed as a ready-to-run (compiled) Java archive.  Double clicking the csm_ch10.jar file will run the chapter 10 examples if Java is installed.  You can examine and modify the model for these examples if you have EJS installed by right-clicking within the program and selecting "Open Ejs Model" from the pop-up menu.