Skip to main content

starpolymers

starpolymers is a Python Library used for generating LAMMPS input files and analysing LAMMPS output files, in dump formats and other formats. Additionally, there are scripts used for interacting with Colvars input/output files.

The package is used to generate molecules and LAMMPS configuration files that follow the atom_style full convention. User-defined molecules can be added if the package is installed manually

Features

  • Create LAMMPS system containing 'molecules'
  • Molecules include salt, linear polyelectrolytes, star polymers
  • Use a template LAMMPS input file and change the variables
  • Generate a Colvars input file for free energy calculations
  • Import LAMMPS dump files

Upcoming

  • Analysis on dump files
  • Plotting tools
  • Custom molecules without manual installation

Installation

pip

Star Polymers is available on PyPi and can be installed using:

pip install starpolymers

conda

From v1.1.3 it will be possible to install starpolymers using anaconda, via conda-forge:

conda install starpolymers -c conda-forge

manual installation

To install the package manually run the following commands:

git clone https://github.com/debeshmandal/starpolymers.git
cd starpolymers
pip install . -vv

Alternatively, since the package is written entirely in Python, one can clone the package and append the path to the $PYTHONPATH environment variable.

Usage

A variety of examples can be found in the ./test folder which contains tests for generating files. Notably the config and input_files subfolders contain examples of generating files needed to create LAMMPS systems and run simulations.

Example

import starpolymers
lammps_system = starpolymers.generators.System(50)
molecules = starpolymers.generators.MoleculeFactory([
        {
            'molecule' : 'salt', 
            'concentration' : 100, 
            'anion' : 1, 
            'cation' : 1
        }
    ])
lammps_system.add_molecules(molecules)
config_file = starpolymers.generators.ConfigFile(system)
config_file.write('config.dat')

Metadata

Release files for starpolymers 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for starpolymers 2.1.0
File Size Uploaded Provenance Actions
starpolymers-2.1.0.tar.gz 31.9 kB Without provenance Details for starpolymers-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for starpolymers 2.1.0
File Interpreter ABI Platform Actions
starpolymers-2.1.0-py3-none-any.whl Python 3 none any Details for starpolymers-2.1.0-py3-none-any.whl

Total release size: 79.3 kB

Release files / starpolymers-2.1.0.tar.gz

Download URL starpolymers-2.1.0.tar.gz
Size 31.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8742b1fdba1c3994417015f331b5f69baf783259a4488f0cb80cecad9006edae
BLAKE2b-256 checksum
How to use checksums
cd3251b566b978471cfb29b9bb074b12d47be3b0aa364d5900b6421a9bd12b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9

Release files / starpolymers-2.1.0-py3-none-any.whl

Download URL starpolymers-2.1.0-py3-none-any.whl
Size 47.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd652fc7f08770693464c6c7ef4a15234d4335cf872c980795f6d501dbc006fc
BLAKE2b-256 checksum
How to use checksums
adb3ac4f8e120c0ee3560381d003ea869df0eb1575236cd2e656bc3db2d7ef40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9

Security for starpolymers 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page