Error when adding B_demag.Comp(2).Average() to a table - cannot use float 64 as engine

5 views
Skip to first unread message

Fil Vag

unread,
2:16 AM (7 hours ago) 2:16 AM
to mumax2
Dear mumax community, 

I am trying to run a hysteresis loop, but instead of plotting B_ext vs magnetization in the z-axis, I want to plot B_ext vs B_demag. To this end, I tried tableadd(B_demag.Comp(2).Average()) to average the z demag field over the entire geometry and be able to plot it, however I got an error that I cannot use float 64 as engine. Alternatievely, I tried the same without the Comp() part but got the same error, only now that I can't use vector as engine. 

Any suggestions? 
Kind regards

Felipe Garcia

unread,
5:19 AM (4 hours ago) 5:19 AM
to mum...@googlegroups.com
Hi,

I think that the problem is average(). Averaging is implicit when it dumps the data to table this is why it does not like directly a float. tableadd(B_demag.Comp(2)) should work (if it does not work then you can simply add  float. tableadd(B_demag) that definitely will work.

Regards,
Felipe

--
You received this message because you are subscribed to the Google Groups "mumax2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mumax2+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mumax2/2b50fcd1-52fe-4dc0-94fc-c98a6ed940f0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages