About the Gauss's Law simulation
Gauss's law says the electric flux through any closed surface equals the charge enclosed divided by ε₀. In this simulation the flux is not taken from the law — it is computed by adding up E·n dA over thousands of small patches of a sphere, a can-shaped cylinder or a lumpy irregular surface, so you can test the law yourself.
Change the surface's shape and size: the flux stays the same while the same charge is inside. Move a charge outside: its field lines enter on one side (blue) and leave on the other (red), and its net contribution is zero. That is why, for calculations, you choose a surface matching the symmetry — then E can be pulled out of the integral.
Also covers: gauss's law, electric flux, gaussian surface, q enclosed by epsilon0, flux through closed surface.




