EDEM API - Contact Model Example: Hertz-Mindlin

Stephen Cole
Stephen Cole
Altair Employee
edited October 25 in Altair Exchange

Overview

Attached is the source code for the Hertz-Mindlin model using version 3.7 of the API. Please note this is Hertz-Mindlin only, for rolling friction please add a rolling friction model from the EDEM GUI.

The source code consists of the CPU-API code updated to version 3.7 and the GPU-API code supplied as the file hertzMindlin.cu

Pre-Requisite

For information about compiling EDEM API Models please see:

https://community.altair.com/csm?id=kb_article_view&sysparm_article=KB0037690

or the EDEM Help:

https://help.altair.com/edem/programming_guide.htm

More EDEM and EDEM API Tutorials can be found here:

https://community.altair.com/community?id=community_blog&sys_id=5e7dc459979de950e3b0361e6253afae

Usage/Installation Instructions

To use the CPU-API code should be compiled into a library file. When running a simulation if the .cu file is in the same location as the library the model will be GPU compatible, otherwise it will run on CPU only.