Hello, I am running a LAMMPS simulation where I use the fix ave/time
command to calculate time-averaged quantities. I notice that the values of these time-averaged quantities printed in the thermo
output differ from those written in the output file specified by fix ave/time
. What could be causing this discrepancy, and how can I ensure that the time-averaged quantities are consistent between the thermo
print and the output file? My LAMMPS version is LAMMPS (2 Aug 2023 - Update 2)/Linux
. A simple example LAMMPS input is as follows.
units lj
dimension 3
atom_style atomic
pair_style lj/cut 2.5
boundary p p p
region simulation_box block -20 20 -20 20 -20 20
create_box 2 simulation_box
create_atoms 1 random 1500 341341 simulation_box
create_atoms 2 random 100 127569 simulation_box
mass 1 1
mass 2 1
pair_coeff 1 1 1.0 1.0
pair_coeff 2 2 0.5 3.0
compute temper all temp
compute press all pressure temper
compute poten all pe
compute kinen all ke
variable toten equal c_kinen+c_poten
variable Vol equal vol
timestep 0.005
thermo 100
thermo_style custom step temp pe ke etotal press
min_style cg
minimize 1.0e-25 1.0e-25 20000 20000
reset_timestep 0
thermo 10
fix 1 all ave/time 1 10 10 c_temper c_press c_poten c_kinen v_toten file ave.dat
thermo_style custom step c_temper c_press c_poten c_kinen v_toten
fix 2 all nvt temp 300 300 100
run 100
unfix 2
unfix 1