How to glue spheres to the box?
Dear all,
I am trying to simulate direct shear experiments.
In my simulation, the periodic boundary condition is applied and in addition, the top and bottom are confined by a box.
To simulate a rough boundary surface similar to the experiment conditions, I tried to glue some spheres on the box.
I thought "clump" spheres and boxes together could be a feasible way. However, it seems not to work (or maybe I did it wrong).
It turns out the spheres penetrate into the box during isotropic compression.
I also tried to glue them together by playing with cohesive, but the contact model I use is a non-cohesive Hertz contact model.
I am wondering if there are other ways I can glue the spheres and box together and therefore, the glued material can also act as confinement. Thanks!
Hereby I attach the simplified code:
#######
from yade import pack
import math
sp=pack.
O.periodic=True
RADIUS=0.025
length=0.75
height=0.375
width=0.375
thickness=RADIUS
PI=1.e5
spFRIC=26.6
O.cell.
O.materials.
upBoundary=[]
lowBoundary=[]
### Creat top and bottom box
upBoundary.
lowBoundary.
### Roughness setting
wallLength=15
wallWidth=10
roughnessPara=2
### top spheres
for c in range(1, wallLength):
for d in range(0, wallWidth):
### low spheres
for a in range(1, wallLength):
for b in range(0, wallWidth):
### Clump spheres and box together
idClump1=
idClump2=
sp.makeCloud(
sphere_id = O.bodies.
effCellVol=
volRatio=
O.engines=[
ForceResetter()
,InsertionSort
,InteractionLoop(
[Ig2_
[Ip2_
[Law2_
)
,GlobalStiffne
,PeriTriaxCont
,NewtonIntegra
]
def triaxDone():
global phase
vol=h*
contactStress=
vol_s=
Rmin=1e6
for o in O.bodies:
if isinstance(
nbSph+=1
Rmean+
if o.shape.
if o.shape.
vol_s += 4.*pi/3.
Rmean=Rmean/nbSph
O.pause()
#######
Cheers,
Chien-Cheng
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 Chien-Cheng Hung for more information if necessary.