mamonca

mamonca: magnetic Monte Carlo code - Published in JOSS (2024)

https://github.com/samwaseda/mamonca

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Scientific Fields

Physics Physical Sciences - 40% confidence
Last synced: 4 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: samwaseda
  • License: bsd-3-clause
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 5.6 MB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 4
Created almost 3 years ago · Last pushed 5 months ago
Metadata Files
Readme Contributing License

README.md

DOI

mamonca - interactive Magnetic Monte Carlo

This code allows you to launch Metropolis Monte Carlo simulations via Heisenberg Landau models (with various polynomial degrees) from a jupyter notebook.

Model

mamonca is based on the Heisenberg Landau model of the format:

$$\mathcal H = -\frac{1}{2}\sum{ij,\kappa}J{ij,\kappa}mi^{2\kappa+1}mj^{2\kappa+1} + \sum{i,\kappa} A{i,\kappa} m_i^{2\kappa}$$

where $i$ and $j$ go over all atoms and $\kappa$ is the exponent ($\kappa=1$ and $A_{i,\kappa}=0$ for all $i$ and $\kappa$ for the classical Heisenberg model). The evaluation takes place either via Metropolis Monte Carlo (MC) method or spindynamics (SD). MC has the advantage of converging very fast, while SD also delivers the kinetics.

How to compile

mamonca can be installed directly from conda:

conda install -c conda-forge mamonca In order to use build it from the repository, run git clone https://github.com/samwaseda/mamonca cd mamonca python setup.py build_ext --user

First steps:

In the following simple (but complete) example, we create a bcc Fe system using pyiron (install via conda install pyiron) and launch a Metropolis Monte Carlo simulation with a Heisenberg coefficient J=0.1 (eV) for the first nearest neighbor pairs:

```python from pyiron_atomistics import Project from mamonca import MC

basis = Project('.').create.structure.bulk( name='Fe', cubic=True )

Repeat the structure 10 times in each direction

structure = basis.repeat(10) J = 0.1 # eV neighbors = structure.getneighbors() firstshelltensor = neighbors.getshell_matrix()[0]

mc = MC(len(structure)) mc.setheisenbergcoeff(J * firstshelltensor)

mc.run(temperature=300, numberofiterations=1000) ```

More complete list of examples can be found in notebooks/first_steps.ipynb

How to set inputs and get outputs

As a rule of thumb, you can set all input parameters via functions starting with set_. Similarly, output values can be obtained via functions whose names start with get_. Most notably, you can get all basic output values via get_output() in a dictionary. Otherwise, take a look at the list of auto-complete and see their docstrings

Dependencies

  • Cython
  • numpy

Notes

  • Currently only Linux installation is supported
  • You can run tests located in the tests folder

Owner

  • Name: Sam Dareska
  • Login: samwaseda
  • Kind: user
  • Location: Kamchatka
  • Company: Sam and his funny friends

yooooooooo

JOSS Publication

mamonca: magnetic Monte Carlo code
Published
August 15, 2024
Volume 9, Issue 100, Page 6194
Authors
Osamu Waseda ORCID
Max-Planck-Institut für Eisenforschung, Max-Planck-Straße 1, D-40237 Düsseldorf, Germany
Tilmann Hickel ORCID
Max-Planck-Institut für Eisenforschung, Max-Planck-Straße 1, D-40237 Düsseldorf, Germany
Jörg Neugebauer ORCID
Max-Planck-Institut für Eisenforschung, Max-Planck-Straße 1, D-40237 Düsseldorf, Germany
Editor
Kelly Rowland ORCID
Tags
Heisenberg-Landau model Spin dynamics Metadynamics Thermodynamic integration

GitHub Events

Total
  • Release event: 2
  • Delete event: 2
  • Issue comment event: 1
  • Push event: 22
  • Pull request review event: 6
  • Pull request review comment event: 4
  • Pull request event: 8
  • Create event: 5
Last Year
  • Release event: 2
  • Delete event: 2
  • Issue comment event: 1
  • Push event: 22
  • Pull request review event: 6
  • Pull request review comment event: 4
  • Pull request event: 8
  • Create event: 5

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 355
  • Total Committers: 4
  • Avg Commits per committer: 88.75
  • Development Distribution Score (DDS): 0.017
Past Year
  • Commits: 49
  • Committers: 1
  • Avg Commits per committer: 49.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Sam Waseda o****a@m****e 349
s4b7r g****b@s****e 4
Jan Janssen j****n@l****v 1
Osamu Waseda o****a@i****r 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 0
  • Total pull requests: 35
  • Average time to close issues: N/A
  • Average time to close pull requests: 5 days
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.26
  • Merged pull requests: 29
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 7
  • Average time to close issues: N/A
  • Average time to close pull requests: about 5 hours
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.29
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • samwaseda (44)
  • jan-janssen (2)
Top Labels
Issue Labels
Pull Request Labels
bug (1) documentation (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 18 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 6
  • Total maintainers: 1
pypi.org: mamonca

mamonca - interactive Magnetic Monte Carlo code

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 18 Last month
Rankings
Dependent packages count: 10.0%
Dependent repos count: 21.7%
Downloads: 22.0%
Forks count: 22.6%
Average: 23.0%
Stargazers count: 38.8%
Maintainers (1)
Last synced: 4 months ago