Giter Site home page Giter Site logo

g-tensor's Introduction

Plot tensor in VESTA

Examples for plotting of EPR g- and A-tensors

Tensor can be plotted as double vectors for three principal axes of the tensor with vector lengths proportional to the tensor principal values.

Example 1. ZnGa2 defect structure in β-Ga2O3; spin density is indicated in yellow, g-tensor principal axes are indicated by thick double arrows with their length proportional to the Δg (deviation from the free electron value ge = 2.002391), and green colored Ga atoms are the ones with strong superhyperfine (SHF) interaction. The small O spheres are color coded: red O(1), pink O(2), and orange O(3), and the polyhedra surrounding the Ga and their type are indicated. The thin double arrows show the principal axes of SHF interaction. Figure from arXiv

GitHub_Logo

Example 2. VGa2 defect structure in β-Ga2O3, spin density, g-tensor, and Ga atoms with strong hyperfine interaction. From arXiv

GitHub_Logo

How to plot

Calculate tensor principal axes

Program src/Diag1.f90 takes the tensor from Quantum Espresso output, calculates principal values of g-tensor (A-tensor), and calculates Miller indexes (u,v,w) of tensor principal axes:

 axis of g-tensor in lattice vector notations u,v,w (for plot in VESTA)
--------------------------------------------------------------------------------
     -0.0261296      0.0123988      0.0392910
      0.0261296     -0.0123988     -0.0392910
--------------------------------------------------------------------------------

Add vectors in VESTA manually

Edit -> Vectors and click "New"

GitHub_Logo

Add vector in (u,v,w) coordinates, change radius (thickness of the vector), color, and uncheck "Penetrate atom"

GitHib_Logo

Select atom and click "Set", change scale factor to 1

GitHub_Logo

Add other vectors to the atom.
Tip: If you need to set vector between atoms, you can add additional atom at this point and set the size of the atom to 0.2.

Add vectors in VESTA automatically

In .xsf file with atom coordinates you can add six vectors to first six atoms (the vectors should be as units in crystollographic axes):

PRIMCOORD
  200    1                                               
  Ga     6.1068369711   1.5200228942   4.4761945299     -0.0261296      0.0123988      0.0392910  
  ...
  Ga     4.7167174875   1.5200228942   1.1556557386      0.0261296     -0.0123988     -0.0392910
  Ga    10.8217174641   0.0000000000   1.1556557386     
Edit file

Open .xsf file with VESTA and edit color, size,... of the vectors and rearrange them to one particular atom instead of six:

Edit -> Vectors

g-tensor's People

Contributors

dmitry-skachkov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

ds-rf

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.