[lammps-users] formatting Logs.lammps

Hi all,

Is there an option to filter the unnecessary messages in the Logs file? I simply just want

Step Temp PotEng TotEng Press Volume
0 300 -75609.323 -74902.361 -26895.025 227943.9
1000 220.73013 -75339.926 -74819.766 -1181.725 225690.32

in my logs file.

But since i change my atoms’ setting every 5000 time steps. I have these lines in my log file.

Nlocal: 2279 ave 2588 max 1951 min
Histogram: 3 1 0 0 0 0 0 0 0 4
Nghost: 6249.38 ave 6511 max 5971 min
Histogram: 3 1 0 0 0 0 0 0 0 4
Neighs: 234572 ave 289164 max 179778 min
Histogram: 4 0 0 0 0 0 0 0 0 4

Total # of neighbors = 1876576
Ave neighs/atom = 102.928
Neighbor list builds = 22
Dangerous builds = 0
group lreservoir region left1014 atoms in group lreservoir
set group lreservoir type 1 1014 settings made for type
group rreservoir region right900 atoms in group rreservoir
set group rreservoir type 2 900 settings made for type
Memory usage per processor = 2.59166 Mbytes
Step Temp PotEng TotEng Press Volume
1000 220.73013 -75339.926 -74819.766 -1181.725 225690.32
2000 251.99288 -75252.048 -74658.216 -914.40049 226165.64
Loop time of 59.4281 on 8 procs for 1000 steps with 18232 atoms

Is there an option to turn off these messages in Log file? i just want the log file to show

1000 220.73013 -75339.926 -74819.766 -1181.725 225690.32
2000 251.99288 -75252.048 -74658.216 -914.40049 226165.64

Hi all,
Is there an option to filter the unnecessary messages in the Logs file? I
simply just want

a) you can extract the info from the log file through creative
use of 'grep' (grep -A2 '^Step ' log.lammps | grep -v Step)
or awk, perl, python or whatever script language you are
familiar with.

b) you can use fix print and write only the data you care about
into a separate file.

axel.

Or
c) use tools/python/log2txt.py which parses the thermo
info out of a log file into columns in a text file. This uses
the "log" tool in Pizza.py which can that and many other things
as well.

In other words, the Python script for what you want to
do is already written.

Steve