Open Siyuanq opened 3 years ago
Hi @Siyuanq I think the error is related to duplication in the mif file. You don't have to specify all the parameters for Slonczewski twice. In detail:
evolver = oc.Xf_TherrmSpinXferEvolver()
should be enoughalpha
is taken from precession termP
, Lambda
, J
(J_direction
), mp
, and eps_prime
(which can be omitted if it is zero) are taken from Slonczewski termsystem.T = T
to set temperaturemin_timestep
, max_timestep
, ... please refer to the original documentation (link is given on the website: https://ubermag.github.io/api/_autosummary/oommfc.Xf_ThermSpinXferEvolver.htmlAs you know, we haven't got an example in the documentation (https://ubermag.github.io/documentation/ipynb/oommfc/finite-temperature.html) yet. We would be very pleased if you would volunteer to also turn you notebook (maybe with a different set of material parameters, depending on what you are doing) into a tutorial that we could add to the relevant page linked above. Of course, your name would then be added to the list of contributor.
thank you. I will post my code as a sample after I finished my work.
Hello. My question is somewhat similar and refers to the answer you made here. I can't seem to find the answer anywhere else: in the code or docs.
My aim is to do the simulation at a finite temperature. In mumax3, there is the B_therm in the LLG equation - they work with the temperature this way basically. I can just set, e.g., temp = 293 to set the temperature to 293K. Or deal with the regions. When you set system.T what exactly is happening? Is it somewhat similar?
The reference for mumax is here https://mumax.ugent.be/mumax3-workshop/tutorial3.pdf (with the example of the code) And the article it's based on is here: https://aip.scitation.org/doi/10.1063/1.5003957
You also hinted at system.T in the issue #211
In oommf, I think it does not offer thermal effect so when I want to include the thermal effect, I have to use some external evolvers, the system.T is to transfer the temperature infomation to oommf. But I have limited infomation about mumax3 itself. It seems that mumax include thermal effect naturally. If so, I think if we set the temperature to nonzero, it will automatically include the temperature infomation. Till now, I have not look into thermal effect in mumax3 so I am not sure if my guess is right. I run one simulation just now, but it seems that purely change the system.T will not make any changes to the system. I will reply if I have more findings.
@Siyuanq If you are happy to share it with us, would we be able to get a copy of your code to use as an example in our documentation?
[https://res.cdn.office.net/assets/mail/file-icon/png/generic_16x16.png]domain wall velocity analysis.ipynbhttps://uillinoisedu-my.sharepoint.com/:u:/g/personal/siyuanq3_illinois_edu/EWCxg2t6xu5KmJeQ-ldH18wBkk5vkxF01O71uFGOZeD_RQ I am sorry for the long delay. Here it is. Thanks, Siyuan
From: Martin Lang @.> Sent: Tuesday, September 12, 2023 10:59 To: ubermag/help @.> Cc: Qian, Siyuan @.>; Mention @.> Subject: Re: [ubermag/help] Xf_ThermalXferEvolver (#181)
@Siyuanqhttps://urldefense.com/v3/__https://github.com/Siyuanq__;!!DZ3fjg!5EQAHnpvM-NnF5hoJUvx1F_ZD3PUM-skNB_WBs2jWHb6xKfJ10GXMykmpxirEkiFSriOSSiq_lX6PHQ_HIB7zb9OoonefA$ If you are happy to share it with us, would we be able to get a copy of your code to use as an example in our documentation?
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/ubermag/help/issues/181*issuecomment-1716003779__;Iw!!DZ3fjg!5EQAHnpvM-NnF5hoJUvx1F_ZD3PUM-skNB_WBs2jWHb6xKfJ10GXMykmpxirEkiFSriOSSiq_lX6PHQ_HIB7zb_r9JASLg$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AQMDAYEXODBVOOU56MGPDN3X2CBGVANCNFSM5F5MQVTA__;!!DZ3fjg!5EQAHnpvM-NnF5hoJUvx1F_ZD3PUM-skNB_WBs2jWHb6xKfJ10GXMykmpxirEkiFSriOSSiq_lX6PHQ_HIB7zb-TVVcVSQ$. You are receiving this because you were mentioned.Message ID: @.***>
Hi @Siyuanq thanks for your quick response. Unfortunately, the link requires a login and hence I cannot access the notebook. Can you maybe upload the notebook here (as zip) or send a different link?
I hope this time it works. Best, Siyuan
From: Martin Lang @.> Sent: Wednesday, September 13, 2023 2:27 To: ubermag/help @.> Cc: Qian, Siyuan @.>; Mention @.> Subject: Re: [ubermag/help] Xf_ThermalXferEvolver (#181)
Hi @Siyuanqhttps://urldefense.com/v3/__https://github.com/Siyuanq__;!!DZ3fjg!-oDJYmIn3zirGKvhDtKqUEDcWSaergUT1J5PSuSbk1gOenirn7wA4dsyBkuWnAKUbxfwDaPD3vfpEmVox9Tc-v5sqm-WiA$ thanks for your quick response. Unfortunately, the link requires a login and hence I cannot access the notebook. Can you maybe upload the notebook here (as zip) or send a different link?
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/ubermag/help/issues/181*issuecomment-1717090465__;Iw!!DZ3fjg!-oDJYmIn3zirGKvhDtKqUEDcWSaergUT1J5PSuSbk1gOenirn7wA4dsyBkuWnAKUbxfwDaPD3vfpEmVox9Tc-v41VFZOdw$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AQMDAYBGW6A3MQRUK7K57HLX2FN6BANCNFSM5F5MQVTA__;!!DZ3fjg!-oDJYmIn3zirGKvhDtKqUEDcWSaergUT1J5PSuSbk1gOenirn7wA4dsyBkuWnAKUbxfwDaPD3vfpEmVox9Tc-v7EGFNCMg$. You are receiving this because you were mentioned.Message ID: @.***>
Ok. Getting back to the question of the temperature. I took a look at the mumax3c code. I believe adding something like the following lines will add the support of the temperature for the simulations. Tried creating pull request. file: ubermag/mumax3c/tree/master/mumax3c/scripts/driver.py
if system.T > 0:
TK = system.T
mx3 += f"Temp = {TK}\n"
We can directly pass the value of system.T to mumax3 to deal with.
I try to use Xf_ThermalXferEvolver in the ubermag but there's an error that"error in oommf run". It appears both on my local computer and the binder. The following is the error report. Also, I am confused with the Xf_ThermalXferEvolver that, the spin current terms are both included in Slonczewski and Xf_ThermalXferEvolver. Should I include both term as I did in the screen cut or what is the right way to use the Xf_ThermalXferEvolver .