ElasTensor
ElasTensor is a Python package designed to assist with the calculation of second and third-order elastic constants using density functional theory (DFT). It provides tools for generating deformed crystal structures and managing the workflow for elastic constant calculations.
Features
- Generate strain deformations for second and third-order elastic constant calculations
- Support for various crystal symmetries (triclinic, monoclinic, orthorhombic, tetragonal, trigonal, hexagonal, cubic)
- Integration with VASP input/output formats
- Flexible structure manipulation and symmetry analysis
- Strain-energy and strain-stress calculation methods
Installation
Using pip
pip install elastensor
From source
git clone https://github.com/romerogroup/ElasTensor.git
cd ElasTensor
pip install -e .
Basic Usage
Initialize deformator with a structure file
from elastensor.deformator import Deformator
# Initialize deformator with a structure file
deformator = Deformator(
structure_file="POSCAR",
amplitude=0.05,
mode="strain-energy",
third_order=False
)
# Generate deformed structures
deformator.generate()
# Write deformed structures to VASP input files
deformator.write_structures(code_format="vasp")
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Authors
- Andres Mora (at00021@mix.wvu.edu)
- Logan Lang (lllang@mix.wvu.edu)
Issues and Support
For bug reports and feature requests, please use the GitHub issue tracker.
Metadata
Release files for elastensor 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elastensor-0.0.2.tar.gz | 25.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elastensor-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.1 kB
Release files / elastensor-0.0.2.tar.gz
| Download URL | elastensor-0.0.2.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bd97443656634381a3ca72b9a582fc72ed391681be6da770f2b9aadb3305ea6
|
|
BLAKE2b-256 checksum How to use checksums |
fc461a89dce07f8cb65763255039bdf9cc6bcf58b87b363c2fced26e1605a535
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / elastensor-0.0.2-py3-none-any.whl
| Download URL | elastensor-0.0.2-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38a53d124cfcf03e15420e60a394a7786dfb4712fdd05dc54c04936fd1731229
|
|
BLAKE2b-256 checksum How to use checksums |
d0ec2772a5f03bbe90da10db665b5e423b69f0616a63f732f0671db23adce989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|