Giter VIP home page Giter VIP logo

threebodytb.jl's Introduction

asdf

ThreeBodyTB.jl

logo

Code for accurate and efficient electronic structure calculations using tight-binding (TB), including three-body interactions. Run TB calculations with nearly DFT (pbesol) accuracy in seconds, using a pre-fit and tested model for most elemental or binary systems.

Or fit your own coefficients!

Calculate energies, forces, and band structures.

ThreeBodyTB is written in the Julia programming language, for easy and efficient computations.

Please see our preprint at arXiv:2112.11585 and our database used for fitting.

Easy Installation

After installing julia (see here), start a REPL and install using the package manager:

using Pkg
Pkg.add("ThreeBodyTB")

Alternatively, you can install from github directly

using Pkg
Pkg.add(url="https://github.com/usnistgov/ThreeBodyTB.jl")

Documentation

See documentation for more details.

Example code

Example of creating a crystal structure of AlP (zincblende) and calculating the energy and band structure.

using ThreeBodyTB
c = makecrys([2.6 2.6 0;2.6 0 2.6;0 2.6 2.6], [0 0 0; 0.25 0.25 0.25], ["Al", "P"])
energy, tbc, flag = scf_energy(c)
plot_bandstr(tbc)

See also the user's guide for more detail.

Performance Note: julia compiles code the first time you run a function, but subsequent runs of this code will take under 1 second. Also, ThreeBodyTB.jl can take advantage of multiple processors if you define the environment variable JULIA_NUM_THREADS=8;export JULIA_NUM_THREADS or start julia with julia --threads 8 where the number of threads is set as appropriate for your system.

threebodytb.jl's People

Contributors

kfgarrity 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.