Skip to main content

Newtonian and stochastic dynamics backends for atooms

Project description

Dynamics

pypi version license Binder pipeline coverage report

Newtonian and stochastic dynamics backends for atooms.

Quick start

Run a molecular dynamics simulation of a Lennard-Jones system from an existing xyz file

from atooms.trajectory import Trajectory
from atooms.simulation import Simulation
from atooms.dynamics.netwonian import VelocityVerlet

# Start from the last frame of input.xyz
trajectory = Trajectory('input.xyz')
system = trajectory[-1]
system.interaction = Interaction('lennard_jones')
backend = VelocityVerlet(system, timestep=0.002)
sim = Simulation(backend, steps=200)
sim.run()

Do the same via the API, storing configurations in output.xyz,

from atooms.dynamics.api import md

md('input.xyz', 'output.xyz',
   method='velocity-verlet', model='lennard_jones',
   dt=0.002, nsteps=200, config_number=20)

or from the command line

md.py --method velocity-verlet -n 200 --dt 0.002 --config-number 20 input.xyz output.xyz

Features

Integration algorithms (work in progress)

  • Netwonian dynamics
    • velocity-Verlet
    • Nose-Poincaré
    • Berendsen thermostat/barostat
    • event-driven
  • Stochastic dynamics
    • overdamped Langevin dynamics

Documentation

Check out the tutorial for more examples and the public API for full details.

Org-mode and jupyter notebooks are available under docs/. You can run the tutorial interactively on Binder.

Installation

From pypi

pip install atooms-dynamics

You can clone the code repository and install from source

git clone https://framagit.org/atooms/dynamics.git
cd dynamics
make install

Contributing

Contributions to the project are welcome. If you wish to contribute, check out these guidelines.

Authors

Daniele Coslovich: https://www.units.it/daniele.coslovich/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

atooms_dynamics-1.1.0-py2.py3-none-any.whl (14.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file atooms_dynamics-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for atooms_dynamics-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c4098e912fbc1e9dcd71839bb9dd68cec349cc6378ba21a0983b942da8488ce6
MD5 1be8f28d75d271fa7f8d218ee860b7bd
BLAKE2b-256 c80784309441ece6cacb8282121188f8c5e9f47e3db782e6f58e49c210a94ed1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page