Re: [hoomd-users] hoomd.write.Table, logging velocity

17 views
Skip to first unread message

Joshua Anderson

unread,
Apr 17, 2023, 8:11:28 AM4/17/23
to hoomd...@googlegroups.com
Clara,

The most efficient way to write, store, and later read the velocities of all particles in the system is hoomd.write.GSD with dynamic=['property', 'momentum'].

Such files will be a fraction of the size of a text formatted file and 100x faster to read and write, even though they also contain the particle positions.
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

On Apr 15, 2023, at 12:26 AM, clara bae <clarab...@gmail.com> wrote:

Dear all,

Always thanks you all for help.
I am right now trying to log the velocity using hoomd.write.Table(if there are any other way that is much more efficient please do let me know!). 
Since, I do not need trajectory, I won't be outputting gad file, and want to only output csv or txt file with velocity of each particle at triggered frame. 

However, I do not know how I can only extract velocity information from logger, and also create a output file with designated named file using hoomd.write.Table. 
<Screen Shot 2023-04-15 at 12.26.14 AM.png>
If anyone can answer it I would greatly appreciate it.




--
You received this message because you are subscribed to the Google Groups "hoomd-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hoomd-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/53582565-2dcb-4a18-a98d-07fe4dcc65een%40googlegroups.com.
<sim_poi_stress_strain.py><Screen Shot 2023-04-15 at 12.26.14 AM.png>

clara bae

unread,
Apr 17, 2023, 3:59:45 PM4/17/23
to hoomd...@googlegroups.com
Dear Dr. Anderson,

Thank you. I will leave it as it is then.
Have a nice day.

Joshua Anderson

unread,
Apr 18, 2023, 7:26:22 AM4/18/23
to hoomd...@googlegroups.com
Clara,

I am considering adding finer grained control to write.GSD in the next release that would allow you to write velocity without position.

------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan
Reply all
Reply to author
Forward
0 new messages