Skip to content

DarioZar/PYMD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PYMD: PYthon Molecular Dynamics

Python package for MD simulations. Currently supporting NVE, NVT simulations with Lennard-Jones potential.

Features

  • PyQT GUI
  • Object-Oriented API
  • Fast force computation using Cython

Installation

Requirements

Python (pip) and gcc with math module

Installing the package

  1. Clone the repo
git clone https://github.com/DarioZar/pymd.git
  1. Install using pip
pip install ./pymd

Usage

from pymd.element import gen_element
from pymd.atoms import Atoms
from pymd.state import NVTAndersenState

argon = gen_element("Ar")
atoms = Atoms(N=256, rho=0.8, elem=argon)
state = NVTAndersenState(atoms=atoms, T0=1.2, Tbath=1.2, nu=5, rc=3)

output, trajectory = state.simulate(s=10000, dt=0.001, fSamp=100)
  • To start the GUI, use

    pymd

    or

    python -m pymd
  • To start the data analysis GUI, use

    pymdplot

    or

    python -m pymdplot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages