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/

Metadata

Release files for atooms-dynamics 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atooms-dynamics 2.1.0
File Size Uploaded Provenance Actions
atooms_dynamics-2.1.0.tar.gz 27.8 kB Without provenance Details for atooms_dynamics-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for atooms-dynamics 2.1.0
File Interpreter ABI Platform Actions
atooms_dynamics-2.1.0-py3-none-any.whl Python 3 none any Details for atooms_dynamics-2.1.0-py3-none-any.whl

Total release size: 53.4 kB

Release files / atooms_dynamics-2.1.0.tar.gz

Download URL atooms_dynamics-2.1.0.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9460f5fef4ed04a28d906a20044eef02527358c8af73104df41874b3cf545c2c
BLAKE2b-256 checksum
How to use checksums
68a2d1b4faa70cf710708535f2059427280c1d5e90393fa46f8720625e6a88a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / atooms_dynamics-2.1.0-py3-none-any.whl

Download URL atooms_dynamics-2.1.0-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe29a8b34570cc1c5fbda04fb896f78508d250b8ad12e36e73e9c41e705d290d
BLAKE2b-256 checksum
How to use checksums
1bff90c27a8cf07e7d54dcdaed2376a5cf3fd3b2be261300de9cfbf27a0de575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for atooms-dynamics 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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