Dear Miftah,
https://groups.google.com/forum/#!searchin/nmag-users/current/nmag-users/iS3S27cW_Qk/fFli7XKtpHYJ<
https://groups.google.com/forum/#%21searchin/nmag-users/current/nmag-users/iS3S27cW_Qk/fFli7XKtpHYJ>
thank you for the clear summary, and for referring to the older message regarding this topic. I did reply to that older email off-list after clarifying the question. Here is the reply:
Dear Khan,
so your question is really about the non-uniform current density? If this works, (I would need to test or look it up and am currently travelling), you can set a non-uniform current density in the same way you would set the magnetisation depending on space.
For example
http://nmag.soton.ac.uk/nmag/current/manual/singlehtml/manual.html#spin-waves-example
shows how to use set_m to set a non-uniform magnetisation,
and you should (!) be able to use set_current_density in the same way to set a non-uniform current density. (Untested at the moment; please let me know if this works or doesn't'.)
Regards,
Hans
So the short answer is: yes, I’d expect this to work but am not entirely certain ;-) - I haven’t heard back from Khan at the time.
The fact that you don’t get an error message is promising. Is it possible your mesh has no nodes around the origin, or no nodes within the region of the disk, so that only the ‘else’ branch of your if-statement is executed?
Best wishes,
Hans