interfaceff2gro is a Python script that creates input files for GROMACS using Hendrik Heinz research group Interface forcefield (doi:10.1021/la3038846, Interface_ff) - so far it only works with CHARMM forcefield (for supported atomtypes please see prm file that is included here). It uses msi2lmp utility from Lammps software package to transform mdf and car files (Materials Studio files) to Lammps data file and MDAnalysis Python library. interfacesff2gro creates 3 files: a gro file having coordinates information of your structure, an itp file having topology information and system.top file being a master topology file.
The script was written in Python 3.6 (I have only tested it on Linux). The easiest way to build Python environment is by using Conda. The source file of msi2lmp are included in msi2lmp folder so you do not need to download them.
Create Python 3.6 environment and install MDAnalysis. The easiest way is to use Conda.
conda config --add channels conda-forge
conda create -n envname python=3.6 mdanalysis
source activate envname
Download the files to you computer:
git clone https://github.com/kolmank/interfaceff2gro.git
Enter msi2lmp directory and compile it. According to the authors of the code, the files have been prepared to be compiled using gcc so check if gcc is your default compiler. If you plan to use different compiler, you have to modify the files to make it work. Frc file having atomtypes, bondtypes and angletypes of Interface forcfield has been added to frc_files directory. To compile please use the commands below:
cd interfaceff2gro/msi2lmp/src/
make
Enter the main directory (/interfaceff2gro) and make interfaceff2gro.py executable:
cd ..
cd ..
chmod +x interfaceff2gro.py
The script is ready to go!
To use the script, copy car and mdf files to the main directory of the script (you can copy it directly from MODEL_DATABASE directory of Interface forcefield). IMPORTANT! Both files have to have the same name, otherwise the script wont work. Use the command below:
./interfaceff2gro.py nameofyourcarfile.car
As a result, you should get three files: nameofyourcarfile.gro, nameofyourcarfile.itp and system.top. Examples can be found here.
- It only works with rectangular simulation boxes.
- Supports only atoms included in prm file, which is here. According to my knowledge, it should work with silica, metal, cement (only c3a and c3s), clay and hydroxyapatite models that can be found in the database of Interface forcefield.
- Hendrik Heinz research group that created Interface forcefield (doi:10.1021/la3038846, Interface_ff).
- Lammps software package - msi2lmp used in this project is part of it.
- MDAnalysis Python library.