ubermag / workshop

Workshop: Micromagnetics with Ubermag
BSD 3-Clause "New" or "Revised" License
27 stars 13 forks source link

UniaxialAnisotropy energy #24

Closed Lee-89757 closed 4 years ago

Lee-89757 commented 4 years ago

Hi, Sir. I am wondering if we can add mutiple UniaxialAnisotropy term in Ubermag. I tried this and it said just one UniaxialAnisotropy term was allowed. But as I know, in OOMMF, we can put as many as we want as long as they have different names. And I also tried put a name value in mm.UniaxialAnisotropy() but it seems to be invalid. So how can I add another UniaxialAnisotropy term in one system?

Thank you very much!

marijanbeg commented 4 years ago

Hi @Lee-89757, thank you for your question. We are making a tutorial on this topic and we will cover it tomorrow during the live session. As soon as the tutorial is completed, I will add a link here, so you do not have to wait until tomorrow.

marijanbeg commented 4 years ago

Hi @Lee-89757, thank you for your patience. Please update ubermag (conda update ubermag) and have a look at this short tutorial: https://oommfc.readthedocs.io/en/latest/ipynb/multiple-terms.html

I am going to cover it during tomorrow's live session as well.

Lee-89757 commented 4 years ago

Thank you very much and it helps me a lot