EDEM API - Contact Model Example: Heat Conduction

Stephen Cole
Stephen Cole
Altair Employee
edited August 2023 in Altair Exchange

Overview

Attached is the source code for the Heat Conduction and Temperature Update using version 3.3 of the API. Please note this is Heat Conduction and Temperature update only, previously supplied Temperature models included Hertz-Mindlin forces. 

The source code consists of the CPU-API code updated to version 3.3, the GPU-API code supplied as the file HeatConduction_v3_3_0.cl, and the CUDA API code supplied as the file HeatConduction_v3_3_0.cu.

This model is a combined Contact Model and Particle Body Force (temperature update).

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

Also included is an older version of the API code (HeatConductionForGeometry_29July2014.zip) which is an example of using the API to set the Geometry as a heat source.

Usage/Installation Instructions

This model needs to be compiled into a .dll or .so.  Please see the following tutorial:

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

or the EDEM Help:

https://2022.help.altair.com/2022.2/EDEM/Programming_Guide.htm

For details on compiling the model.

 

To use this model please select a base model and rolling friction model in addition to the API.

Comments

  • epsilonc_21166
    epsilonc_21166 New Altair Community Member
    edited May 7

    Dear Mr Stephen Cole,

    Very lucky to see this Model Example, it helps me a lot in my work. Could you please send me a code of the geometry heat source of edem2022? I tried an old version of the geometry heat source code but found that the geometry touched the particle and the particle disappeared, which I found puzzling.

    Thank you for your attention. My email is M202210162@xs.ustb.edu.cn

    Best Regards.

    Epsilon chou

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited May 8

    Dear Mr Stephen Cole,

    Very lucky to see this Model Example, it helps me a lot in my work. Could you please send me a code of the geometry heat source of edem2022? I tried an old version of the geometry heat source code but found that the geometry touched the particle and the particle disappeared, which I found puzzling.

    Thank you for your attention. My email is M202210162@xs.ustb.edu.cn

    Best Regards.

    Epsilon chou

    Hi Epsilon,

    I don't have any models specifically for 2022 but the older version should work.  Typically errors are due to the name of the particles and geometry in the text preference file, you should make sure these match the names of the particles and geometries in the simulation.

    Regards

    Stephen