Why the radius of sphere is negative?
Hello,
I generate a pack and the minimum radius of sphere is negative.Is this correct?
Thanks for any suggestion.
#######
from yade import pack
num_spheres=10000
young=1e6
compFricDegree = 35
mn,mx=Vector3(
O.materials.
O.materials.
walls=aabbWalls
wallIds=
sp=pack.
sp.makeCloud(
sp.toSimulation
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
newton
]
rmin=0
rmax=0
for b in O.bodies:
if isinstance(
if rmax < b.shape.radius:
rmax = b.shape.radius
if rmin > b.shape.radius:
rmin = b.shape.radius
print (rmax,rmin)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Chu
- Solved:
- Last query:
- Last reply: