Code Monkey home page Code Monkey logo

Comments (5)

marijanbeg avatar marijanbeg commented on July 27, 2024

Hi @zuosl01, thank you for your question. I am not sure I understand whats is the plotting issue you encountered. Could you please give us more details - ideally a short failing example?

Regarding the second part of the question, oommfc does not support periodic boundary conditions and demagnetisation.

from workshop.

zuosl01 avatar zuosl01 commented on July 27, 2024

Thank you for your reply. The failing example is attached. There are not arrows in the mapping. I have a another question now. For the uniaxialAnisotropy, if the first anisortropy constant K1<0, the second anisortropy constant K2>0, and the easy axis u is [100], how to express them? For example, if K1=-3e4, K2=1e4, and the u is [100], is the following grammar right?
K1 = -3e4 # uniaxial anisotropy constant (J/m3)
K2 = 1e4
u = (1, 0,0) # uniaxial anisotropy axis
mm.UniaxialAnisotropy(K1=K1,K2=K2, u=u))
failing example
Thank you very much! I am looking forward to your reply.

from workshop.

marijanbeg avatar marijanbeg commented on July 27, 2024

Thank you for the clarification. It looks like the number of discretisation cells you are plotting is very large. matplotlib cannot plot so many arrows and keep the plot informative. You can reduce the number of cells to be plotted by passing n. For example: system.m.plane('y', n=(20, 20)).mpl(). You can also refer to this tutorial: https://github.com/ubermag/workshop/blob/master/tutorials/mpl-visualisation.ipynb. In addition, you can also consider reducing the number of discretisation cells in the mesh (if physically justified).

Regarding uniaxial anisotropy, you are right - this is the right way to define it.

Does this resolve your issue?

(Please note that we have a dedicated help repository: https://github.com/ubermag/help, where we encourage all users to raise issues for any Ubermag package.)

from workshop.

zuosl01 avatar zuosl01 commented on July 27, 2024

Thank you for your reply. My issue is resolved.

from workshop.

marijanbeg avatar marijanbeg commented on July 27, 2024

Great, thank you for letting us know. If you have an interesting use case about how you use Ubermag and would like to share it with others, I am sure others would find it useful - you can write a tutorial and we can make it part of the documentation.

from workshop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.