EDEM API - Contact Model Example: Model to track particle-geometry contacts


Overview

 API model to track particles which come into contact with named geometries, which some of you might find useful for visualizing. The API GUI holds the name of the geometries which you are interested in knowing whether a particle contacted them or not. If a particle contacted one of the geometries in the GUI, it will get a value of 1 added to the custom property “Number of Geometry Contacts”. Pretty simple. Included the src code and an example with the compiled dll.

Update October 2024: The model has been updated to version 3.7 of the API and it now works on GPU.

Usage/Installation Instructions

  1. Place the TrackGeometryContacts.dll and TrackGeometryContacts.cu in the same folder as the .dem file
  2. Go to the Physics > Particle to Geometry section and Edit Contact Chain.  Add TrackGeometryContacts from the Plug-in models area (note this has already been done for the supplied example)
  3. Once the TrackGeometryContacts model has been added, click on it then click on the wheel button and choose the geometries you want to track the contacts.