← Back to team overview

yade-users team mailing list archive

[Question #706640]: How to get a volume of a clump using makeClumpCloud?

 

New question #706640 on Yade:
https://answers.launchpad.net/yade/+question/706640

I would like to collect the volume of each clump. If I were to use the example code below, what would I need to call to get the volume of that clump?


Example Code:
clp1 = SpherePack([((sphereRadius,0,0), sphereRadius), ((0,sphereRadius,0), sphereRadius), ((0,0,sphereRadius), sphereRadius), \
				   ((sphereRadius,sphereRadius,0), sphereRadius), ((sphereRadius,0,sphereRadius), sphereRadius), ((0,sphereRadius,sphereRadius), sphereRadius)]) # The clump we want a cloud of
sp = SpherePack()
sp.makeClumpCloud((-0.010,-0.090,-0.010),(0.010,0.49,0.010), [clp1], num=1, seed=42)
sp.toSimulation(color=(0.51,0.52,0.4),material='rubber')

Thanks,
Justin

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.