Giter Site home page Giter Site logo

openmm-transformer's Introduction

openmm-transformer

A cleaner way to manage custom forces in OpenMM

This project was initially created to simplify input files for running OpenMM simulations with the Buckingham nonbonded. This package comes with the buckingham force transformer by default.

Transformers

BuckinghamForce

Add a BuckinghamForce tag to your forcefield file using the following format:

<BuckinghamForce bondCutoff="3">
  <Atom type="OW" c6="0.003" c8="0.00003" c10="0.0" a="1600000.0" b="42.00" gamma="35.8967" />
  <Atom type="HW" c6="0" c8="0" c10="0" a="0.0" b="0.0" gamma="0" />
  <Atom type="MW" c6="0" c8="0" c10="0" a="0.0" b="0.0" gamma="0"/>
</BuckinghamForce>

Then in the simulation script use BuckinghamTransformer to prepare the ForceField file for OpenMM's parser:

from openmm_transformer import BuckinghamTransformer
from simtk.openmm import app

with BuckinghamTransformer('my-buckingham-forcefield.xml') as b68:
  forcefield = app.ForceField(b68)

openmm-transformer's People

Contributors

mohebifar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.