Dynamics#
- class micromagneticmodel.Dynamics(terms=None)#
Dynamics terms container class.
- Parameters:
terms (list) – A list of dynamics terms.
Examples
Defining dynamics terms container.
>>> import micromagneticmodel as mm ... >>> terms = [mm.Precession(gamma0=mm.consts.gamma0), mm.Damping(alpha=0.1)] >>> dynamics = mm.Dynamics(terms=terms) >>> len(dynamics) # the number of terms 2
Methods
__add__Binary
+operator.__contains__Determine whether a term of the same type as
itemis in the container.__dir__Extension of the
dir(self)list.__eq__Relational operator
==.__getattr__Accessing an individual term from the container.
__getitem__Access individual terms from the container by index.
__iter__Generator yielding all terms in the container.
__len__The number of terms in the container.
__repr__Representation string.
__sub__Binary
-operator.getReturn a list of all terms of type
typein the container.