Giter VIP home page Giter VIP logo

castep_vca_scripts's Introduction

CASTEP_VCA_scripts

Scripts for interacting with CASTEP input and output files for simulations that model solid solutions using the virtual crystal approximation (VCA).

It is recommended that you familiarise yourself with these scripts by following the tutorial in the examples/ directory.

These scripts may be used to construct input files for simulations and extract info (structures, calculation parameters, forces, energies etc) from input and output files, even for cases that use the VCA -- something that the ase (atomic simulation environment) module cannot do. These scripts may also be used to easily convert between solid solution ("mixed") structures and "pure" structures -- which may be interpreted by standard atomistic manipulation tools. There is also the functionality (within the phonon_VCA.py module) to compute harmonic phonons using Phonopy for cells with mixed atoms on a single site.

The main modules, containing functions and classes for general use, are:

  • readmixcastep.py -- for reading/writing VCA CASTEP input/output files
  • mixmap.py -- for managing mapping between pure and mix structures
  • phonons_VCA.py -- a wrapper to manage phonon calculations with the VCA

The following modules then provide more general utilities:

  • strindices.py -- for identifying lines in files containing various combinations of strings
  • casase.py -- a wrapper to the ase.io.read() method to suppress unnecessary output if CASTEP is not integrated to run within ase (e.g. if simulations are run externally).

Finally, the following scripts are command line tools for quickly manipulating structures:

  • SS_to_endmember.py -- converts a mixed (solid solution) structure quickly to a pure structure.
  • pinchposns.py -- takes two cell files as input and shifts atoms in the second to be closest to those in the first (considering PBCs).
  • shiftcas.py -- shifts all atoms in a cell by a given vector.

The unittests.py script can be run to check that most functionality within these modules works (i.e. does not throw up an error). However for a tutorial on how to use the scripts, I recommend looking in the examples/ directory.

castep_vca_scripts's People

Contributors

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