EDEM API: Contact Model – Total Force on Geometries (with File Size Reduction)
Overview
Here you can find the source code of, and example deck for, a pair of Contact Model API plugins that store the combined force acting on specific geometries as a simulation custom property. These plugins are useful if you want to get geometry data out of a large simulation but do not need to save any other data.
Simulation custom properties only store one value per timestep, as opposed to geometry data that is stored per element, meaning significant reductions in simulation time and data write-out can be achieved, particularly when working with geometries made of many elements. Using the attached plugins, all geometry data can be turned off within the Selective Save options, but geometry forces can still be obtained. Any geometries listed in the preference file geometriesConsidered.txt will have their total force added to the simulation custom property "CP Total Geometry Force".
Within the attached GeometryForcePlugins.zip you will find:
Src.zip: which contains the source code for the two plugins.
Example.zip: which contains:
- A simple example deck (GeometryForceExample.dem) with the plugins loaded
- The compiled .dll (Windows) and .so (Linux) files
- GeometriesConsidered.txt: the preference file used for the example
- Using the plugins.pdf: a brief overview of how to use the plugins and the example
Both plugins use version 3.1 of the API and are supported on EDEM 2019.1 or newer, but neither are currently GPU compatible.
Without plugin:
With plugin:
Usage/Installation Instructions
.