Hello,
I have a question regarding the behavior of particle custom property values within the EDEM API.
I am wondering if the value of a particle custom property (retrieved via getValue()) for the current time step remains constant throughout a single calculation cycle. Furthermore, I'd like to know if there is a way to immediately access and use a custom property value in one part of the cycle that was updated in an earlier part of the same cycle.
I understand that the EDEM force cycle basically follows this sequence:
- Detect contact
- Calculate contact forces
- Calculate body forces
- Update particle
My specific question is: within this single time step cycle, if I update a particle custom property using customProperty_Delta += during the Calculate contact forces stage, can I then use this newly updated value during the Calculate body forces stage of the same time step?
For example:At time step t, let's say a particle custom property "A" starts with a value of 10.
- In the Contact API model (Calculate contact forces), I update it using
delta += 10. - In the very next stage of the same time step (the Body Force API model), if I read the value of that custom property, will I get 10, or will I get 20?
I suspect that the original value (10) is held constant for the entire time step. If that's true, is there any way to get the value updated in the contact model and use it immediately in the particle body force model?
To be clear: Is there a method to read the value 20 (the value updated by the contact model) in the Body Force API model at time step t, instead of 10 (the original, non-updated value)?
Thank you.
Best regards,