← Back to team overview

yade-users team mailing list archive

Extremums of coordinates from the containers !!!

 

Hi Janek,

About discrete element part of YADE, could you give me which code I have to write to obtain the extremum of the positions (for example, it could be also the velocities...) for the whole pack of elements.
 
I thought about something like the following :

	MetaBody * ncb = dynamic_cast<MetaBody*>(body);
	min_element(ncb->bodies->begin(),ncb->bodies->end())

The problem is I don't know how to apply this to the coordinates, or the velocities.

Help me :o)   thanks in advance

Lionel

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



Follow ups