How to use the micromagneticmodel.System 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 / system.py View on Github external
import os
import shutil
import micromagneticmodel as mm


class System(mm.System):
    """System class.

    This class is used for defining a micromagnetic system. In
    order to uniquely define a micromagnetic system, the following
    three parameters must be provided:

    - Name
    - Hamiltonian
    - Dynamics equation
    - Initial magnetisation configuration

    When driven, a directory with the same name (`oommfc.system.name`)
    will be created.

    Parameters
    ----------