2D simulation with clump using PeriTriaxController
Hello, everyone. Now I want to do 2D DEM simulation with clumps in periodic boundary condition. But some confusions exits. Why when I run the simulation, the interactions between the constituent balls in clumps are also active. And the PeriTriaxContro
The following are my codes.
from yade import pack, qt, plot
import time
import numpy as np
#######
### Read external file information ###
#######
filename1=
filename2=
filename3=
filename4=
pbx=np.
pby=np.
pbr=np.
cmn=np.
cn=cmn.size-1
## create materials for initial consolidation
O.materials.
## process the external file information to get the clump configuration list
for ii in range(0,cn):
aa=
bb=
bodyList=[]
for jj in range(aa,bb):
O.bodies.
#######
### DEFINING VARIABLES AND BLOCK DEGREES ###
#######
ts = time.time()
pressure = -1e5
size=0.30
## setup the periodic boundary
O.periodic=True
O.cell.hSize = Matrix3(size,0,0, 0,size,0, 0,0,0.1)
for p in O.bodies:
print(len(
#######
### DEFINING ENGINES ###
#######
triax=PeriTriax
# specify target values and whether they are strains or stresses
goal=
# type of servo-control
dynCell=
# wait until the unbalanced force goes below this value
maxUnbalanced
# call this function when goal is reached and the packing is stable
doneHook=
)
newton=
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
triax,
newton,
]
O.dt=.5*
def addPlotData():
pp = utils.porosity() #this is the porosity of the cell.
ee = pp / (1-pp) #this is the void ratio of the 3D cell.
a = [i for i in O.bodies if isinstance(i.shape, Clump) and i.intrs()==[]]
plot.
s11=-
s22=-
s33=-
)
# define what to plot//since they have the same x (i), the latter i should have a space in it 'i '
plot.plots=
' i ':('void',),'i ':('floatPt',),
#each 'i' should have different number or location of space. Or the latter will overwrite the former one.
}
# show the plot
plot.plot()
yade.qt.
def consolidationFi
# set the current cell configuration to be the reference one
O.cell.
print 'consolidationF
O.pause()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- nie jiayan
- Solved:
- Last query:
- Last reply: