Magnetism
A very common source of magnetic field found in nature is a dipole, with a "South pole" and a "North pole", terms dating back to the use of magnets as compasses, interacting with the Earth's magnetic field to indicate North and South on the globe. Since opposite ends of magnets are attracted, the north pole of a magnet is attracted to the south pole of another magnet. The Earth's North Magnetic Pole (currently in the Arctic Ocean, north of Canada) is physically a south pole, as it attracts the north pole of a compass.
A magnetic field contains energy, and physical systems move toward configurations with lower energy. When diamagnetic material is placed in a magnetic field, a "magnetic dipole" tends to align itself in opposed polarity to that field, thereby lowering the net field strength. When ferromagnetic material is placed within a magnetic field, the magnetic dipoles align to the applied field, thus expanding the domain walls of the magnetic domains.
Magnetic level gauge
Exploring the physics and engineering behind this design, requires looking at basic magnetism. A standard bar magnet has two magnetic poles: north and south. (The north will read positive on a gauss meter and the south will read negative.) Magnetic field are mapped using magnetic flux lines. These lines are a graphical representation of the magnetic field density. They show the direction of flow for the magnetic field and represent relative field strength – the closer together the lines are, the stronger the magnetic field. Flux lines will always travel from the north pole to the nearest south pole and always leave and enter surfaces at 90°, or perpendicular to the surface. They can only travel in straight lines or curved paths, which means they can never make a sudden, abrupt change in direction. Flux lines will also always follow a path of least magnetic resistance. Most importantly, they can never cross one another.