Skip to content

brhr-iwao/libavogadro1cp2k

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

libavogadro1cp2k

CP2K input generator and output visualizer for Avogadro 1. It also generates CHARMM-Style Parameter (pot) / Protein Structure File (psf) .

Description

A generator of CP2K input, CHARMM-style Force Field Parameter (pot) and Protein Structure File (psf) and a CP2K output visualizer for Avogadro 1 .

Installation

Using with precompiled binary

An easy way to use libavogadro1cp2k is to use with precompiled Avogadro for Windows.

  1. Download the Avogadro installer for Windows (Avogadro-1.2.0-win32.exe) from [Sourceforge] (http://sourceforge.net/projects/avogadro/) and install the Avogadro binary on your Windows PC.

  2. Download [released cp2kextension.zip] (https://github.com/brhr-iwao/libavogadro1cp2k/releases) and unzip it. Copy cp2kextension.dll in For_Avogadro120 directory to (Avogadro install directory, maybe C:\Program Files\Avogadro)\lib\Avogadro\1_2\ extensions directory.

  3. Launch Avogadro. If you find 'Psf/Pot...' and 'CP2K' entries in 'Extensions' menu, the installation was successful.

Compiling with Visual Studio

Here I described only a way to intall on your Windows PC from sources since I worked only on Windows...

  1. Build and install Avogadro from github master source codes by following the instruction Compiling on Windows with MSVC2008 or Compiling on Windows with MSVC 2010 accroding as your environment.

  2. Copy the cp2k folder and all contents to (avogadro root)/libavogadro/src/extensions directory. Add a sentence "add_subdirectory(cp2k)" onto the end of (avogadro root)/libavogadro/src/extensions/CMakeLists.txt.

  3. Launch Visual Studio 20XX command prompt, change the current working diretory to (avogadro root)/scripts and execute the command "nmake" or "nmake cp2kextension".

  4. If nmake completes successfully, cp2kextension.dll is created in (avogadro root)/scripts/lib (or (avogadro root)/scripts/lib/Release). Put this dll in (Avogadro install dir, maybe C:/Program Files/Avogadro)/lib/avogadro/1_2/extensions/.

  5. If you get "Psf/Pot..." and "CP2K"entries in Avogadro "Extensions" menu, the installation was successful.

Usage

Load the molecule you want to work with on Avogadro and then select "Psf/Pot..." or "CP2K > Generate Input..." in "Extensions" menu. This opens a dialog where correspondent parameters can be configured.

To Visualize a CP2K calculation output, select "CP2K > Analyze Output..." in "Extensions" menu and open a "Analyze CP2K output "dialog. Select proper file type via the "Data Type" combo box and load a CP2K output file with the "Load a file..." button.

Note: This software is in early developement stage and should be used for experimentation only. There is absolutely no guarantee of correctness of generated input files and there are probably many bugs.

Contact

Aoyama Iwao

About

CP2K input generator and output visualizer for Avogadro

Resources

Stars

Watchers

Forks

Packages

No packages published