EDEM API: How to get interaction parameters

Sami Houhamdi
Sami Houhamdi New Altair Community Member
edited March 2022 in Community Q&A

Hello,

 

I'm working on a Coarse Grain contact model and  I need to input the scaling laws in my custom contact model code with EDEM API. Some of these rules need parameters of interaction between particle-to-particle during particle-to-wall contact, so I can't get the parameters that I need using the "interaction" argument of "calculateForce" function.

Is there any way to get the interaction parameters between two elements at the beginning of the simulation before any contact occurs?

 

Thank you in advance.

Tagged:

Answers

  • RWood
    RWood
    Altair Employee
    edited March 2022

    Hi,

    Can you not just use a preference file with a list of your parameters to do as you wish? If the values don't change that seems the most sensible approach to me. This would satisfy your requirement of getting values before any contact exists as the values would be coming from a file of your choosing.

    If the parameters change over time then you could have your parameters stored as custom properties and use either a particle, contact or simulation custom property, depending on what you need.

    Richard