GithubHelp home page GithubHelp logo

copt's Introduction

cOpt: basis set optimization for correlation calculation

This is an optimization module for basis set, based on ABACUS and LibRPA. And starting point is recommended by SIAB.

Installation

git clone https://github.com/AroundPeking/cOpt.git
cd cOpt
conda create -n cOpt
conda activate cOpt
pip install .

Usage

You should prepare opt.json to set optimization parameters.

A folder abacus_inputs containing all inputs for ABACUS calculation in iterations, e.g. single atom RPA calculation. Besides, ORBITAL_RESULTS.txt is needed to be the starting point. Here SPIN*_CHG.cube is recommended to speed up SCF calculation in every iteration.

A folder to store all outputs, i.e. work_dir.

Then run

python cOpt/cOpt/driver.py

you can get file iter.$SLURM_JOB_ID.out, folder best_orb_$SLURM_JOB_ID and opting_$SLURM_JOB_ID.

PARAMETERS in opt.json

dft: str, support "rpa_pbe" or "hf" now.

fix and mod: list, e.g. if you want to optimize DZP while fixing SZ, set fix=[1, 1, 0] and mod=[2, 2, 1]. Don't recommend to optimize SZ by cRPA due to distorted DFT.

init_chg: bool, true is recommended to speed up SCF calculation in every iteration. If true, density SPIN*_CHG.cube should be put in abacus_inputs.

maxiter: int, maximum number of iterations.

opt_method and method: str. If opt_method="local opt", "Powell" (recommended), "CG", "BFGS", ... are optional. If opt_method="global opt", method=basinhopping.

freq_disp: int, freqency of displaying change of object in iter.$SLURM_JOB_ID.out.

work_dir: str, outputs directory.

abacus_inputs: str, ABACUS inputs directory.

abacus and librpa: str, ABACUS and LibRPA executable program.

copt's People

Contributors

aroundpeking avatar

Stargazers

 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.