Giter Site home page Giter Site logo

mukkelian / shifter Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 17 KB

If you want to shift the whole lattice system into any direction or want to put the complex molecule into the defined crystal box without distorting the system ( defined in terms of lattice parameters a,b,c) for any Density Functional theory (DFT) calculation or want to make slab by providing defined vacuum then this will be very useful. This program can read the input file named as 'a.xyz' and give the output file named as 'b.xyz'. Just follow the instructions given on the screen.

License: GNU General Public License v2.0

Fortran 100.00%
vesta shifting-lattice-sites slab density-functional-theory molecule shift-crystal crystal-orientation shifter

shifter's Introduction

If you want to shift the whole lattice system into any direction or want to put the complex molecule into the defined crystal box without distorting the system ( defined in terms of lattice parameters a,b,c) for any Density Functional theory (DFT) calculation or want to make slab by providing defined vacuum then this will be very useful.

This program can read the input file named as 'a.xyz' and give the output file named as 'b.xyz'.

Just follow the instructions given on the screen.

I have given the example of a simple common perovskite system, kindly go to the folder name 'perovskite'.

  1. perovskite.vesta (original crystal file formed by VESTA software)

  2. a.xyz (a 'xyz' formate file, exported from VESTA software ) at lattice parameter a = 3.91541 ; b = 3.91541 ; c = 3.98902

  3. b.xyz (an output file)

at lattice parameter a = 3.91541 ; b = 3.91541 ; c = 20.0000000 shifted by 5 Angs. along 'z' direction.

steps

  1. compile this program by any existing FORTRAN compiler, for my case it is gfortran.

gfortran shifter.f90 -o shifter

you will have an executable named as 'shifter'

  1. Open the perovskite.vesta file from VESTA software.

  2. Export the current file into 'xyz' formate. goto File --> Export Data.. and select the file format (choose for the hidden atoms too)

  3. Renamed as a.xyz (In the example folder step 3 and 4 is already done, but you may try these steps for better understanding)

  4. Run the program by './shifter' in the terminal or choose your ways.

  5. Program will ask you for the lattice parameter. for our case, I am giving the vacuum and shift it by 5 Angstrom along the z-direction. So I'm giving 3.91541 3.91541 20.0 (a, b, c lattice parameter). Then after it will ask your consent for shifting, type y for yes, and again for direction type z for the z-axis. Then after provide there the shifting parameter as 5 Angstrom. At this step you will have output file 'b.xyz'.

  6. Open VESTA for new structure (File--> New Structure) then in popped up dialog box goto to 'unit cell'

  7. In the 'unit cell' option leave the symmetry part just type the lattice parameter whatever you have typed during running the program.

  8. Now go to the 'Structure Parameter' option and import the 'b.xyz' file. (look at the bottom of the dialog box there is an option for import)

  9. It will tell you that the given lattice parameter is not the same as before want to change the lattice parameter or not.. something like that. Just press NO there.

  10. Apply it and press OK.

  11. Now, you have your shifted crystal without losing the atoms at the boundary.

Note:: Whatever the lattice system you have just export into '.xyz' format.

shifter's People

Contributors

mukkelian avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.