find id clump in list
hello, every one
I'm beginner in Yade .I want to have a list of clumps id, in the code below, and know what is there any connection between the clumps?
thank you
from yade import pack
######
### DEFINING VARIABLES AND MATERIALS ###
#######
# The following 5 lines will be used later for batch execution
nRead=readParam
num_spheres=1000,# number of spheres
compFricDegree = 30,# contact friction during the confining phase
ConPre=-30000,
key='_
unknownOk=True
)
from yade.params import table
num_spheres=
key=table.key
targetPorosity = 0.41#the porosity we want for the packing
compFricDegree = table.compFricD
finalFricDegree = 30 # contact friction during the deviatoric loading
rate=-0.02 # loading rate (strain rate)
damp=0.2 # damping coefficient
stabilityThresh
young=5e6 # contact stiffness
mn,mx=Vector3(
ConPre=-100000
O.materials.
## create walls around the packing
walls=aabbWalls
wallIds=
## use a SpherePack object to generate a random loose particles packing
from yade import pack
sp=pack.
sp.makeCloud(
#for ss in sp: #split SpherePack into two other packs based on the particle size
#r = ss[1]
#if r > .05/2:# please note that you feed diameters nor radii in psdSizes, that is why I divide it by 2
#spBig.
#else:
#spSmall.
print('bbb')
sp.toSimulation
relRadList1 = [0.2882557656,
relPosList1 = [[0,-0.
relRadList2 = [0.29,0.
relPosList2 = [[0,-0.
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.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: