GithubHelp home page GithubHelp logo

vzeizer / metropolis-mc-nanoparticles Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4.59 MB

This is a repository that contains the Metropolis Monte Carlo Method implemented in C++ to calculate the magnetization reversal of 3 D interacting systems, e.g., including Dipole-Dipole, Exchange and Dzyaloshiisnky-Moriya interactions.

C++ 100.00%

metropolis-mc-nanoparticles's Introduction

Monte Carlo Metropolis Nanoparticles!

This project consists in a simple yet powerful implementation of the Monte Carlo Metropolis algorithm to study the magnetization reversal of nanoparticles. This program was developed during the post-doctoral of Vagner Zeizer Carvalho Paes at Universidade Federal do Parana, Curitiba, Brazil during 2018-2019. Firstly, it was designed as a first step to study the hyperthermic properties of nanoparticles, including the effects of interaction such as the dipole-dipole and exchange.

Introduction

This program written in C++ is an implementation of the Metropolis Monte Carlo to calculate the magnetization reversal of nanoparticles as a function of applied magnetic field and temperature. This was motivated by the study of hyperthemic properties of nanoparticles in my first post-doctoral stage at Universidade Federal do Parana, Curitiba, Brazil during 2018-2019. There are several material parameters that can be tuned in order to obtain a different simulation. The common parameters are:

  1. Saturation magnetization, MS;
  2. Magnetocrystalline anisotropy constants, K1 and K2, including in-plane anisotropies and perpendicular anisotropies;
  3. Rotatable anisotropy, Krot;
  4. Field-dependent anisotropy, KF.

There are magnetic interactions included, such as the Dipole-Dipole, Exchange, and Dzyaloshiinsi-Moriya, whose intensities are given by the following parameters:

  1. beta -> dipole-dipole strength;
  2. jota -> exchange strength;
  3. m -> dzyaloshinskii moriya strength.

Nanoparticle arrangement:

  1. "square" -> a planar array of nanoparticles;
  2. "nanomembrane" -> forms a nanomembrane;
  3. "half_nanomembrane" -> forms a half nanomembrane.

Content of the files:

  1. main_metroplis_2D.cpp: main code of the metropolis implementation;
  2. init_vecloop.cpp: initialization of the magnetization vector;
  3. after_vecs.cpp: function to change the position of a single spin modification;
  4. angles_vecs.cpp: it finds the spherical angles between vectors -> it is used to calculate interactions;
  5. creating_pos.cpp: it creates the geometric structure previously chosen;
  6. energy_array.cpp: it implements boundary conditions for the geometric structure previously chosen;
  7. formula_dipolar.cpp: formula for the dipole-dipole interaction;
  8. formula_exchange.cpp: formula for the exchange interaction;
  9. formula_moriya.cpp: formula for the dzyaloshiinski-moriya interaction;
  10. rand_vec.cpp: it generates the new configuration within a solid cone;
  11. hystMCM_cpp.dat: output of the calculation.

MIT License

Copyright (c) 2019 Vagner Zeizer C. Paes

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

metropolis-mc-nanoparticles's People

Contributors

vzeizer avatar

Stargazers

 avatar

Watchers

 avatar

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.