Giter VIP home page Giter VIP logo

dftbplus-v.23.1-examples's Introduction

DFTBplus-v.23.1-examples

  • Currently, many modes such as pSIC and XL-BOMD do not work on xTB. I hope that the development of DFTB+ will progress further.

Examples

  • perfluorosulfonate polymer
    • It shows the steps to draw a structure using ChemSketch (non-commercial) and calculate from GAFF to ReaxFF and then to DFTB+.
    • Another feature is that it shows an example of structural optimization using GAFF for arranging water molecules. I would like you to perform calculations for various materials.
    • Due to the computational time required, we did not calculate MSD, diffusion coefficient, frequency, or IR. Please try it out and let me know if there is a better way or improvements.
  • TTIP/c-Si(100) (Hydrogen-terminated Si(100) surface)
    • I think it's generally okay because it shows a figure with similar results to the reference [3].
    • Slater Koster file can be calculated 10 times faster than xTB (GFN1-xTB). We have confirmed that the results are similar to those in reference [3] only with xTB. I failed with ReaxFF. ReaxFF may give good results with NEB.
    • I am using GFN1-xTB. The reason is that GFN2-xTB does not converge well. If anyone has found a better way to calculate it, please let me know.
    • In the literature [3], it was hydrogen terminated, which I thought was surprising. While some people are trying to solve the problem by brute force using the power of PCs without hydrogen termination, it is wonderful that they are reporting on hydrogen termination even in 2022. I thought he was a real professional.
    • In DFTB+, an initial structure in which the TTIP molecules are brought closer to the Si interface may be sufficient. Initially, I tried to calculate the TTIP molecule with an initial structure closer to the Si interface, but the molecule was broken in ReaxFF, so this is the current input file.
    • DFTB, that is, "*.skf", just floated on the surface and did not react. If you want to get the same results as in literature [3], you need to use GFN1-xTB.
    • There are also sites where hydrogen is not terminated (dangling bonds), but TTIP does not seem to work on them.
  • Monte_Carlo_method
    • Created to study initial structures for the exploration of high entropy alloys (HEAs) or metallic glasses.
    • As a simple example, I created one that exchanges Al-Cu atomic coordinates. We are trying to make this possible in a multi-component system, but since it takes time, we have decided to just swap the coordinates of Al and Cu in the FCC structure and mix them. It may be repeated alternately with structural optimization.
    • Check the composition and volume with "Akai-KKR", and then check the atomic arrangement with "MOPAC" or "DFTB+" using the Monte Carlo method based on the information on the composition and volume (if possible, relax the structure at the end) We believe that the procedure of checking with OpenMX is valid. All you have to do is check the displacement from the position (position, etc.).
    • In the case of HEA, even "DFTB+" takes time, so it would be a good idea to have someone create a MEAM potential for Lammps.
    • A similar attempt was made with MOPAC, but like DFTB+, it took a considerable amount of calculation time.
    • Even the above method requires too much calculation time for researchers who mainly conduct experiments, so we plan to try converting Open Catalyst Project data to potfit format to create MEAM potentials in the future. It would be helpful if someone could go ahead and publish it on github instead of me, as it would reduce my workload.
  • GFN2-xTB
    • I created this item to find out under which calculation conditions GFN2-xTB converges well.
    • Due to my time constraints, I only checked the SCC calculation and did not check the band structure or DOS. Interested readers may wish to compare the band structure with the results of GFN1-xTB and *.skf.
    • GFN2-xTB may be able to calculate well for systems with open gaps such as semiconductors and insulators. GFN2-xTB does not converge well with a unit cell, but it can be calculated successfully with a supercell. It may become a practical tool for calculations of supercells with element substitutions.
    • System that did not converge with GFN2-xTB: Mn4Si7, CaMgZn, MnGaNi2, Li3Al2, ZrCuB, TaCoB, AlFe2Si, CsHSO4, Li2BNH6
    • For Whistler-based structures, "{ 0, 0}: On entry to DSTEGR2 parameter number -202 had an illegal value" is output. If this is related to ScaLapack, it may work fine if you stop OpenMPI.
  • GFN1-xTB

Activation Energy (TS - Reactant)

