Clumping - angl of repose
Hi all,
In below code I have tried to study the effect of percentage/ratio of clumping on repose angle. before adding the clumping section the scrip worked properly however by adding clump grain do not fall down because of their gravity and the sample explodes .
Would you please advise?
Thanks
#!/usr/bin/python
from yade import pack,utils, qt, plot
pred = pack.inAlignedB
#create material
soil1 = CohFrictMat(
#color=(1,0,0) ----red color
#soil1 = FrictMat(
O.materials.
O.bodies.
O.materials.
wallmat = O.materials[-1]
45
spheres=
spheres=
spheres.
#O.bodies.
#
#
O.engines=[
# this engine will be called after 20000 steps, only once
]
######
#create a box:
#id_box = O.bodies.
#create assembly of spheres:
#sp=pack.
#sp.makeCloud(
#O.bodies.
#print len(sp),' particles generated.'
print 'Roundness coefficient without clumps is: ',O.bodies.
#### show how to use makeClumpTempla
#dyad:
#relRadList1 = [.0002,.0002]
#relPosList1 = [[.0003,
#peanut:
relRadList2 = [.0002,
relPosList2 = [[0.0003,
#stick:
#relRadList3 = [1,1,1,1,1]
#relPosList3 = [[0,1,0]
templates= []
#templates.
templates.
#templates.
#### show how to use replaceByClumps():
#replace by 50% dyads, 30% peanuts and 10% sticks:
#O.bodies.
O.bodies.
#### show how to use getRoundness():
#create a list of all standalone spheres:
standaloneList = []
for b in O.bodies:
if b.isStandalone:
standaloneLis
print 'Roundness coefficient for spheres and clumps is: ',O.bodies.
print 'Roundness coefficient just for clumps is: ',O.bodies.
#sp.toSimulation()
print 'Number of elements: ', len(O.bodies)
print 'Box Volume: '
print 'Clumprepose,
O.trackEnergy=True
# set timestep to a fraction of the critical timestep
# the fraction is very small, so that the simulation is not too fast
# and the motion can be observed
O.dt=1*
#makeVideo(
# save the simulation, so that it can be reloaded later, for experimentation
#O.saveTmp()0
#checker.
def checkUnbalanced():
if unbalancedForce
print(
O.pause()
plot.
plot.
#plot.saveDataT
# plot.saveGnuplo
# collect history of data which will be plotted
def addPlotData():
# each item is given a names, by which it can be the unsed in plot.plots
# the **O.energy converts dictionary-like O.energy to plot.addData arguments
plot.
#O.save(
#while 1:
#O.run(100,True)
#if unbalancedForce
#break
plot.plots=
plot.plot()
O.saveTmp()
#plot.saveDataT
from yade import qt
qt.View()
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Seti for more information if necessary.