Skip to content

Asif-Iqbal-Bhatti/Crystal_deformation_StrainVsEnergy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

33 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Crystal structure deformation using Langragian strain for VASP input files

This script compiles with python 3 or higher version. Maintenance pypi versions GPLv3 license

ENERGY Vs STRAIN APPROACH: Two scripts are provided for different deformation schemes. Please read the documentation as well as the details on the screen.

To generate input files for VASP. It uses the lagrangian strain to strain the system with user specified deformation constant. This value should be in the harmonic regime otherwise this approximation will fail. Large deformation leads to phase transitions.

NB: This code is the modification of the script provided with the exciting code. All rights belongs to the original author, if there is an error in the code or bug please contact the exciting team or me. Two approaches differes in the way deformation atrix is defined:

**Deformation 1:
I have modified the script to read CONTCAR optimized file (already minimized with IBRION=2, ISIF=3) 
and then print out the deformed POSCAR files with various strain.
Just follow the recipe on the screen and it will guide you to the rest of the process. 
For more information please visit exciting website (Elastic code). The literature behind can be found at the exciting website.
	                                        |ฮท[0]    ฮท[5]/2  ฮท[4]/2|
	                                    ฮท = |ฮท[5]/2  ฮท[1]    ฮท[3]/2|
	                                        |ฮท[4]/2  ฮท[3]/2  ฮท[2]  |  
	                                               D' = I + ฮท") 
**Deformation 2:
Cubic_strain.py script uses another deformation matrix technique. Please note it only pertians to 
cubic system. It can be extended to include other crystal deformation matrix.
	0 => (ฮท, ฮท,           ฮท,0,0,0) | volumetric strain [3C11+6C12=9B0]
	1 => (ฮท,-ฮท,1/1-ฮท**2 - 1,0,0,0) | volume-conserving orthorhombic distortion 2[C11-C12]
	2 => (0, 0,1/1-ฮท**2 - 1,0,0,2ฮท)| volume-conserving monoclinic distortion [2C44]

[1] ref: exciting

[2] ref: materialsproject

**Another interesting appraoch is: STRESS Vs STRAIN **

[3] ref: ELASTIC

[L.D. Landau, E.M. Lifszyc, Theory of elasticity, Elsevier (1986) ; ISBN: 075062633X, 9780750626330]

#============================

Crystal deformation for Monoclinic structure VASP

Deform Crystal structure for Monoclinic structure. It reads only POSCAR file.

USAGE::

Launch the code and it will prompt you to enter the structural details. Remember to rad the code and understand what it is doing and if you find some bug please let me know.

NB: No guarranty is implied before using for your work ot publication please do check with other codes. Exciting and Elastic code on my github are distributed freely.

๐—ข๐—ป๐—ฒ ๐—ณ๐—ถ๐—ฒ๐—น๐—ฑ ๐—ผ๐—ณ ๐˜„๐—ผ๐—ฟ๐—ธ ๐—ถ๐—ป ๐˜„๐—ต๐—ถ๐—ฐ๐—ต ๐˜๐—ต๐—ฒ๐—ฟ๐—ฒ ๐—ต๐—ฎ๐˜€ ๐—ฏ๐—ฒ๐—ฒ๐—ป ๐˜๐—ผ๐—ผ ๐—บ๐˜‚๐—ฐ๐—ต ๐˜€๐—ฝ๐—ฒ๐—ฐ๐˜‚๐—น๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ถ๐˜€ ๐—ฐ๐—ผ๐˜€๐—บ๐—ผ๐—น๐—ผ๐—ด๐˜†. ๐—ง๐—ต๐—ฒ๐—ฟ๐—ฒ ๐—ฎ๐—ฟ๐—ฒ ๐˜ƒ๐—ฒ๐—ฟ๐˜† ๐—ณ๐—ฒ๐˜„ ๐—ต๐—ฎ๐—ฟ๐—ฑ ๐—ณ๐—ฎ๐—ฐ๐˜๐˜€ ๐˜๐—ผ ๐—ด๐—ผ ๐—ผ๐—ป, ๐—ฏ๐˜‚๐˜ ๐˜๐—ต๐—ฒ๐—ผ๐—ฟ๐—ฒ๐˜๐—ถ๐—ฐ๐—ฎ๐—น ๐˜„๐—ผ๐—ฟ๐—ธ๐—ฒ๐—ฟ๐˜€ ๐—ต๐—ฎ๐˜ƒ๐—ฒ ๐—ฏ๐—ฒ๐—ฒ๐—ป ๐—ฏ๐˜‚๐˜€๐˜† ๐—ฐ๐—ผ๐—ป๐˜€๐˜๐—ฟ๐˜‚๐—ฐ๐˜๐—ถ๐—ป๐—ด ๐˜ƒ๐—ฎ๐—ฟ๐—ถ๐—ผ๐˜‚๐˜€ ๐—บ๐—ผ๐—ฑ๐—ฒ๐—น๐˜€ ๐—ณ๐—ผ๐—ฟ ๐˜๐—ต๐—ฒ ๐—จ๐—ป๐—ถ๐˜ƒ๐—ฒ๐—ฟ๐˜€๐—ฒ, ๐—ฏ๐—ฎ๐˜€๐—ฒ๐—ฑ ๐—ผ๐—ป ๐—ฎ๐—ป๐˜† ๐—ฎ๐˜€๐˜€๐˜‚๐—บ๐—ฝ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐˜๐—ต๐—ฎ๐˜ ๐˜๐—ต๐—ฒ๐˜† ๐—ณ๐—ฎ๐—ป๐—ฐ๐˜†. ๐—ง๐—ต๐—ฒ๐˜€๐—ฒ ๐—บ๐—ผ๐—ฑ๐—ฒ๐—น๐˜€ ๐—ฎ๐—ฟ๐—ฒ ๐—ฝ๐—ฟ๐—ผ๐—ฏ๐—ฎ๐—ฏ๐—น๐˜† ๐—ฎ๐—น๐—น ๐˜„๐—ฟ๐—ผ๐—ป๐—ด. ๐—œ๐˜ ๐—ถ๐˜€ ๐˜‚๐˜€๐˜‚๐—ฎ๐—น๐—น๐˜† ๐—ฎ๐˜€๐˜€๐˜‚๐—บ๐—ฒ๐—ฑ ๐˜๐—ต๐—ฎ๐˜ ๐˜๐—ต๐—ฒ ๐—น๐—ฎ๐˜„๐˜€ ๐—ผ๐—ณ ๐—ป๐—ฎ๐˜๐˜‚๐—ฟ๐—ฒ ๐—ต๐—ฎ๐˜ƒ๐—ฒ ๐—ฎ๐—น๐˜„๐—ฎ๐˜†๐˜€ ๐—ฏ๐—ฒ๐—ฒ๐—ป ๐˜๐—ต๐—ฒ ๐˜€๐—ฎ๐—บ๐—ฒ ๐—ฎ๐˜€ ๐˜๐—ต๐—ฒ๐˜† ๐—ฎ๐—ฟ๐—ฒ ๐—ป๐—ผ๐˜„. ๐—ง๐—ต๐—ฒ๐—ฟ๐—ฒ ๐—ถ๐˜€ ๐—ป๐—ผ ๐—ท๐˜‚๐˜€๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ณ๐—ผ๐—ฟ ๐˜๐—ต๐—ถ๐˜€. ๐—ง๐—ต๐—ฒ ๐—น๐—ฎ๐˜„๐˜€ ๐—บ๐—ฎ๐˜† ๐—ฏ๐—ฒ ๐—ฐ๐—ต๐—ฎ๐—ป๐—ด๐—ถ๐—ป๐—ด, ๐—ฎ๐—ป๐—ฑ ๐—ถ๐—ป ๐—ฝ๐—ฎ๐—ฟ๐˜๐—ถ๐—ฐ๐˜‚๐—น๐—ฎ๐—ฟ, ๐—พ๐˜‚๐—ฎ๐—ป๐˜๐—ถ๐˜๐—ถ๐—ฒ๐˜€ ๐˜๐—ต๐—ฎ๐˜ ๐—ฎ๐—ฟ๐—ฒ ๐—ฐ๐—ผ๐—ป๐˜€๐—ถ๐—ฑ๐—ฒ๐—ฟ๐—ฒ๐—ฑ ๐˜๐—ผ ๐—ฏ๐—ฒ ๐—ฐ๐—ผ๐—ป๐˜€๐˜๐—ฎ๐—ป๐˜๐˜€ ๐—ผ๐—ณ ๐—ป๐—ฎ๐˜๐˜‚๐—ฟ๐—ฒ ๐—บ๐—ฎ๐˜† ๐—ฏ๐—ฒ ๐˜ƒ๐—ฎ๐—ฟ๐˜†๐—ถ๐—ป๐—ด ๐˜„๐—ถ๐˜๐—ต ๐—ฐ๐—ผ๐˜€๐—บ๐—ผ๐—น๐—ผ๐—ด๐—ถ๐—ฐ๐—ฎ๐—น ๐˜๐—ถ๐—บ๐—ฒ. ๐—ฆ๐˜‚๐—ฐ๐—ต ๐˜ƒ๐—ฎ๐—ฟ๐—ถ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐˜„๐—ผ๐˜‚๐—น๐—ฑ ๐—ฐ๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜๐—ฒ๐—น๐˜† ๐˜‚๐—ฝ๐˜€๐—ฒ๐˜ ๐˜๐—ต๐—ฒ ๐—บ๐—ผ๐—ฑ๐—ฒ๐—น ๐—บ๐—ฎ๐—ธ๐—ฒ๐—ฟ๐˜€." ๐——๐—ถ๐—ฟ๐—ฎ๐—ฐ, ๐—ฃ๐—ฎ๐˜‚๐—น. ๐—ข๐—ป ๐—บ๐—ฒ๐˜๐—ต๐—ผ๐—ฑ๐˜€ ๐—ถ๐—ป ๐˜๐—ต๐—ฒ๐—ผ๐—ฟ๐—ฒ๐˜๐—ถ๐—ฐ๐—ฎ๐—น ๐—ฝ๐—ต๐˜†๐˜€๐—ถ๐—ฐ๐˜€. (๐—ง๐—ฟ๐—ถ๐—ฒ๐˜€๐˜๐—ฒ. ๐—๐˜‚๐—ป๐—ฒ ๐Ÿญ๐Ÿต๐Ÿฒ๐Ÿด .)

About

Deforming crystal (lagrangian strain) for VASP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published