Hello Wolfgang you last, I reconsidered my original solution and indeed found a silly mistake when I calculated the curl of the potential values. Of course then, the implementation that you suggested was correct and simple enough.
Probably, when I added the additional first derivative term, I solved the equation in r * A (or radius * potential), which was fixing the bug in my evaluation of the B field. Sorry for my email flood, and thanks again for your help, hopefully this topic will be useful for someone else in the future. Andreas -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/5716a342-93b3-4090-95c9-8750b155a717n%40googlegroups.com.