Giter Site home page Giter Site logo

marioa / gcmcworkflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from richardjgowers/gcmcworkflow

0.0 1.0 0.0 2.14 MB

Perform GCMC sampling using Fireworks!

License: GNU General Public License v3.0

Makefile 0.06% Python 79.35% Shell 20.59%

gcmcworkflow's Introduction

GCMCWorkflow

GCMCworkflow is a Python package for performing GCMC sampling of gas adsorption using Fireworks.

Installation

GCMCWorkflow can be installed via the following steps:

git clone https://github.com/richardjgowers/hydraspa.git

cd hydraspa

pip install -r requirements.txt .

cd ../

git clone https://github.com/richardjgowers/GCMCworkflow.git

cd GCMCWorkflow

pip install -r requirements.txt

# for some pymongo connections
pip install dnspython

# for Raspa simulations
pip install raspa2

Usage and basic tutorial

GCMCWorkflow relies on Fireworks for managing the Workflow execution. You should first [https://materialsproject.github.io/fireworks/introduction.html](familiarise yourself with this package), especially how to use a MongoDB server

A short example for how to set up a simulation of the GCMC sampling of Argon adsorption in IRMOF-1 using Raspa is given:

We will first use hydraspa to prepare the simulation inputs:

hydraspa create -s IRMOF-1 -g Ar -f UFF -o IRMOF1_Argon

This creates a directory called IRMOF1_Argon containing a Raspa input template for our future simulations.

In order to define a sampling Workflow, a "spec file" must be given, an example workflow spec file is given below. This contains information on the temperatures (78K) and pressures (100 to 201,000 Pa) we wish to sample, as well as providing the paths of the templates to be used.

# Example workflow_spec.yml file
name: ArIrmof1
pressures:
 - logspace(100, 125000.0, 10)
 - 0.15M
 - 0.201M  # saturation pressure
temperatures:
 - 78.0
template: IRMOF1_Argon/template/
workdir: IRMOF1_Argon/
nparallel: 1
ncycles: 5000

We can then add this Workflow to our LaunchPad via the submit command:

gcmcworkflow submit workflow_spec.yml -l my_launchpad.yaml

Once submitted, we can check what GCMC Workflows have been submitted using the list command, and query individual Workflows with the check command:

gcmcworkflow -l my_launchpad.yaml list
 
gcmcworkflow -l my_launchpad.yaml check ArIrmof1

The Workflow is executed as normal using Fireworks, using the rlaunch command. For example to execute the Workflow using 4 parallel cores:

rlaunch multi 4

This will run Fireworks (compute tasks) from the Workflow until completion. The progress of these can be viewed by looking inside the IRMOF1_Argon directory.

Upon completion, a file called "results.csv" will be created in the working directory containing the results of our sampling.

Citing

If you find this software useful for your research, consider citing the following publications:

Jain, A., Ong, S. P., Chen, W., Medasani, B., Qu, X., Kocher, M., Brafman, M., Petretto, G., Rignanese, G.-M., Hautier, G., Gunter, D., and Persson, K. A. (2015) FireWorks: a dynamic workflow system designed for high-throughput applications. Concurrency Computat.: Pract. Exper., 27: 5037โ€“5059. doi: 10.1002/cpe.3505.

Contributing

GCMCWorkflow is being actively developed, drop me a line!

gcmcworkflow's People

Contributors

richardjgowers avatar

Watchers

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