Code Monkey home page Code Monkey logo

structure_optimization's Introduction

structure_optimization

In order to optimize the lattice constants and the whole crystal structure, we usually perform many DFT runs and plot the energy for each structure. I find that annoying and time consuming. The goal here is to write a script which would automatically generate multiple structure files, perform DFT calculation obtain the converged value of energy and store it to some file.

How to Run this code

Here are the files you need before you use this script

  • struct file with original lattice constants with name a0c0.struct
  • a0c0.inM file for the relaxation of the internal parameter
  • Of course this script optimize.sh
  • If you are submitting to cluster then you need a submit script in which the path to Wien2k executible is defined.

TO DO LIST FOR THIS SCRIPT

  • Check the length of a_new and c_new and find if it's equal to original a and c

    ** Because wien2k very specific about the character length in struct file.

    ** may be I should put a counter here

    ** Remember ${#var} will give you the length of the var

    ** So a simple if statement should do the job.

  • I am assuming after one job finishes the flag in inm remains MSR1a check it out. ** That assumption turned out to be false. So I later put a checker for it.

  • More realistic one would be to find the minimum itself instead of having an Energy.dat file ** But that would take little bit long time.

structure_optimization's People

Contributors

khanalg44 avatar

Stargazers

 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.