Git Product home page Git Product logo

julia-phonons's Introduction

Julia-Phonons

Codes to play with Phonons, as output from Phonopy, in Julia.

MAPI Phonon decomposition Per atom energy-mode decomposition.

A work in progress.

These codes read a mesh.yaml from a Phonopy calculation (Gamma only, save the eigenvectors); and a VASP POSCAR file on this structure, to collect coordinate and atom information.

Using this

Beware - Dragons!

  • First do a standard Phonopy calculation pipeline, to get your FORCE_SETS etc., then output the Eigenvectors to your mesh.yaml.

  • The animation part of this package assumes that the mode is at Gamma, but (touch wood), the Inverse Participation Ratio and Atomic decomposition by energy and displacement should also work when there's a complex phase factor, BUT THIS IS AS YET UNTESTED.

To generate a Gamma point Eigenvectors file, your Phonopy input should contain something like:

DIM = 2 2 2
FC_SYMMETRY = 1
MP = 1 1 1

EIGENVECTORS=.TRUE.

Then take your POSCAR and mesh.yaml, put them in a suitable directory with these codes, and then edit phonopy_projector.jl to do something useful with them.

Features

  • 'Animated' .xyz files, with or without supercell expansion.
    • ((I recommend Pymol to visualise, with set grid_mode,1 and show spheres ))
  • Decomposition to individual atoms, norm of Energy or Displacement weighted phonon eigenvectors
  • Decomposition to atom type, for generating %fractional contribution of structure to phonon modes
  • Inverse Participation Ratio (IPR) of the mode by Energy and Displacement, as a localisation metric.
  • 'Conflation' animation of multiple modes, with the relative harmonies being displayed
  • Generates a synchronised audio-track 'warble' for the relative harmonies of the conflation: https://www.youtube.com/watch?v=7UoPgFJcRoI

Future plans

julia-phonons's People

Contributors

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