HysteresisDriver#
- class oommfc.HysteresisDriver(**kwargs)#
Hysteresis driver.
Only attributes in
_allowed_attributescan be defined. For details on possible values for individual attributes and their default values, please refer toOxs_MinDriverdocumentation (https://math.nist.gov/oommf/).Examples
Defining driver with a keyword argument.
>>> import oommfc as mc ... >>> hd = mc.HysteresisDriver(stopping_mxHxm=0.01)
Passing an argument which is not allowed.
>>> import oommfc as mc ... >>> md = mc.HysteresisDriver(myarg=1) Traceback (most recent call last): ... AttributeError: ...
Getting the list of allowed attributes.
>>> import oommfc as mc ... >>> hd = mc.HysteresisDriver() >>> hd._allowed_attributes [...]
4. How to define multiple steps with this driver. >>> import micromagneticmodel as mm >>> import oommfc as oc >>> system = mm.examples.macrospin() >>> sd = oc.HysteresisDriver() >>> H = 1 / mm.consts.mu0 >>> sd.drive(system, Hsteps=[ … [(0, 0, 0), (0, 0, H), 10], … [(0, 0, H), (0, 0, -H), 10], … [(0, 0, -H), (0, 0, 0), 10], … ]) Running OOMMF …
Methods
__dir__Default dir() implementation.
__eq__Return self==value.
__iter__Iterator.
__repr__Representation string.
driveDrives the system in phase space.
drive_kwargs_setupAdditional keyword arguments allowed for drive.
scheduleSchedule drive of the system in phase space.
schedule_kwargs_setupAdditional keyword arguments allowed for schedule.
write_mifWrite the mif file and related files.
Properties
nameName.