EDEM API: Particle Stress API model
Overview
Here you will be able to find an API model that makes it able to calculate the particle stress. This model is fused with a Hertz-Mindlin contact model and calculates the stress tensor components (StressXX, StressXY, StressXZ, StressYX, StressYY, StressYZ, StressZX, StressZY, StressZZ), as well as the Von Mises stresses. It is also possible to take out the stress calculation part and to fuse it with any other model other than Hertz-Mindlin.
This API model uses the V2.4.0 plugin contact model and the V2.3.0 plugin particle body force.
The stress tensor is calculated by adding the ParticleStress model as a Particle to Particle Contact Model as well as Particle to Geometry Contact Model. Please note that by doing so, you will also add a Hertz-Mindlin contact model since it was fused with the stress calculation.
The Von Mises stresses are calculated by adding the ParticleStress model as a Particle Body Force. If you do not want to have the Von Mises stresses, it is possible to not add it as a Particle Body Force.
Pre-Requisite
For information about compiling EDEM API Models please see:
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
More EDEM and EDEM API Tutorials can be found here:
https://community.altair.com/community?id=community_blog&sys_id=5e7dc459979de950e3b0361e6253afae
Usage/Installation Instructions
Attached here, you will find the following in the ParticleStress.zip file:
- The source code in the “src” folder
- A simulation deck example in the “example folder” (format EDEM 2019)
- The compiled ParticleStress.dll application
- Prefs_file.txt: the first line being the number of particle type in your simulation and the second line being the name of your particle type