-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems of spatially varying DMI #155
Comments
Hi, I think you found a bug in the code. Thanks for reporting it. In the
where |
Hey, I realized DMI doesn't accept spatially varying DMI for interfacial systems, we can implement it maybe next week. Spatial only works for bulk DMI |
Hi, @davidcortesortuno |
Hi, I just updated the documentation and DMI classes to allow spatial dependence of the interfacial DMI. Can you build Fidimag again and test if it now works for you? |
Hi, @davidcortesortuno |
Ah, the error is because your DMI function should return 6 values, which are the DMI values for every neighbour (the neighbour list depends on the mesh you use, check the documentation for the DMI function), something like def D_pos(r):
x, y, z = r
if x < L/2:
return np.zeros(6)
else:
return np.ones(6.) * D However you might also set these values at the boundary. At |
OK,it works. |
Dear fidimag team:


How can I add a spatially varying DMI in atomistic simulation ? I have tried to do this with a function like this :
but it returns :
The text was updated successfully, but these errors were encountered: