bug with periodic cell of the order of the particles diameter
Hi all,
There seems to be a bug in yade when simulating problems with a periodic cell length of the order of the diameter (typically ~2d): some particles are completely overlapping each other, and behave as a unique particle.
From what I tested, the bug is independent from:
- the particles material properties (stiffness, viscous damping, friction angle, density),
- the contact law (can be also pbserved with Law2_ScGeom_
- the time step
- the diameter of the particles
- the number of particle layers
I tested on yadedaily 1.10.0-
Below the message, you will find a simplified script that reproduce the problem. It is just a gravity deposition with or without lateral walls (lateralWalls = 1 or 0), prescribing the width and length of the periodic cell, and the number of particle layers that you want to obtain.
The bug arises when the length or width of the periodic cell is inferior to about 2.2d. Adding lateral walls (lateralWalls = 1 in the script) solves the problem. For periodic cell length/width of 5d or upper, I never had any problems.
Are you able to reproduce the bug ? If yes, do you have any idea of why that is happening ?
Thanks in advance !
Raphael
from yade import pack, plot
import math
##
## Main parameters of the simulation
##
diameterPart = 6e-3 #Diameter of the particles, in meter
densPart = 2500 #Density of the particles, kg/m3
lengthCell = 2 #Streamwise length of the periodic cell, in diameter
widthCell = 10. #Spanwise length of the periodic cell, in diameter
Nlayer = 5 #nb of layers of particle, in diameter
#Option to put lateral walls and break the biperiodicity
lateralWalls = 0
#######
## PARAMETERS DECLARATION##
#######
#Geometrical configuration, define useful quantities
height = 10*Nlayer*
length = lengthCell*
width = widthCell*
gravityVector = Vector3(
groundPosition = height/4.0
#Particles contact law parameters
maxPressure = densPart*
normalStiffness = maxPressure*
youngMod = normalStiffness
#Material
#O.materials.
O.materials.
#Definition of the semi-periodic cell
O.periodic = True
O.cell.
#To be compatible with lateral walls
leftLimitY = 0.0
rightLimitY = width
centerLimitY = width/2.0
#If lateralWalls, add the walls and increase the cell size to avoid particle touching the walls to appear on the other side
if lateralWalls:
#Warn the user
print '\nlateralWalls option activated: mono-periodic boundary condition only !\n'
#Increase the cell size
O.cell.
#Modify accordingly the position of the center of the cell and the wall right and left position
leftLimitY = diameterPart
rightLimitY = width+diameterPart
centerLimitY = diameterPart + width/2.0
#Define the wall and add to the simulation
sidePlaneL = box(center= (length/
sidePlaneR = box(center= (length/
O.bodies.
# Ground reference and Wall on the side
lowPlane = box(center= (length/
O.bodies.
#Create a loose cloud of particle inside the cell
partCloud = pack.SpherePack()
partVolume = pi/6.*pow(
partNumber = int(Nlayer*
#Define the deposition height considering that the packing realised by make cloud is 0.2
depositionHeight = Nlayer*
#Create a cloud of partNumber particles PHF change to 0.1
partCloud.
#Send this packing to simulation with material Mat
partCloud.
#Evaluate the deposition time considering the free-fall time of the highest particle to the ground (overestimation)
depoTime = sqrt(deposition
#######
#### SIMULATION LOOP#####
#######
O.engines = [
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
# [Ig2_Sphere_
# [Ip2_FrictMat_
# [Law2_ScGeom_
,label = 'interactionLoop'),
PyRunner(
GlobalStiffnes
NewtonIntegrat
]
#save the initial configuration to be able to recharge the simulation starting configuration easily
O.saveTmp()
#run
#O.run()
def gravityDepositi
if O.time<lim : return
else:
packing.
O.pause()
return
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: