← Back to team overview

yade-dev team mailing list archive

Re: What is the data structure for storing the particle in the DEM part in YADE?

 

 > Can you help me?
 > What is the data structure for storing the particle in the DEM part in YADE?
 > and the algorithm to access and update the data during the computing for
 > each time step?
 >  thanks.

Hi, have a look at Body class (core/Body.hpp), which serves as a container. 
I has pointers to other storage classes. But beware that in core only base 
classes are mentioned, but in DEM it is classes derived from them that are 
actually used. Those parameters are (abtract classes, derived class in 
parentheses)

1. physicalParameters (ParticleParameters, RigidBodyParameters, ...)
2. geometricalModel (Sphere, Box, ...)
3. interactingGeometry (InteractingSphere, InteractingBox, ...)
4. boundingVolume (AABB, ...)

Have a look at doxygen documentation (generated by "make doc" or
"scons doc"), that will show you class hierarchy.

For the algorithms that access and modify them, they are engines (declared 
in file generator - see also in the .xml file describing the scene) that act 
upon particles in every iteration successively. It gets quite complex in 
detail and documentation is sorely lacking here, though Janek will work on 
improving that soon.

Regards,

Vaclav

_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev



Follow ups

References