EDEM CUDA API - Contact Model Example: Hertz-Mindlin Effective Sphere

Richard Wood_20774
Richard Wood_20774
Altair Employee
edited May 2023 in Altair Exchange

Overview

Attached is the source code for the Hertz-Mindlin Effective Sphere model using version 3.3 of the API. Please note that this has been written for EDEM’s CUDA solver and as such will only run on Nvidia GPUs. The model is for the base contact model only; for rolling friction please add a rolling friction model from the EDEM GUI.

The source code consists of:

  • Two .cpp files
    • CHertzMindlinEffectiveSphere_v3_3_0.cpp
    • HertzMindlinEffectiveSphere_v3_3_0.cpp
  • One .h file
    • CHertzMindlinEffectiveSphere_v3_3_0.h
  • One .cu file
    • HertzMindlinEffectiveSphere_v3_3_0.cu

To use the model, the CPU-API code should be compiled into a library file. When running a simulation the .cu file should be in the same location as the library file.

Please see the EDEM API Documentation and the Programming Guide > GPU API User Guide in the EDEM help for further details.

Usage/Installation Instructions

.