[lammps-users] how to set screen-displaying and file-loging with different output frequency ?

Hi,all

Can lammps set screen-displaying and file-loging with different output frequency ?

I hope it can output to screen every 1000 steps, so I can know which step it runs.
and output to log file every 10 steps, so I can get enough energy information.

Is there any way to do this?

Thank you!

Cun Zhang

nope - you can't do that. You can use a command-line
switch -screen to redirect screen output to a file if you
don't want to see it.

Steve

Hi,all

Can lammps set screen-displaying and file-loging with different output
frequency ?

I hope it can output to screen every 1000 steps, so I can know which step it
runs.
and output to log file every 10 steps, so I can get enough energy
information.

i doubt that you need those values _that_ often. they are highly
correlated and thus have little statistical relevance.

while you cannot change the frequency of log and screen output
individually, you can generate any custom output of the properties
that you are interested in via fix print. just define some "equal" type
variables for the properties you need in high resolution and output
them in the fix print statement.

cheers,
    axel.

Steve and Axel,

Thank you for your reply!

command “fix print” which Axel said is exactly what I want!

I can use “thermo 1000” to display log on screen. And use "fix print " command to output energy,force etc to file every step.
So I can watch which step it runs, and get enough energy information for further processing.

Cheers!

Cun Zhang