Skip to content
User Guide for MDAnalysis (GSoD Project)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc changed to mdanalysis docs theme (#31) Nov 19, 2019
.gitignore
.travis.yml Data structures (#14) Oct 26, 2019
README.rst Create README.rst Sep 28, 2019
environment.yml Data structures (#14) Oct 26, 2019

README.rst

MDAnalysis User Guide

Build Status

User Google Group Developer Google Group

MDAnalysis is a Python toolkit to analyze molecular dynamics trajectories generated by a wide range of popular simulation packages including DL_Poly, CHARMM, Amber, NAMD, LAMMPS, and Gromacs. (See the lists of supported trajectory formats and topology formats.)

import MDAnalysis as mda

# Load simulation results with a single line
u = mda.Universe('topol.tpr','traj.trr')

# Select atoms
ag = u.select_atoms('name OH')

# Atom data made available as Numpy arrays
ag.positions
ag.velocities
ag.forces

# Iterate through trajectories
for ts in u.trajectory:
    print(ag.center_of_mass())

There are also a number of tutorials on the MDAnalysis homepage that explain how to conduct RMSD calculations, Alignment and more features of MDAnalysis.

You can’t perform that action at this time.