GithubHelp home page GithubHelp logo

mae_density's Introduction

Magnetic Anisotropy Energy Densities

Calculates magnetic anisotropy density of collinear systems

If you use this code, please cite: https://arxiv.org/abs/2205.00300. In that work, several examples are given for FeCl2, VSe2 and CrI3.

The code here post-processes Quantum Espresso (QE) output and works with versions > 7.0.0. Required QE output are data-file-schema.xml and atomic-proj.xml files that are produced at the end of projwfc.x runs.

Here is a typical example of how the code can be used:

#!/usr/bin/env python3
import sys
mae_path = '<MAE.py directory>'
sys.path.insert(0, mae_path)
from mae import MAE
mae = MAE(filename_data = './data-file-schema.xml',
          filename_proj = './atomic_proj.xml',
          wfc_dict = {'Cr':['s','s','p','d'], 
                     'I':['s','p']})
proj = mae.get_proj(['Cr1_d'])
res = mae.get_mat(proj)
mae.plot_dos_1D(res['Cr1_d'])
# 2D plotting is getting updated for a more efficient version with binning. 
# Let me know if you need to use it in your work, I can prioritize it. 
mae.plot_dos_2D(res['Cr1_d'])

This block of code above will create two plots for the MAE density around the d-orbitals of first Cr atom in CrI3.

wfc_dict is the dictionary of atomic wavefunctions (in the same order) for each pseudopotential used in the calculation.

1D plot is the marginal MAE densities on the valence and conduction bands. 2D plot is pair MAE density.

1D plot is similar to the Figures 4c, 4g, 6c and 6d in https://arxiv.org/abs/2205.00300. 2D plot is similar to the Figure 5 in the same manuscript.

mae_density's People

Contributors

kayahans 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.