Hello,
I am trying to save all particles positions into a gsd file during a simulation after each num_out steps.
As I understood setting dynamic=["properties"] in hoomd.write.GSD should be enough. I used this code:
logger = hoomd.logging.Logger()
logger.add(thermodynamic_properties)
logger.add(sim, quantities=["timestep", "walltime"])
gsd_writer = hoomd.write.GSD(filename=log_file,
trigger=hoomd.trigger.Periodic(num_out),
mode="wb",
dynamic=["property"],
filter=hoomd.filter.Null())
sim.operations.writers.append(gsd_writer)
gsd_writer.log = logger
sim.run(num_steps)
Unfortunately, when I read the log file and look for traj[i].particles.position it is empty. Do you have any idea where might be the problem?
Thanks, Pavel