Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pylimer-tools

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pylimer-tools

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

  • 0.1.11
  • PyPI
  • Socket score

Maintainers
1

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])))

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc