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 forTwoD_Density()
function. -
Modify the
read_header()
function
Project details
Release history Release notifications | RSS feed
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 details)
File details
Details for the file ReadLammpsTraj-1.2.2.tar.gz
.
File metadata
- Download URL: ReadLammpsTraj-1.2.2.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f14edcbda5af607a004b664cab38b4b8515f519b63cb9d7a425610ab85219763 |
|
MD5 | 34056d679c4e75b220e11c1ab400f1c2 |
|
BLAKE2b-256 | 78d5feca119d9e2afdea7f03c808cedcf15b2bf95cb692b38a0a9559e1f2427c |