Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi I am looking for some code to (computationally) calculate the magnetic field of a rectangular permanent magnet in 3D space. Preferably I could edit it to add in my own dimensions. Does anyone know of anything?

share|cite|improve this question

closed as off topic by David Z Jan 15 '13 at 2:01

Questions on Physics Stack Exchange are expected to relate to physics within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Hi Josh - this is a recommendation request, which isn't appropriate for this site, and besides, a lot of computational questions are off topic here. You could ask in Physics Chat (also try the chat room for Computational Science) – David Z Jan 15 '13 at 2:02
up vote 1 down vote accepted

Yes, this guy does it awesomely: See the links within, which contains scripts.

share|cite|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.