Giter VIP home page Giter VIP logo

dftbp's Introduction

DFTBP

LAMMPS codes for DFTB+

Reference: Gang Seob Jung, Stephan Irle, and Bobby Sumpter. "Dynamic aspects of graphene deformation and fracture from approximate density functional theory." Carbon (2022)

Please check DFTB+ code https://github.com/dftbplus/dftbplus

This package provides a fix dftbp command which is a wrapper on the DFTB+ DFTB code, so that molecular dynamics can be run with LAMMPS using density-functional tight-binding calculations by DFTB+.

GS JUNG@ORNL made this package based on fix_latte.cpp and fix_latte.h (developed by LANL)

Please report any bug/commetns to [email protected] or [email protected]

The necessary functions for DFTB+ API have been implemented (update is allowed by dftb+).

Until that, you can check the details of changes in https://github.com/gsjung0419/dftbplus

  1. The code is only tested with following environments.

-. Intel compiler (19 and 20)

-. MPICH 3.2.1 version compiled by intel compiler

-. CMAKE 3.12 or 3.19

-. Matching the versions of programs are recommended (The author did not check other possible combinations).

  1. DFTB+ options (tested) (See your confg.cmake in dftb+)

-. WITH_OMP: TRUE or FALSE

-. WITH_DFTD3: TRUE or FALSE

-. WITH_API: TRUE (Mandatory for static library, e.g., library.a)

-. BUILD_SHARED_LIBS: TURE (Mandatory for shared library, e.g., library.so, mandatory for python-based lammps users)

-. You may have compile issues if you try with other environments.

2.1. Installation of DFTB+ (recommended for the most fundamental version)

-. Compile the dftb+ (WITH_OMP, WITH_API: TRUE)

-. Check libdftbplus.a is generated.

-. Locate libdftbplus.a in preffered folder (ex., ~/applic/lib/dftbplus)

2.2. Installation of LAMMPS (recommended for the most fundamental version)

-. Use LAMMPS version 29OCT20, the newest version did not work for "fix" based modification.

-. Copy lib/dftbp to LAMMPS_sourcecode/lib

-. Edit Makefile.lammps.mpi in lib/dftbp, "location of library" you set in DFTB+ installation (ex., ~/applic/lib/dftbplus).

-. Move src as lammps/src/DFTBP

!! Make sure your dftbplus.h is the same as provided from dftbplus (there might be updates for API functions).

-. Edit Makefile in lammps/src folder;include "dftbp" in PACKAGE.

-. Check "make package-status" whether you have DFTBP package

-. Make available with "make yes-dftbp"

-. Compile lammps with "make mpi" in src folder (compile with intel compiler + mpich3.2.1)

3 Usage and Example

!! Before you are running the simulation. Check OMP_NUM_THREADS= 1 or specify a number

!! Without specified the OMP number, DFTB+ tries to use all available cores, making it slow.

3.1 Graphene md (example C-C.skf is MIO)

-. data file for lammps and dftb+ should be prepared separately.

-. The order of input atoms should be matched.

-. Check dftb_in.hsd for options for dftb+. Most options are turned off except force calculations

dftbp's People

Contributors

gsjung0419 avatar

Stargazers

Penghua Ying avatar  avatar

Watchers

James Cloos avatar  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.