Skip to main content

Database of interaction models for molecular dynamics and Monte Carlo simulations

Project description

Berni

pypi version license Binder pipeline coverage report

A database of interaction models for classical molecular dynamics and Monte Carlo simulations.

Quick start

Print all the available models

import berni
for model in berni.models:
    print(model["name"])
gaussian_core
coslovich_pastore
bernu_hiwatari_hansen_pastore
lennard_jones
kob_andersen
roux_barrat_hansen
grigera_cavagna_giardina_parisi
harmonic_spheres
kob_andersen_2
dellavalle_gazzillo_frattini_pastore
wahnstrom
kob_andersen
coslovich_pastore

Get a model

berni.models.get("lennard_jones")

Print all the available samples

for sample in berni.samples():
    print(sample["path"])
lennard_jones-13ce47602b259f7802e89e23ffd57f19.xyz
grigera_cavagna_giardina_parisi-0ac97fa8c69c320e48bd1fca80855e8a.xyz
coslovich_pastore-488db481cdac35e599922a26129c3e35.xyz
lennard_jones-5cc3b80bc415fa5c262e83410ca65779.xyz
kob_andersen-8f4a9fe755e5c1966c10b50c9a53e6bf.xyz
bernu_hiwatari_hansen_pastore-f61d7e58b9656cf9640f6e5754441930.xyz

Get a local copy of a Lennard-Jones fluid sample

local_file = berni.models.get("lennard_jones-5cc3b80bc415fa5c262e83410ca65779.xyz")

The local_file can then be used to start a simulation or further analysis.

Documentation

Check out the documentation for full details.

Installation

Clone the code repository and install from source

git clone https://framagit.org/coslo/berni.git
cd sample
make install

Install berni with pip

pip install berni

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 Distribution

berni-0.0.1.tar.gz (58.0 kB view details)

Uploaded Source

Built Distribution

berni-0.0.1-py3-none-any.whl (63.0 kB view details)

Uploaded Python 3

File details

Details for the file berni-0.0.1.tar.gz.

File metadata

  • Download URL: berni-0.0.1.tar.gz
  • Upload date:
  • Size: 58.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for berni-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9055a6536bfa73dbc05e619feeb91ffe31724080b29711a0b2be66c0e780c682
MD5 e27a2479ab72d651fccb1cc99df40ffb
BLAKE2b-256 044f3bf0f6afb207c85378573ab1d42d0962d7e6a0114233369907fa09dc872e

See more details on using hashes here.

File details

Details for the file berni-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: berni-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 63.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for berni-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33e55a00f192face490de6b4d38db50906ca6f4afd85dbf4f38b42181e49b36c
MD5 4d4f5173aabd7e89af016f7cdab1103e
BLAKE2b-256 756339ac8b76d85ab8526136d6c66eec0ba27dec2ae60a964721bf1f39a83afc

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