Git Product home page Git Product logo

dpgen-dimer's Introduction

DPGEN-DIMER

A modification of DPGEN code, we add the dimer method as a method of model deviation, which could make our MLFF model predict the saddle points with high precision and few training data.

Requirements:

python>=3.8.0

dpgen

Usage:

You just need to put our run.py and arginfo.py into your work directory, then prepare the param.json file and machine.json file required by dpgen. You also need a file named input.lammps, no mattter what content is, we didn't use it but the code needs it. To use the dimer method, you need to set the model_devi_engine to dimer in the machine.json file, and set the command to your command to run the python code dimer.py. For instance:

CUDA_VISIBLE_DEVICES=1 srun python /home/yinbc/test/dpgen/dpgen/Li-TiO2//dimer.py True  24  0.05  24  2

You can also use other model devi methods of dpgen, such as enhanced sampling. And you can also try to mix them.

Tools:

auto.py in the example folder: A script which could automatically generate input files for multiple examples. To use this, you need to put your initial vasp MD caculation folders together, and use dpdata to generate the initial data, for instance:

import dpdata
import numpy as np
vaspmd_dir = '.'
data=dpdata.LabeledSystem('OUTCAR')
data.to_deepmd_raw('deepmd')
data.to_deepmd_npy('deepmd')

Besides the calculation folders, put run.py, arginfo.py, dimer.py, Templates of INCAR, param.json, machine.json, input.lammps together also. Then you can run python auto.py. Then you may adjust some of the parameters for each specific example.

test_process.py:This code could generate muliple search trajectory for the given initial configuration, and give the predicted energy. The energy are in the ener.txt, and we would get each trajectory folder.

test_saddle.py: This code could generate muliple dimer search to get saddle points and corresponding barriers for the given initial configuration. The barriers are in the barrier_sad.txt.

PS:

In our code, you just need one POTCAR, not one POTCAR for each element.

dpgen-dimer's People

Contributors

zmyybc avatar

Stargazers

Yichao avatar

Watchers

 avatar

Forkers

jiaaowang-ut

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.