Skip to content

yaweiliu/MolSimulX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MolSimulX

English | 中文

Molecular Simulation EXploration

Feel free to star and fork!

Any comments, suggestions, and questions? Open an issue or submit PRs!


Overview

This project is aiming to integrate tools/scripts used in our molecular simulations of matters. The corresponding tutorials and examples will also be given here.

MolSimulX

MolSimulX


Build work platform

OS

Mac OS, Ubuntu Os and other Linux type OS are recommended. In Windows OS, you can install wsl Ubuntu, and then use the WSL Ubuntu as a subsystem in Windows OS.

  • see use_wsl_ubuntu.md for a simple tutorial on how to instal WSL Ubuntu in Windows OS and to launch WSL Ubuntu in vsode (see below figure)

  • more details can be found here for how to install WSL Ubuntu and here for how to use WSL Ubuntu invscode (see below figure)

wsl_in_vscode

Install software/packages

  • before installation

    • most software/pakcages are installed via code command in Terminal

      • In Mac Os, see here for Mac Terminal
      • In Ubuntu OS, see here for Ubuntu Terminal
      • In WSL Ubuntu, you can launch WSL Ubuntu in vscode, and then open a Ubuntu Terminal from the menu bar
    • bash profile

      • a bash profile is a file used to store environment settings for your terminal, and it is
        • for bash shell
          • ~/.bash_profile in Mac and ~/.bashrc in Ubuntu (~ represents the user’s home directory)
        • for zsh shell (oh-my-zsh for zsh is highly recommanded)
          • ~/.zshrc in both Mac and Ubuntu
      • for the changes in the profile file to be applied, run the source command with the file as an argument
        • source ~/.bash_profile or
        • source ~/.bashrc or
        • source ~/.zshrc
  • install compiler

    • gcc/g++
      • brew install gcc # for Mac
      • sudo apt install build-essential # for Ubuntu
      • test gcc --version
    • make
      • brew install make # for Mac
      • sudo apt install make # for Ununtu
      • test make --version
    • cmake
      • brew install cmake # for Mac
      • sudo apt install cmake # for Ununtu
      • test make --version
  • git

    • install git, see here for details
      • brew install git # for mac
      • sudo apt-get install git # for Ubuntu
    • see use_git.md for basic usage of git
    • see here for more details of git
  • MolSimulX

    • obtain MolSimulX
      • cd some_folder
      • git clone https://gitee.com/yliu3803/MolSimulX.git
    • update MolSimulX
      • cd MolSimulX
      • git pull
  • python and python packages

    • install miniconda (recommended for limited storage space) or anaconda (most python packages are already included)

    • install pyhton packages including via conda

      conda install numpy pandas scipy matplotlib

      conda install nodejs

      conda install -c conda-forge MDanalysis MDAnalysisTests nglview

      conda install -c conda-forge freud fresnel

      pip install plato-draw

      pip install wulffpack

      pip install ase

      Tip:Packages can be install via pip or conda, see details in corresponding official documents.

  • fftool

    • also can be found in ilmdtoolkit/preprocess folder

    • add fftool to the PATH environment variable

      • in bash profile, addexport PATH=path_to_fftool:$PATH
    • see use_fftool.md for basic usage of fftool

  • packmol

    • also can be found in ilmdtoolkit/preprocess folder

    • expand the files and compile the package

      • tar zxvf packmol.tar.gz
      • cd packmol
      • make
    • add packmol to the PATH environment variable

      • in bash profile, add export PATH=path_to_packmol:$PATH
  • lammps

  • vmd

Data processing platform

Jupyterlab is a web-based interactive development environment for notebooks, code, and data. Its flexible interface allows users to configure and arrange workflows in data science, scientific computing, computational journalism, and machine learning.

jupyterlab

  • install jupyterlab

    • conda install jupyterlab
  • see use_jupyerlab.ipynb for basic usage of python and packages in jupyterlab

Other recommendations


Content

preprocess # 预处理

This folder contains some tools and files used to set up a simulation system.

  • folder clandp contains topology and force field files for ILs, provided by Padua Group.

  • folder molecules contains topology and force field files for some small molecules.

  • ions contains topology and force field files for some ions.

  • folder fftool contains source codes of fftool, which, combined with packmol, can be used to build initial configrautions and data files for MD simulations carried out in, such as LAMMPS.

  • packmol.tar.gz contains the source code of packmol.

on-the-fly # 即时处理

This folder contains some tools/srcipts combined with other simulation tools to perform special simulations (e.g. rare event techniques).

postprocess # 后处理

This folder contains some python scripts to analyse/visulise the simulation data (depends on numpy, pandas, scipy, etc. python packages) and to generate the final report (depends on markdown, latex).

use_

Basics usage for some tools and packages.

example_

Some simple examples.

Publications

2022

2011-2021 (part)

About

Tools and Tutorials of Molecular Simulations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published