calculate mass content of a group of particles through something like label
Hi,
I'd like to calculate the mass content of a group of spheres, as far as I know, we can obtain a mass of one sphere by:
O.bodies[
I'd like to ask that if we can obtain the mass of a group of spheres like: appending some spheres with a same label, like:
O.append(
O.append(
O.append(
O.append(
then we can obtain the total mass of spheres with label1, and label2 respectively?
I have tried in Yade, it seems that we can not give each sphere a label, is there any way that we can classify the spheres to different groups so that we can just loop in one group of spheres to calculate the mass?
Thanks in advance!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- gaoxuesong
- Solved:
- Last query:
- Last reply: