No project description provided
Project description
Dynamics
Netwonian 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é
- Stochastic dynamics
- overdamped Langevin dynamics
Documentation
Check out the tutorial for more examples and the public API for full details.
The tutorial is also available as
- org-mode file
- pdf file
- jupyter notebook
- jupyter notebook on binder for interactive execution
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for atooms_dynamics-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d3207cecfeffebc3478e7b1c345a415b30c17a749ba53332954f9180a40739 |
|
MD5 | c84f84dbff5de6978f6e1be95a693595 |
|
BLAKE2b-256 | f525e05f92dd1133e79801fedb17e3e33e97a22b1680bd6b81094dce97c6ca47 |