Hey Yunhan,
Yes, you can access the total force acting on a particle through the local snapshot see (https://hoomd-blue.readthedocs.io/en/v3.4.0/module-hoomd-data.html#hoomd.data.ParticleLocalAccessBase).
If you want force specific look at the forces property of a potential object (https://hoomd-blue.readthedocs.io/en/v3.4.0/module-md-force.html#hoomd.md.force.Force.forces) or the local force buffers if you know the force has not changed since it was last evaluated (https://hoomd-blue.readthedocs.io/en/v3.4.0/module-md-force.html#hoomd.md.force.Force.cpu_local_force_arrays).
Best,
Brandon
--
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/af4590e3-9c69-4c07-bb2a-9eff4132aa59n%40googlegroups.com.