Skip to content

kavinaidoo/magneticallymodellingmagsafe

Repository files navigation

Magnetically Modelling MagSafe

Magnetic Models of Apple's (iPhone) MagSafe Magnet Array (excluding the clocking magnet)

Files in this repo

p5.js version

a_p5

  • hosted via GitHub pages here
  • 2D model, interactive - used to visualise forces

Magpylib version

a_magpylib_1

a_magpylib_2

matplotlib version

a_matplotlib

How to have a play

To use the p5.js version

To interactively modify the p5.js version

To use the magpylib and matplotlib versions, import into Google Colab:

More Info

Read this for more context, fun animations etc -> https://kavi.sblmnl.co.za/magnetically-modelling-magsafe/

PRs/Issues/Code optimization suggestions welcome!

MagSafe is a trademark of Apple Inc.

About

Magnetic Models of Apple's (iPhone) MagSafe Magnet Array (excluding the clocking magnet)

Resources

Stars

Watchers

Forks

Languages