spheres pass facet
Hi all,
I would like to simulate the compaction of granular material. I am using yadedaily and my code is shown below. I have 2 questions:
1- I see that smaller spheres escape from the compaction mold during the compaction. How to prevent any sphere from moving out of the mold (i.e. facets)?
2- I want to simulate packing at high compaction force. In my current code, after around 6000 iteration, the packing "explode" and spheres get out of the modl. Why this happens? Is it a numerical issue or this is what suppose to happen based on the Cundall-Strack contact model?
I appreciate your help and comments.
Thank you,
Othman
-------
from yade import pack, export, ymport, plot
from pprint import pprint
import numpy as np
import matplotlib.pyplot as plt
import time
tic=time.time()
O.materials.
SG=2.34
##cylinder dimensions
radiuscyl=
heightcyl=610e-6
##center of cylinder
cx=0
cy=0
cz=0
##Initial cube dimensions ###
mnx=cx-
mny=cy-
mnz=0
mxx=cx+
mxy=cy+
mxz=heightcyl*1.1
#######
sp=pack.
##### sizes and distribution are from gradation curve of basalt aggregates #######
sizes=1e-
passing=
sp.makeCloud(
#### cylinder extraction
pred=pack.
spFilter=
print (len (spFilter))
spFilter.
print ("runtime = ", time.time()-tic)
mass=utils.
#######
facets=
cylinder=
yade.qt.View()
##creating disks
d1=geom.
d2=geom.
disk1IDs= O.bodies.append(d1)
disk2IDs= O.bodies.append(d2)
for i in disk1IDs:
body= O.bodies[i]
body.state.vel = (0,0,-3.5)
for n in disk2IDs:
body= O.bodies[n]
body.state.vel = (0,0,0)
#######
O.dt=.5*
O.engines=[
ForceResetter(),
InsertionSortC
Bo1_Sphere_
Bo1_Facet_Aabb()
]),
InteractionLoop(
[
Ig2_
Ig2_
],
[
Ip2_
Ip2_
],
[
Law2_
],
),
NewtonIntegrat
# VTKRecorder(
PyRunner(
]
O.run()
stress=[]
Thickness=[]
Packing_d=[]
def force():
f1= [O.forces.f(i)[2] for i in disk1IDs]
f=np.mean(f1)
s=f/(pi*
stress.append(s)
thickness=
packing_
print("stress, thickness, packing density ",s,thickness,
Thickness.
Packing_
plot.addData(
plot.plots=
plot.plot()
#np.savetxt(
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Othman Sh
- Solved:
- Last query:
- Last reply: