Skip to main content

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:

Documentation

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

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
pip 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/

Download files

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

Source Distribution

atooms_dynamics-2.1.0.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atooms_dynamics-2.1.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file atooms_dynamics-2.1.0.tar.gz.

File metadata

  • Download URL: atooms_dynamics-2.1.0.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for atooms_dynamics-2.1.0.tar.gz
Algorithm Hash digest
SHA256 9460f5fef4ed04a28d906a20044eef02527358c8af73104df41874b3cf545c2c
MD5 366706895e8efe019d1bb7f60518df2b
BLAKE2b-256 68a2d1b4faa70cf710708535f2059427280c1d5e90393fa46f8720625e6a88a6

See more details on using hashes here.

File details

Details for the file atooms_dynamics-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for atooms_dynamics-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe29a8b34570cc1c5fbda04fb896f78508d250b8ad12e36e73e9c41e705d290d
MD5 620ebbdd2d12f9917dc3cfd3e40acf1e
BLAKE2b-256 1bff90c27a8cf07e7d54dcdaed2376a5cf3fd3b2be261300de9cfbf27a0de575

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 files

2.0.0

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.0

1 file

0.5.0

1 file

0.4.0

1 file

0.3.0

1 file

0.2.0

1 file

0.1.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page