Skip to main content

Read lammps dump trajectory.

Project description

ReadLammpsTraj

  • Read lammps dump trajectory

Installation

  • github:

    git clone https://github.com/eastsheng/ReadLammpsTraj
    cd ReadLammpsTraj
    pip install .
    
  • pip

    pip install ReadLammpsTraj
    

Usage

import ReadLammpsTraj as RLT

md = RLT.ReadLammpsTraj(f)
# read header info from lammpstrj 
md.__version__()
md.read_info()
# read mass x y z info from lammpstrj 
position = md.read_mxyz(i)
# calculating mass density along z-axis from lammpstrj 
md.oneframe_moldensity(position,Nz=100,id_range=[1,1000],mass_dict={1:15.9994,2:1.00797},id_type="atom",density_type="mass",direction="z")

x,y,z,rho= md.TwoD_Density(position,atomtype_n=[1,2],Nx=60,Ny=1,Nz=60,mass_or_number="mass",id_type="atom")

Fixes

  • 1.2.0

    • Many modifications
  • 1.1.9

  • Add id_type arg for TwoD_Density() function.

  • Modify the read_header() function

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

ReadLammpsTraj-1.2.2.tar.gz (10.3 kB view hashes)

Uploaded Source

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