Ferrodispcalc
Python codes for calculation of polarization displacement vector in ferroelectric materials
Install / Use
/learn @MoseyQAQ/FerrodispcalcREADME
ferrodispcalc
Utilities for preprocessing and postprocessing molecular simulations of ferroelectric materials.
Purpose
ferrodispcalc provides small, focused tools to compute ionic displacements, polarization and octahedral tilts for perovskite-like materials, and to visualize results efficiently.
Highlights
- Build neighbor list with easy-to-use API.
- Compute ionic displacements from trajectories / single structure.
- Compute polarization and octahedral-tilt descriptors for perovskite-type structures.
- On-demand visualization helpers for common plots.
- LAMMPS plugin for efficient, in-situ calculations during MD runs.
Gallery
The local polarization of (PbTiO<sub>3</sub>)/(SrTiO<sub>3</sub>) superlattice in real space.
<div align=center> <img src="./gallery/PTO-STO-superlattice/profile/YZ_0.png" width=40%> </div>Path: ./gallery/PTO-STO-superlattice/plot.py
Profile of Head-to-head charged 180-degree domain wall in PbTiO<sub>3</sub>
<div align=center> <img src="./gallery/PTO-HH-DW/PTO-HH-DW-profile.png" width=100%> </div>Path: ./gallery/PTO-HH-DW/plot.py
Documentation
More detailed information, example usage, and API docs: https://moseyqaq.github.io/ferrodispcalc/
Install
git clone https://github.com/MoseyQAQ/ferrodispcalc.git
cd ferrodispcalc
pip install -e .
We plan to publish this package to PyPI soon.
Credit
Please cite this repo if it helps your research. Thanks!
Papers used this package
- GPUMDkit (submitted soon)
- Disentangling the Discrepancy Between Theoretical and Experimental Curie Temperatures in Ferroelectric PbTiO (under review @ MRS Comm.), arXiv:2601.13125 (2026) (perovskite system)
- Phys. Rev. Lett. 136, 016801 (2026) (organic-inorganic hybrid system)
- J. Phys. Chem. C 129, 21538 (2025) (perovskite system)
- Dipolar Nematic State in Relaxor Ferroelectrics (under review @ PRX),arXiv:2509.01464 (2025) (perovskite system)
- Phys. Rev. X 15, 021042 (2025) (HfO2 system)
Related Skills
node-connect
337.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.3kCommit, push, and open a PR
