Sahyun's Physics Applets in HTML5

HTML 5

Magnetic Domain Simulator

Move the magnet to see how the domains in the material change.

Note: Domains have a random probability of "flipping". It may take several passes of the magnet to align all the domains.

Adapted from Keith Warren's Magnetic Poles simulator for NGPET.

Portions of the code and design were developed with the assistance of OpenAI’s ChatGPT (GPT-5), September 2025.