Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. 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

Does somebody know about any tool for simulation and visualization of magnetic fields either of permanent magnets or solenoids, that can be used on Mac OS X? Maybe there is some software for Linux, but is open-source and can compiled for Mac OS X?

I want to have something like a canvas at which I can put the magnets, move them, and see how the magnetic field changes around them.

share|improve this question
Do you need to do these visualizations on data that you already have, or do you need to simulate the field then visualize? – Bill Barth Dec 20 '12 at 20:25
No, I don't have any data, so it must be simulated also. – BartoNaz Dec 20 '12 at 22:25
You should rewrite this question to reflect the fact that you want a magnet simulator not just a visualization program. – Bill Barth Dec 20 '12 at 22:40
up vote 4 down vote accepted

For this purpose you need to use a simulation software. One of the most common methods in Electromagnetics would be Finite element method, but you can also find Boundary Element Methods or Finite Difference Methods.

Some common software in EM are

A lot of people is also using COMSOL Multiphysics.

But I would say that this feature is implemented in a lot of different commercial and opensource applications. If your problem is 2D and you want opensource I would suggest Agros 2D, here an example:

enter image description here

share|improve this answer

Have you tried either VisIt or ParaView ?

share|improve this answer
It looks interesting, but as far as I understand, they just visualize the recorded data. But I want something like a canvas, to which I can put different magnets and then see the lines of magnetic field being drawn. And it needs some more specific tool, I guess. – BartoNaz Dec 20 '12 at 22:28

Try Mayavi. Look here and here for some nice examples of electric field visualizations.

share|improve this answer
This examples look really cool. But this just a plotting tool, right? So does it mean that I have to write the code for calculation of the magnetic fields and use Mayavi just to draw it? – BartoNaz Dec 20 '12 at 22:31
Yes you have to compute the fields. Your question was not clear whether you wanted a software that calculates the fields or just visualizes them. – Vijay Murthy Dec 21 '12 at 9:49

Ripplons' Biot-Savart

eight more characters for the stupid post minimum character count constraint.

share|improve this answer
Welcome to Scicomp.SE! The character limit is there for a reason -- such a link-only answer is not really helpful (for example, because links are not stable over time). Please consider expanding on your answer to describe the software and how it simulates EM fields. – Christian Clason Jun 1 at 18:40
I agree with @ChristianClason. The website is not that useful either, it does not provide (easily, at least) the description of the methods used by the software. – nicoguaro Jun 1 at 19:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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