Skip to main content

A collection of utility python functions for handling LAMMPS output and polymers in Python

Project description

Pylimer-Tools

Total Code Test Coverage Run Tests Publish DocumentationPyPI version PyPI download month PyPI license

A collection of utility python functions for handling LAMMPS output and polymers in Python.

This toolbox provides means to read LAMMPS output: be it data, dump or thermodynamic data files. Additionally, it provides various methods to calculate with the read data, such as computing the radius of gyration, mean end to end distance, or simply splitting a polymer network back up into its chains.

Installation

Use pip:

pip install pylimer-tools

Usage

NOTE: currently, this release's API is unstable and subject to change.

See the documentation for a current list of all available functions.

Example

Example useage can be found in the documentation, the tests, the CLI application or in the following code snippet:

import numpy as np

from pylimer_tools_cpp import UniverseSequence

filePath = "some_lammps_output_file.dat"
universeSequence = UniverseSequence()
universeSequence.initializeFromDataSequence([filePath])
universe = universeSequence.atIndex(0)
print("Size: {}. Volume: {} u^3".format(
    universe.getSize(), universe.getVolume()))
print("Mean bond length: {} u".format(
    np.mean([m.computeBondLengths().mean() for m in universe])))
print("Mean end to end distance: {} u".format(
    np.mean([m.computeEndToEndDistance() for m in universe])))

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

pylimer_tools-0.1.11.tar.gz (196.4 kB view hashes)

Uploaded Source

Built Distributions

pylimer_tools-0.1.11-cp310-cp310-win_amd64.whl (729.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pylimer_tools-0.1.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pylimer_tools-0.1.11-cp310-cp310-macosx_10_16_x86_64.whl (2.8 MB view hashes)

Uploaded CPython 3.10 macOS 10.16+ x86-64

pylimer_tools-0.1.11-cp39-cp39-win_amd64.whl (718.4 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pylimer_tools-0.1.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pylimer_tools-0.1.11-cp39-cp39-macosx_10_16_x86_64.whl (2.8 MB view hashes)

Uploaded CPython 3.9 macOS 10.16+ x86-64

pylimer_tools-0.1.11-cp38-cp38-win_amd64.whl (728.9 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pylimer_tools-0.1.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pylimer_tools-0.1.11-cp38-cp38-macosx_10_16_x86_64.whl (2.8 MB view hashes)

Uploaded CPython 3.8 macOS 10.16+ x86-64

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