[nmag-users] numpy array to set_H_ext

58 views
Skip to first unread message

Pepa Martínez

unread,
Nov 18, 2016, 4:14:44 PM11/18/16
to nmag-...@lists.soton.ac.uk
Hi,

I am simulating a system with circular exchange bias by taking the field generated after relaxing the structure at some defined points of the mesh using:

  h=sim.get_subfield('H_total_Co', SI(1, 'A/m'))

After treating the numpy array "h" I plug it to the system using:
 
  sim.set_H_ext(h, unit=SI('A/m'))

After doing so, the numpy "h" gets multiplied by 1e-6, why is that? It does not happen when I use a vector or a function instead of a numpy array...

thanks!!!
Reply all
Reply to author
Forward
0 new messages