replace by clump
Hello everybody I have two series of small and big particles in this code. when I replaced rectangular cube clumps with big particles, length of Clumps become larger than the diameter of primary spheres .what's the reason?
Where did I go wrong?
from yade import pack
young=5e6 # contact stiffness
mn,mx=Vector3(
compFricDegree =30
O.materials.
#O.materials.
O.materials.
isCohesive=
normalCohes
shearCohesi
))
## create walls around the packing
walls=aabbWalls
wallIds=
## use a SpherePack object to generate a random loose particles packing
sp=pack.
spSmall = pack.SpherePack()
spBig = pack.SpherePack()
sp.makeCloud(
for ss in sp: #split SpherePack into two other packs based on the particle size
r = ss[1]
if r > .078/2:# please note that you feed diameters nor radii in psdSizes, that is why I divide it by 2
spBig.
else:
spSmall.
# add only the spheres that you want to replace and replace them with clump1
spSmall.
relRadList1 = [0.2882557656,
relPosList1 = [[0,-0.
#peanut:
relRadList2 = [0.29,0.
relPosList2 = [[0,-0.
#stick:
relRadList3 = [0.21,0.
relPosList3 = [[0,-0.
templates= []
templates.
templates.
templates.
#### show how to use replaceByClumps():
O.bodies.
for b in O.bodies:
if b.isClumpMember: b.shape.
####product trash#####
a=[0,.006,
b=[0,.006,
c=[0,.006]
d=[]
e=[.005]
g=e*100
for i in a:
for j in b:
for k in c:
d.append(
#add the remaining spheres stored in the other sphere pack
spBig.toSimulat
ct2 = clumpTemplate(g,d)
aa=O.bodies.
for ii in aa:
xx=ii[1]
for jj in xx:
O.bodies[
O.dt = 0
O.step()
for i in O.interactions:
i.phys.unp = i.geom.
Thank you for your reply.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: