/DWBuilder

Ferroelectric/Ferroelastic domain wall builder

Primary LanguagePythonMIT LicenseMIT

DWBuilder: Domain Wall Builder

Ferroelectric/ferroelastic domain_wall_builder creates domain walls and interface structure for the perovskites and ceramics. The code reads the structure in the vasp format, and then creates domain walls with user-defined sizes and angles.

Overview

There are three main scripts dwbuilder.py, dbuilder.py and hibuilder.py which build domain wall, single domain structures and experimentally observed atomic interface strutures with known orientation relationships (ORs), respectively. For the domain wall and interfaces, you only need to run dwbuilder.py. These scripts can be executed from the command line. I also have included examples of ferroelectric domain walls.

Installation guide

For installation simply clone or download the code in your terminal and in the main directory of the package type:

> pip install .

This will copy the modules to your active python site-packages, thereby making them importable in any python script and will put the scrpits in the python bin, thereby making them executable in the shell.

Usage

To execute the code, one should run the dwbuilder command from the command line. Upon running, the user will be prompted to input the name of the input structure file, as well as the domain wall angle and size (expressed in number of unit cells). This script builds the domain wall structure based on the space group of the input structure. For structures with the R3m or P4mm space groups, the polarization directions are assumed to align with the [001] direction. For structures with the R3c space group, a pseudo-cubic structure is first constructed by translating the input rhombohedral axes along a=[101], b=[-111], and c=[0-11]. In the translated axis , the polarization direction is assumed to align with the [-110] direction. To construct 109 and 71 domain walls, each crystal system is translated according to specific orientation relationships in order to meet the polarization angle requirement.

Example of using dwbuilder.py

ex:

dwbuilder

Once you have developed the desired domain wall structure, you can visualize in vesta or ase to further refine domain wall artifacts. In the above examples, the domain walls are parallel along (001)//(001) planes.

Example of using hibuilder.py

In this example, I have reproduced an orientation relationship reported in the following article CMS.

hibuilder

hibuilder.py generates an initial configuration that needs additional refinement along a, b and c-directions. To determine the optimal interface distance along the a, b, and c axes, you can either perform static DFT or forcefield simulations. Additionally, you may need to explore various interfacial configurations to identify the thermodynamically stable structure.

It is also important to know that all the domain wall and interface structures built in this package follow the orthogonality condition, which means lattice vectors a,b and c are mutually perpendicular (i.e., orthognal) to each other and fulfill these conditions:

a x b = c
a x c = b
b x c = a

So far the dwbuilder.py develops the domain walls for the following space groups along with the assumed polarization directions:

R3c (Polarization direction (1-11))
R3m (Polarization direction (001))
P4mm (Polarization direction (001))
p6_3cm (Polarization direction (-1-10))
Pnma (Polarization direction (110))
Pmc2_1 (user-defined)
Amm2 (user-defined)

Questions/Contributions

If you have any questions, find an issue you can get in contact with me. This project is currently under development.

License

MIT.