Giter Club home page Giter Club logo

akhlakm / lammps_mspin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yingling-group/lammps-mspin

0.0 0.0 0.0 136.74 MB

LAMMPS plugin for magnetic nanoparticles simulation with atomistic resolution.

License: GNU General Public License v2.0

Shell 0.44% C++ 82.08% Python 2.27% Perl 0.28% C 1.00% Emacs Lisp 0.01% Arc 0.12% Fortran 4.05% Tcl 6.74% MATLAB 0.05% Awk 0.01% xBase 0.01% Gnuplot 0.01% Cuda 1.65% Makefile 0.27% CMake 0.92% AMPL 0.02% Metal 0.01% Jupyter Notebook 0.06% M4 0.01%

lammps_mspin's Introduction

The MSPIN Package

This package contains a fix rigid/nvt/mspin command that updates nanoparticle dynamics subjected to external magnetic field and mangetic dipolar interactions.

It also contains commands to compute the externel field interaction energy, dipolar interaction energy, and interparticle distance during simulation.

See the doc page for the fix rigid/nvt/mspin or the compute mspin/energy or compute mspin/distance commands for detailed usage instructions.

Use of this package requires LAMMPS to be built with the RIGID package.

There are example scripts for using commands in this package in the examples/mspin directory.

The authors of the package is Akhlak U. Mahmood (amahmoo3 at ncsu dot edu) and Yaroslava G. Yingling (yara_yingling at ncsu dot edu) at North Carolina State University, USA. Contact the authors directly if you have questions.

Developed for simulation method described in:

A.U. Mahmood and Y.G. Yingling. All-Atom Simulation Method for Zeeman Alignment and Dipolar Assembly of Magnetic Nanoparticles. Journal of Chemical Theory and Computation (2022) doi:10.1021/acs.jctc.1c01253.

Installation

git clone https://github.com/yingling-group/lammps-mspin.git
cd lammps-mspin
mkdir build
cd build
cmake -C ../cmake/presets/mspin.cmake ../cmake
make -j4

Please update the cmake/presets/mspin.cmake preset file according to your machine's configuration before building.

Usage

This package adds one fix and two computes. Please see the following doc files for usage details.

  • doc/src/fix_rigid_mspin.rst
  • doc/src/compute_mspin_distance.rst
  • doc/src/compute_mspin_energy.rst

Update of the official code

List of all modifications:

$ git diff lammps/stable --name-only

cmake/CMakeLists.txt
cmake/presets/mspin.cmake
doc/src/compute_mspin_distance.rst
doc/src/compute_mspin_energy.rst
doc/src/fix_rigid_mspin.rst
examples/mspin/README.md
examples/mspin/data.mspin
examples/mspin/in.mspin
examples/mspin/log.3Aug2022.g++.1
examples/mspin/log.3Aug2022.g++.4
src/MSPIN/README.md
src/MSPIN/compute_mspin.cpp
src/MSPIN/compute_mspin.h
src/MSPIN/compute_mspin_distance.cpp
src/MSPIN/compute_mspin_distance.h
src/MSPIN/fix_mspin_nh.cpp
src/MSPIN/fix_mspin_nh.h
src/MSPIN/fix_mspin_nvt.cpp
src/MSPIN/fix_mspin_nvt.h
src/Makefile
src/RIGID/fix_rigid.cpp

Other than adding the package specific files in the src/MSPIN, doc/src and examples/mspin directories, the following changes are made to the official LAMMPS files.

  • src/RIGID/fix_rigid.cpp updated to allow additional arguments.
  • src/Makefile updated to add the name of the package to the make PACKAGE list.
  • cmake/CMakeList.txt updated to add the name of the pacakge to the cmake STANDARD_PACKAGES list.
  • .github directory removed.

Recent Changes

Jan 20, 2023

lammps_mspin's People

Contributors

akhlak-mahmood avatar akhlakm 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.