EDEM API: Custom contact model to change particle properties

Bharath Rangavittal
Bharath Rangavittal Altair Community Member
edited April 2023 in Community Q&A

Hi, 

Is there a way to change Young's modulus of the particle depending on its temperature? Under the method calculateForce(), the struct parameter "element1" which contains all the properties of the element (particle or geometry) is of const type. Is there a way around this?

Tagged:

Answers

  • RWood
    RWood
    Altair Employee
    edited April 2023

    Hi,

    Short version, no. There's no way around making those const values non-const, meaning there's no way to modify the Young's modulus value that is coming from EDEM.

    The way around this is to make your own Young's modulus variable and replace all occurrences of EDEM's Young's modulus inside an API plugin of whatever contact model you want to use.

    For example, if you are using the Hertz Mindlin, you can start from the API version of the model here:

    https://community.altair.com/community?id=kb_article&sysparm_article=KB0113635

    and adjust with your own custom Young's modulus variable.

    Cheers,

    Richard