By applying the attraction-repulsion code from the Nature of Code publication by Daniel Shiffman, I try to simulate the possible behavior of the fire ant colony when exposed to the electric fields. Six attractors represent six capacitors forming the electric field. When voltage is applied, electric field of each capacitor starts to attract the ants. Different voltage loads applied to the capacitors cause the swarm of ants instinctively choose the strongest source at the time. When capacitors are off the ants dissipate rapidly.
Pages
Categories
Archives