MLWC is a package written in Python/C++, designed to calculate the dielectric properties of various materials combined with molecular dynamics. This package construct deep learning models using the Wannier centers calculated from DFT as training data to predict the dipole moments of the system with high accuracy and efficiency.
For more information, please check the documentation.
- Interfaced with DFT packages, including CPMD and Quantum Espresso.
- Implements the chemical bond-based approach, enabling high accuracy on finite and extended, small and large molecular systems.
- Implements openMP and GPU supports, making it highly efficient for high-performance parallel and distributed computing.
- Scripted using Pytorch, allowing for fast training with python and prediction with C++.
- Various post-processing tools, facilitating deep analysis into the systems.
CPml.py: Main command to train & test models.dieltools: C++ interface for predicting bond dipoles.CPextract.py: To retrieving data from DFT codes anddieltools.CPmake.py: To make input files for DFT codes.
Please visit the following webpage for installation and usages.
Python commands are easily installed via pip as
git clone https://github.com/dirac6582/dieltools
cd dieltools
pip install .We also support PyPI and conda-forge, and you can use them as
# PyPI
pip install mlwc
# conda-forge
conda install -c conda-forge mlwcFor C++ interface, we support CMake. Please read the online documentation for details.
For simple instruction and sample input files, see examples directory. Also, following commands output sample input files for each command.
CPtrain.py sample
CPmake.py sampleFor detailed explanations, please explore the website.
The repository is organized as follows:
docs: documentations.examples: examples.examples/tutorial: examples for tutorials explained in documentations.src/cpp: source code of C++ interface.src/cmdline: source code of python command line.src/cpmd: source code for data processing.src/ml: source code for deep neural network.src/diel: source code for calculating dielectric property.script: additional scripts for developers.test: additional files for developers.
For detailed explanation of theory and implementation, please see the following publication
- T. Amano, T. Yamazaki, N. Matsumura, Y. Yoshimoto, S. Tsuneyuki, "Transferability of the chemical bond-based machine learning model for dipole moment: the GHz to THz dielectric properties of liquid propylene glycol and polypropylene glycol", Phys. Rev. B 111, 165149 (2025). [link][arXiv]
- T. Amano, T. Yamazaki, S. Tsuneyuki, "Chemical bond based machine learning model for dipole moment: Application to dielectric properties of liquid methanol and ethanol", Phys. Rev. B 110, 165159 (2024).[press] [link] [arXiv]
- Interface with
VASP,Wannier90. LAMMPSintegration for C++ interface.
The project MLWC is licensed under GNU LGPLv3.0. If you use this code in any future publication, please cite the following publication:
- T. Amano, T. Yamazaki, N. Matsumura, Y. Yoshimoto, S. Tsuneyuki, "Transferability of the chemical bond-based machine learning model for dipole moment: the GHz to THz dielectric properties of liquid propylene glycol and polypropylene glycol", Phys. Rev. B 111, 165149 (2025). [link][arXiv]
- T. Amano, T. Yamazaki, S. Tsuneyuki, "Chemical bond based machine learning model for dipole moment: Application to dielectric properties of liquid methanol and ethanol", Phys. Rev. B 110, 165159 (2024).[press] [link] [arXiv]
- Tomohito Amano (The University of Tokyo)
- Tamio Yamazaki (JSR-UTokyo Collaboration Hub, CURIE, JSR Corporation)