Code Monkey home page Code Monkey logo

mdbrushanalysis's Introduction

MDBrushAnalysis

GitHub license Python version GitHub last commit DOI

This repository contains a library of Python classes for parsing LAMMPS density profiles and data files and specifically for post-processing of MD simulations of polymer brushes in equilibrium with solvent vapours.

Installation

Simply clone the repository using Git:

foo@bar:~$ git clone https://github.com/Compizfox/MDBrushAnalysis.git

or download a release and extract it. The Git approach has the advantage that updating is as easy as git pull.

Dependencies

MDBrushAnalysis requires at least Python 3.6. Numpy and Pandas are required by all scripts. Additionally, ProfileAnalyser also depends on SciPy, and DropletAnalyser depends on SciPy, Matplotlib, and OpenCV.

The dependencies can be installed in a virtualenv using Pipenv:

foo@bar:~$ pipenv install
foo@bar:~$ pipenv shell
(MDBrushAnalysis) foo@bar:~$ 

If you do not have Pipenv, you can install with pip install pipenv.

Overview

BrushDensityParser

AveChunkParser defines a generic class for parsing data output by LAMMPS' ave/chunk fix. The method get_reshaped_data() provides a way to reshape the long format temporal frames to a new dimension. BrushDensityParser is a subclass of the former, specifically for density profiles.

LAMMPSDataParser

LAMMPSDataParser defines a class that can parse LAMMPS data files. Using the method get_positions_by_type(), particles of a certain type can be selected and their coordinates returned. get_density_profile() computes N-dimensional density profiles by binning.

ProfileAnalyser

ProfileAnalyser defines a class for the post-processing of density profiles output by MD simulations of polymer brushes in equilibrium with solvent vapours. Density profiles of polymer and solvent are loaded using BrushDensityParser (described above). Unequilibrated temporal frames are trimmed from the beginning before temporal averaging and spatial interpolation. Temporally-averaged data is cached in files using pickle.

The class contains various methods for determining spatial limits of interest in the system and integrating density profiles to compute the amount and fraction of sorbed solvent.

DropletAnalyser

DropletAnalyser defines a class for extracting contact angles from 2D density profiles (pixmaps) by fitting circles to the droplets. BrushDensityParser can be used to parse LAMMPS density profiles to pixmaps.

License

This project is free software licensed under the GPL. See LICENSE for details.

mdbrushanalysis's People

Contributors

compizfox avatar dependabot[bot] avatar originalgre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.