extended Lagrangian (XL) Born-Oppenheimer dynamics (XL-BOMD)

  • XL-BOMD method is used for "perfluorosulfonate polymer". This is because the purpose is simply to calculate MSD or vibrations to find the diffusion coefficient of proton.
  • High reliability even for metal
  • A time step comparable to that of classical MD can be adopted.
    • e.g., O-H 3300 [cm^-1] = 10.11 [fs] or C-H 3000 [cm^-1] = 11.11 [fs] --> x 1/10 (Track MD by dividing the time for these vibrations into 10) --> TimeStep [fs] = 1
    • If energy is released due to a reaction, the speed (temperature) of atoms increases, and atoms collide with each other, making MD calculation difficult, reduce the TimeStep. ReaxFF is often set to 0.25 [fs] or 0.1 [fs].
  • In the case of large structural changes, the time step may have to be shortened due to SCC convergence problems.
    • e.g., 1 [fs] --> 0.5 [fs]
  • Even when large structural changes such as structural phase transitions occur, calculations are unlikely to break down.
  • When I tried it, XL-BOMD did not work with xTB (GFN1-xTB or GFN2-xTB, ect).

Car-Parrinello method

  • Not implemented in DFTB+.
  • In the case of a reaction in which the HOMO-LUMO gap closes, the conditions for applying the Cal-Parinello method are no longer satisfied for the reasons shown below. It is a good idea to keep this in mind when applying the XL-BOMD method. This (Car-Parrinello method) is an effective method for calculating MSD and vibrations in non-reactive systems with HOMO-LUMO gaps.
  • The Car-Parrinello method requires that the time scales of the electron fluctuation motion and the nuclear fluctuation motion be sufficiently separated. This means that the HOMO-LUMO gap must be large. Therefore, handling in systems close to metal is generally not recommended.
  • In the case of semiconductors and insulators, calculations are often relatively quick.
  • The time step of CPMD is about 1/10 of that of classical MD. In other words, it is 0.1 fs.
  • Adaptation to metal systems requires considerable skill. [CP2]
  • Requires know-how such as virtual temperature.

Usage (Commands)

  1. export OMP_NUM_THREADS=8
  2. mpirun -np 1 dftb+ < dftb_in.hsd | tee dftb_out.hsd
  3. (open geo_end.xyz on Ovito, etc)

References

Note

  • Note 1: On a normal PC, it is faster to calculate 1 k points by making each axis a supercell of 8 angstroms or more than calculating several k points with a small cell.
  • Note 2: GFN2-xTB is more stable and converges easily if each axis is made into a supercell of 8 (if possible, 12.8) angstroms or more.
  • Note 3: On a normal PC, when trying to calculate under the above conditions, it is faster to calculate with 1 CPU without using MPI parallelism (such as OpenMPI) or OpenMP parallelism.
  • Note 4: SCCTolerance = the order of 1e-5 * number of atoms (vibration: 1e-7 * number of atoms)
  • Note 5: GFN2-xTB did not converge using anything other than the Broyden method.
  • Note 6: Before performing MD calculations of diffusion coefficient and MSD, it is recommended to clarify the calculation conditions of the Broyden method. Please choose the one closest to the default value.

Student's Element Substitution Rules

  • For ternary or higher systems
  • Up to about 12% for same groups in the periodic table.
  • Up to 2.3% if groups is +/-1.
  • Up to 1% if group is +/-2 or more.
  • If the formation energy is negative (stable), increase the amount of substitution by a few percent.

Units (DFTB+ and Lammps output)

  • force : DFTB+ (results.tag: Ha/Bohr), Lammps (eV/Angstrom)
  • stress: DFTB+ (results.tag: au), Lammps (bar = 100 kPa = 0.1 MPa)
    • (dftbplus.h) stress: Pa
    • (DFTB+ output (terminal or console, etc)) Pressure: au and Pa
    • (DFTBP) virial: eV
    • "elastic[ii][jj] /= (PRESURE_AU * 1.0E9) # Convert to GPa": Inue 134 in calcelastic (python3 code): au => *1.0/(0.339893208050290E-13 * 1.0E9) => GPa
    • ("fix external command" on Lammps) energy and virial are energy units [eV]. (https://docs.lammps.org/fix_external.html)
    • Ref. VASP: E = V * PSTRESS (https://www.vasp.at/wiki/index.php/PSTRESS)
  • volume: DFTB+ (results.tag: au^3 = Bohr^3), Lammps (A^3 = Angstrom^3)
    • (DFTB+ output) Volume: [au^3] and [A^3]

Unfolding

Acknowledgment

  • This project (modified version) is/was partially supported by the following :
    • meguREnergy Co., Ltd.
    • ATSUMITEC Co., Ltd.

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.