GithubHelp home page GithubHelp logo

singroup / critcatworks Goto Github PK

View Code? Open in Web Editor NEW
4.0 6.0 0.0 84.33 MB

Workflow manager for DFT simulations on nanocluster databases using Fireworks

License: GNU General Public License v3.0

Python 99.54% Shell 0.23% Assembly 0.01% Scala 0.23%

critcatworks's Introduction

critcatworks

CritCatWorks is a workflow manager for DFT simulations on nanocluster databases built on Fireworks. The documentation along with tutorials is available at https://singroup.github.io/critcatworks/

Quick example

# This example will only run if you have a connection to a mongodb database
# containing a nanocluster simulation (Execute nanocluster workflow to get
# one). username, password, extdb_ids along with template_path and 
# worker_target_path need to be provided

from fireworks import LaunchPad, Workflow
import pathlib
import os, sys
import getpass
from critcatworks.database import mylaunchpad
from critcatworks.workflows.coverage import get_coverage_workflow

USERNAME = "myusername"
PASSWORD = getpass.getpass()

# set up the LaunchPad and reset it
launchpad = mylaunchpad.create_launchpad(USERNAME, PASSWORD)

# simple coverage workflow
wf = get_coverage_workflow(username = USERNAME, 
    password = PASSWORD,
    template_path = str(pathlib.Path("./templates/triton_gopt.inp").resolve()), 
    worker_target_path = "/path/to/my/calculation/directory/",
    extdb_ids = [245,],                          # unique identifier of your nanocluster structure in your mongodb database
    reference_energy = -1.16195386047558 * 0.5,  # half h2 total energy as reference
    adsorbate_name = "H",
    max_iterations = 4,                          # coverage workflow iterations
    adsite_types = ["top", "hollow", ],          # initial population of the adsorption sites on the nanocluster
    n_max_restarts = 1,                          # one DFT restart upon failure
    skip_dft = False,
    bond_length = 1.5,                           # converges when no adsorbates are as close as the specified bond length
    n_remaining = 80,                            # initial reduction of adsorbates to this number 
    extdb_connect = {"db_name": "ncdb"},         # default database is testdb. use this for production runs
)   

# store workflow on launchpad
launchpad.add_wf(wf)

Installation

critcatworks

  1. virtual environment recommended virtualenv --python=python3 critcatenv source critcatenv/bin/activate

  2. Download this repository

git clone [email protected]:SINGROUP/dscribe.git
  1. Go inside this repository cd critcatworks

  2. slightly modified NOMAD CP2K parser Installation

This step will become obsolete once the cp2k parser is available through pip

pip install numpy cython

cd nomad_parser/python-common
pip install -r requirements.txt
pip install -e .

cd ../parser-cp2k
pip install -e .
  1. critcatworks installation
cd ../../
python3 setup.py install

--

steps 3 and 4 are automatically executed by

./easily_install_all.sh

critcatworks's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

critcatworks's Issues

Reference

Maybe a good idea to give a link to Fireworks somewhere.

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.