Skip to content

Commit

Permalink
Merge pull request #91 from ubermag/remove_dmi_field_example
Browse files Browse the repository at this point in the history
removed dmi as field example
  • Loading branch information
lang-m authored Oct 20, 2024
2 parents f244795 + 30190c0 commit 52a0489
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions micromagneticmodel/energy/dmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,7 @@ class DMI(EnergyTerm):
>>> D = {'region1': 1e-3, 'region2': 5e-3}
>>> dmi = mm.DMI(D=D, crystalclass='Cnv_z')
3. Defining the DMI energy term using ``discretisedfield.Field``.
>>> import discretisedfield as df
...
>>> region = df.Region(p1=(0, 0, 0), p2=(5e-9, 5e-9, 5e-9))
>>> mesh = df.Mesh(region=region, n=(5, 5, 5))
>>> D = df.Field(mesh, nvdim=1, value=5.7e-3)
>>> dmi = mm.DMI(D=D, crystalclass='D2d')
4. An attempt to define the DMI energy term using a wrong value.
3. An attempt to define the DMI energy term using a wrong value.
>>> dmi = mm.DMI(D=(1, 0, 0), crystalclass='T') # vector value
Traceback (most recent call last):
Expand Down

0 comments on commit 52a0489

Please sign in to comment.