Skip to content

Commit f1ab40f

Browse files
author
davidcorteso
committed
Updated two variable DMIs, added reference in comment
1 parent eb58da3 commit f1ab40f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

fidimag/micro/dmi.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class DMI(Energy):
110110
Thus, we can specify the DMI in this class as:
111111
112112
# Manually set an interfacial DMI
113-
fidimag.micro.DMI([D],
113+
fidimag.micro.DMI([D],
114114
dmi_type='custom',
115115
dmi_vector=[0, -1., 0, # -x neighbour
116116
0, 1., 0, # +x
@@ -120,7 +120,7 @@ class DMI(Energy):
120120
0, 0, 0 # +z z-dir
121121
]
122122
)
123-
123+
124124
For further examples, check the micro DMI class code
125125
126126
ARGUMENTS: ----------------------------------------------------------------
@@ -195,9 +195,13 @@ def setup(self, mesh, spin, Ms, Ms_inv):
195195
0, 0, 0 # +z
196196
])
197197

198+
# For the following DMIs with two constants check:
199+
# Leonov: Chiral skyrmion states in non-centrosymmetric magnets
200+
# https://arxiv.org/pdf/1406.2177.pdf
201+
# Leonov thesis: http://nbn-resolving.de/urn:nbn:de:bsz:14-qucosa-83823
198202
elif self.dmi_type == 'D_n':
199-
self.dmi_vector = np.array([1.0, 0, 0, # D1 components
200-
-1, 0, 0,
203+
self.dmi_vector = np.array([-1, 0, 0, # D1 components
204+
1, 0, 0,
201205
0, -1, 0,
202206
0, 1, 0,
203207
0, 0, 0,

0 commit comments

Comments
 (0)