Skip to content

A simple program to read log files generates by LAMMPS

License

Notifications You must be signed in to change notification settings

thexiang-boy/lammps-logfile-reader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

lammps-logfile-reader

A simple program to read log files generated by LAMMPS. Supports breaking conditions under the condition that they are named "Fix halt", as in LAMMPS documentation.

Creates an object containing the information in the logfile, stored in as dictionaries. To access data

Requirements

pandas regex json

Usage

from read_lammps_log.py import readLog

path = 'some/path/log.lammps'
variable = 'Temp'

log_reader = readLog(path)
temperature = log_reader.get(variable)

To get full list of keys (thermo_style)

termo_style = log_reader.keys()

To-do

  • Add user customisability for halting condition
  • Create pypi package
  • Create tests

About

A simple program to read log files generates by LAMMPS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%