[quote author=Fu-Kwun Hwang link=topic=1602.msg6455#msg6455 date=1275987211]
Are you trying to add a visual effect to the applet, or you really need a very accurate calculation for the magnetic field inside the magnet?
[/quote]
the visual effect of a uniform B field, not accurate calculation.



[quote author=Fu-Kwun Hwang link=topic=1602.msg6455#msg6455 date=1275987211]
The magnetic field of the above applet were calculated with finite number of current loop.
The magnetic field strength is inverse proportional to distance square.
So the error dur to field calculation become too large. May be that is the reason you try to "saturate: it.
[/quote]
Yes! i don't believe B field inside the bar magnet can be so big and direction random, it should an uniform B field in my understanding.


[quote author=Fu-Kwun Hwang link=topic=1602.msg6455#msg6455 date=1275987211]
I would suggest you just calculate the field at one of the end point as the magnetic field inside the magnet. i.e. assume the field is uniform inside the magnet (the same vector as the field at the center of end point).
[/quote]
i don't quite get what is mentioned here.
but i will try again soon :)