Skip to main content

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-square 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:

python3 -m pip 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

    Physical Review B 112, 144108 (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={Physical Review B},
        volume={112},
        number={14},
        pages={144108},
        year={2025},
        publisher={APS},
        doi={10.1103/lw16-4gny}
    }
    

Usage

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

Metadata

Release files for crystmatch 2.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crystmatch 2.1.4
File Size Uploaded Provenance Actions
crystmatch-2.1.4.tar.gz 102.6 kB Without provenance Details for crystmatch-2.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crystmatch 2.1.4
File Interpreter ABI Platform Actions
crystmatch-2.1.4-py3-none-any.whl Python 3 none any Details for crystmatch-2.1.4-py3-none-any.whl

Total release size: 207.3 kB

Release files / crystmatch-2.1.4.tar.gz

Download URL crystmatch-2.1.4.tar.gz
Size 102.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2b871ebaaa1ace0ffe8b6f697a767597ca74704382f407b9e570020382703dca
BLAKE2b-256 checksum
How to use checksums
14726083234c341eaefeab8dad9c80fed3ae02ea5ffc8e21ca0edd9e23dfff39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / crystmatch-2.1.4-py3-none-any.whl

Download URL crystmatch-2.1.4-py3-none-any.whl
Size 104.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75269c1330cbbf21f9938ca4690cc946ee9c6d8491bf86795fafe98c8563c825
BLAKE2b-256 checksum
How to use checksums
09f7b48789a1f6dce35133e9bdae0e9a46a924d34e4183eaa25c388157d70ac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for crystmatch 2.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page