autumn ball pit black hole boids bubbles chladni plate cloth dog fireflies fireworks fish pond grass gravitational lensing hot air balloon lightning tree lorenz attractor magnet bar magnet horseshoe meteor shower murmuration neurons newtons cradle pendulum chain sheepdog slime mold snake snowflake solar system submarine sun attraction water box water ripple
move, click, tap
random
crsor  /  all sims  /  magnet bar

Bar magnet — bar magnet field simulation

A bar magnet rides the cursor and rotates with cursor velocity. Iron filings align to the dipole field and drift toward the nearest pole.

How it works

Bar magnet at the cursor; rotates with cursor velocity.

Fine filings align to the dipole field and drift along their aligned axis toward the nearest pole; speed field strength. Filings absorbed at the magnet respawn at a random screen edge — continuous inflow.

Related simulations

Categories: Physics.