Visualizing magnetic fields

Hi,

I’d like to visualize magnetic fields between magnets and charges. Fieldlines/streamlines would be ideal but e.g. vector arrows would do too.

Do you have any tipps on how I could go about?
Any examples/tutorials out there?

Thanks a lot,
Florian

If you are beginning with OpenGL, search opengl tutorials on your favorite search engine, I am sure you will find what you need to draw lines and points.
But I don’t know if a tool already exists to visualize this kind of data.

You can try VTK (Visualization Toolkit) for streamlines etc. It is an ideal package for visualizing things like magnetic fields.