Giter Club home page Giter Club logo

macrospinmob's Introduction

Screenshot

Macrospin(mob)

This library provides fast simulations of 1 or 2 magnetic spins. The key feature is that you can specify arbitary time-dependent fields, spin torques, exchange constants, dipole tensors, anisotropy tensors, temperatures, and other torques. A graphical front-end is also provided, allowing visualization and analysis while it runs.

This package is currently under development, it seems to work, but it has yet to be rigorously tested. Feel free to play with it and pester us with questions or feature ideas.

Installing

Macrospin(mob) is built upon Spinmob and uses PyQtGraph for fast plotting. You can install these yourself, or follow the recommended approach.

To install Macrospin(mob), you can just clone the repository directory into your python's site-packages directory. We'll eventually make this a pip package... Once we have field-tested it a bit more.

Running

If you are using a Qt-based python console, you will likely need to set your graphical backend to something other than "inline", because this causes weird behavior.

To run it,

import macrospinmob
s = macrospinmob.solver()

This should pop up the GUI, which you can use to start setting parameters and running the thing. From the console, you can use code suggestions and the integrated help (e.g. in Spyder, type <ctrl>+i) to learn about all the other functionality. There is also macrospinmob.solver_api which provides a low-level scripted object with no graphics; its job is just to interface with the C-compiled library.

Finally, when we make official releases, they will be packaged with binaries for windows, mac, and linux. If you wish to compile the latest code, we've provided scripts for this in the main directory. Inside these scripts are notes about getting it to work (what you should install, etc).

macrospinmob's People

Contributors

jaxankey avatar

Stargazers

Jakub avatar

Watchers

James Cloos avatar Andrew Jayich avatar  avatar  avatar Julian Wolf avatar

Forkers

adrianows

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.