← Back to team overview

yade-users team mailing list archive

Re: [Question #700731]: Calculate the psd curve of the polyhedra

 

Question #700731 on Yade changed:
https://answers.launchpad.net/yade/+question/700731

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,
see below a MWE.
Cheers
Jan

###
from yade import polyhedra_utils
mat = FrictMat()
O.bodies.append((
    polyhedra_utils.polyhedra(material=mat,size=(1,1,1)),
    polyhedra_utils.polyhedra(material=mat,size=(2,2,2)),
    polyhedra_utils.polyhedra(material=mat,size=(3,3,3)),
    polyhedra_utils.polyhedra(material=mat,size=(4,4,4)),
))
b1,b2,b3,b4 = O.bodies
print(polyhedra_utils.SieveSize(b1.shape)) # ~1.2
print(polyhedra_utils.SieveSize(b4.shape)) # ~5.5
polyhedra_utils.SieveCurve() # see file 'sieve_curve.dat'
###

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