Skip to main content

Enumerating and analyzing crystal-structure matches for solid-solid phase transitions.

Project description

Crystmatch

Introduction

A solid-solid phase transition establishes an atom-to-atom correspondence between the initial and final crystal structures $\mathcal A$ and $\mathcal B$. Such correspondence is called a crystal-structure match (CSM). A CSM can be described by a pair of POSCAR files, which specifies how the lattice deforms from $\mathcal A$ to $\mathcal B$ and the correspondence between atoms in a supercell of $\mathcal A$ and those in $\mathcal B$.

The main functions of crystmatch are as follows:

  • Enumeration:

    • Provide a complete list of representative CSMs between $\mathcal A$ and $\mathcal B$, with user-specified upper bounds on the multiplicity and strain.
    • Provide a complete list of CSMs with user-specified upper bounds on the multiplicity, strain, and shuffle distance.
  • Analysis:

    • Read a CSM from a pair of POSCAR files, and save CSMs in the same format.
    • Calculate the root-mean-squared strain (RMSS), estimated strain energy density, and shuffle distance (RMSD) for each CSM.
    • Benchmark each CSM by its deviation angle from a given orientation relationship.
    • Visualize the distribution of strain, shuffle distance, and multiplicity of CSMs in a 2D scatter plot.
    • Visualize a CSM in a 3D interactive plot.

Congruent CSMs (those differ only by a space-group transformation) are identified and excluded from the enumeration using the Spglib library by Atsushi Togo et al.

Installation

Make sure you have Python 3.9 or later installed. You can check it by running:

python3 --version

To install the latest version of crystmatch, run:

pip3 install --upgrade numpy scipy spglib numba matplotlib
pip3 install --upgrade crystmatch

Check whether crystmatch is successfully installed:

crystmatch --version

How to cite

If you use crystmatch in your research, please cite one of the following paper:

  • Crystal-Structure Matches in Solid-Solid Phase Transitions

    Physical Review Letters 132, 086101 (2024)

    @article{wang2024crystal,
        title={Crystal-Structure Matches in Solid-Solid Phase Transitions},
        author={Wang, Fang-Cheng and Ye, Qi-Jun and Zhu, Yu-Cheng and Li, Xin-Zheng},
        journal={Phys. Rev. Lett.},
        volume={132},
        number={8},
        pages={086101},
        year={2024},
        publisher={APS},
        doi={10.1103/PhysRevLett.132.086101}
    }
    
  • Classification and Enumeration of Solid-Solid Phase Transition Mechanisms

    Under review (2025)

    @article{wang2025classification,
        title={Classification and Enumeration of Solid-Solid Phase Transition Mechanisms},
        author={Wang, Fang-Cheng and Ye, Qi-Jun and Zhu, Yu-Cheng and Li, Xin-Zheng},
        journal={arXiv:2506.05105},
        year={2025},
        doi={10.48550/arXiv.2506.05105}
    }
    

Usage

crystmatch can be used both as a command-line tool and as a Python module; see the documentation for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crystmatch-2.0.10.tar.gz (98.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crystmatch-2.0.10-py3-none-any.whl (101.5 kB view details)

Uploaded Python 3

File details

Details for the file crystmatch-2.0.10.tar.gz.

File metadata

  • Download URL: crystmatch-2.0.10.tar.gz
  • Upload date:
  • Size: 98.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for crystmatch-2.0.10.tar.gz
Algorithm Hash digest
SHA256 b6edf22e6d9eaefa92e2d1e28cf457e8abf0a6591194e805e382508e31c7e619
MD5 36eb5fb497384cee5e8a6e840e2dd666
BLAKE2b-256 e38e236fb02e5a8772497dd6e5508252b033bad0b308a643c994ee9e5f50b774

See more details on using hashes here.

File details

Details for the file crystmatch-2.0.10-py3-none-any.whl.

File metadata

  • Download URL: crystmatch-2.0.10-py3-none-any.whl
  • Upload date:
  • Size: 101.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for crystmatch-2.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 990fb26e8a2f17322ac88b3ef9e9b4dc9265a02d37c6ffe4bc40dbfaaa20f433
MD5 1053a0628d75b0e86c50bdf6ebef50e7
BLAKE2b-256 b0a491c3d47ad262b950c604b428d3ecfa6e759047fdda36b501e85e0753b11b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page