EDEM API: Custom contact model to change particle properties

User: "Bharath Rangavittal"
Altair Community Member
Updated by Bharath Rangavittal

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?

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "RWood"
    Altair Employee
    Updated by RWood

    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