Skip to main content

Package for building molecular systems

Project description

build docs License: GPL v3

Molecular builder

This package facilitates building molecular systems. It has functions for creating bulk crystals and for fetching periodic boxes of non-crystalline systems from the internet. After generating bulk crystals, the user may carve out specific geometries, and combine several elements to create a system.

We also support adding water using packmol. This requires having packmol installed.

Dependencies

This molecular builder relies heavily on the atomic simulation environment (ase) and ovito. Ase is used to generate crystals from space group descriptions, ovito is used to create bonds and to output molecular systems in the lammps data format.

This molecular builder is made with LAMMPS in mind. Usually, saving to input files for other simulators will work just fine, but anywhere a choice has to be made, convenience when preparing systems for LAMMPS will be prioritized.

Installation

pip install molecular-builder 

Usage

Simple use case for creating a bulk alpha-quartz crystal.

from molecular_builder import create_bulk_crystal, write
atoms = create_bulk_crystal("alpha_quartz", [50,100,200])
write(atoms, "alpha_quartz.data)

Please refer to the documentation for more usage examples.

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

molecular_builder-0.3.1.tar.gz (16.5 kB view details)

Uploaded Source

File details

Details for the file molecular_builder-0.3.1.tar.gz.

File metadata

  • Download URL: molecular_builder-0.3.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for molecular_builder-0.3.1.tar.gz
Algorithm Hash digest
SHA256 34bb1d4fc3753afa63a81cf74a180039ac7c1604f96c58a66e70cf3944c3b0d5
MD5 b5c9862198576800c8b3a73c0379b504
BLAKE2b-256 3588a7f38516547b900db413664602e6dab63225f0b2a9a20dd703ad2fad4f87

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