Use TurboWarp if it lags: https://turbowarp.org/1006145582?hqpen - Click and drag the magnets to move them around - Change the "strength" slider to increase or decrease every magnet's strength - Change the "num. magnets" slider to select the number of magnets - Adjust the "precision" slider to change the quality/size of the arrows (lower = better) - Press the "R" key or click the rotate button in the bottom right to rotate the previously selected magnet Try experimenting with different angles and positions of the magnets to see how their fields interact!
Credit: Scratch website/block design for rotation arrow If you'd like to learn how it works, look inside the project for documentation! General info: The dot at the end of each line indicates which way it's facing (North to South). Each line maxes out at a certain length in order to reduce visual confusion, but in reality, the field vectors may be larger in some cases than displayed. The patterns are similar to those produced by iron filings in the presence of a magnetic field, as they tend to align themselves as well. Every magnet has a North and South pole. Like poles repel each other and opposites attract. You can see this interaction in the simulation by observing the direction of the field when the poles of two different magnets are close to each other. If they are opposite poles (one North and one South), the lines between the two magnets will point to each other. If the same pole (both North or both South), the field lines will be directed horizontally as if they were being squished. You can also line up and stack different magnets to see how multiple small magnets can become a singular larger magnet, or how disorganized magnets together create a (near) net 0 field. If you have any questions, I will be happy to answer them! :)