Closed code-whale closed 3 years ago
Hi @code-whale, thank you for your question. I am not sure I understand correctly what is the issue you are reporting (and I am not a muview expert :/).
What I assume the problem could be is that you are initialising the magnetisation in (0, 0, -1) direction and have only exchange energy term. After relaxing, you get the same state. Then you cut a z-plane and plot. mpl
tries to find an in-plane component of magnetisation (x and y components) and plot the arrows. This can be tricky for matplotlib because x and y components are "zero" and it could pick up numerical noise and amplify them.
We provide vector_scale
argument you can pass to mpl
function to adjust this. Please have a look at the attached file:
If this does not answer your question, please feel free to reopen it.
Dear Ubermag Team, When I use
mpl()
for drawing, I find that the output norm is inconsistent with my definition, and the specific difference is shown in the figure below: From the image, we can see that the lengths of the red and blue arrows are not consistent, but in the norm function I defined, the lengths of the two should be consistent. To confirm this, I open the generated OMF file with muview, and find that the length of the two files is the same in muview. Can you tell me the reason for the difference in the result ofmpl()
drawing? Is my code wrong? This is the result of opening the same OMF file in muview I attach my code below: