Code Monkey home page Code Monkey logo

phononirep's Introduction

PhononIrep

A phonon irreducible representations calculator (arXiv2201.11350).

Installation

One need install both Python and Mathematica.

Configure Python

First you should install python3 and phonopy. e.g. install anaconda or miniconda, and run

conda install -c conda-forge phonopy

in the anaconda(miniconda) prompt.

To interface with Mathematica one need also install pyzmq by

pip install pyzmq 

Configure Mathematica

According to the test, PhonoIrep cannot work in Matnematica 12.0, Therefore I recommended to run PhonoIrep in Mathematica 12.2 or 12.3.

Copy the SpaceGroupIrep direcory and PhononIrep.wl into any of the Mathematica $Path direcory.

That all for installation.

Run PhononIrep

You can open a Mathematica notebook, save it in the directory where you do your phonopy calculations, and run

path = "D:\\Anaconda3"
SetEnvironment["PATH" -> Environment["PATH"] <> ";" <> path <> "\\Library\\bin"];
RegisterExternalEvaluator["Python", path <> "\\python.exe"];
Needs["PhononIrep`"]

to import PhononIrep. Here, you need to modify the path to the Python installation direcory. For Linux and Mac OS python.exe should be modfied by python, and run

calcPhononIrep["supercell" -> {2, 2, 1},
 "unitcell" -> NotebookDirectory[] <> "POSCAR-unitcell",
 "force" ->  NotebookDirectory[] <> "FORCE_CONSTANTS",
 "kset" -> {{0,0,0}},
 "showRep" -> True
 ]

to calculate the irreducible representations of Gamma point for input structure.

Release Notes

v1.00b 2022/06/17

  • Add an example for diamond.

v1.01 2022/11/08

  • Automatically identify BZ type.
  • Support SpaceGroupIrep v1.2.3

phononirep's People

Contributors

zhangzeyingvv avatar

Stargazers

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