How to use the micromagneticmodel.Dynamics function in micromagneticmodel

To help you get started, we’ve selected a few micromagneticmodel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ubermag / oommfc / oommfc / dynamics / dynamics.py View on Github external
import micromagneticmodel as mm


class Dynamics(mm.Dynamics):
    """Dynamics equation

    This class implements the sum of individual dynamics terms. It is
    obtained as a result of addition of two or more dynamics terms.

    Examples
    --------
    1. Adding a dynamics term to the dynamics equation.

    >>> import oommfc as oc
    ...
    >>> dynamics = oc.Dynamics()
    >>> dynamics += oc.Precession(gamma=oc.consts.gamma0)

    2. Creating the Hamiltoninan as a sum of two energy terms