Skip to main content

NetSiteForceAndVirial

Derive Macro NetSiteForceAndVirial 

Source
#[derive(NetSiteForceAndVirial)]
Expand description

Automatically implement the hoomd_interaction::NetSiteForceAndVirial trait.

The implemented net_site_force_and_virial sums the result of net_site_force_and_virial over all fields.

Valid on:

  • Structs with named fields.
  • Tuple structs.