Code Monkey home page Code Monkey logo

watcor's Introduction

WatCor: utility to adjust water sites in a Gromacs .gro file

This utility replaces existing water molecules in a Gromacs coordinate file (.gro format) with coordinates that match the specified water model. This may involve adding / removing virtual sites.

The water O atom coordinates are conserved. New H atoms are created so that the H-O-H angle matches the selected water model and the bisector of this agle points to the same direction as in the original file. Virtual (or lone pair) sites are then generated geometrically from the new O and H coordinates. The aim of this procedure is to keep any H-bonding arrangement in the source file intact as much as possible when using the selected model. It will still be necessary to (re)optimise and (re)equilibrate the resulting structure. It is left to the user to change the water model in the topology file.

For a normal biomolecular simulation you are unlikely to need this tool. It is probably easier to first remove all solvent molecules and then solvate the biomolecule using the new water model. This tool is meant to help those who model water with a defined structure, such as hydrates or ice.

Building

From the source directory:

mkdir build
cd build
cmake ..
make

Usage

Move the executable to your working directory or intall in the path:

./watcor -m model input.gro output.gro

If -m model is omitted tip3p is assumed. If output.gro is not given, the new coordinate file is written to stdout.

Currently the following models are included:

  • tip3p (default)
  • tip3p-fb
  • spc/e
  • spc/fw
  • spc/eb
  • opc3
  • opc
  • tip4p
  • tip4p-ew
  • tip4p-fb
  • tip5p
  • tip5p-e

watcor's People

Contributors

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