Generation of sphere packing using CohFrictMat model
Hello all,
I want to make a simulation of slope using FEMxDEM code. Dr. Guo Ning proposed a good example for the generation of 2D friction packing. I also see Ning also using the FEMxDEM method for cohesive materials. I want to change the prepare.py and set cohesion and rolling friction using CohFrictMat model. The problem is divided into two sstep, firstly a sphere packing without friction and cohesion is compressed to the hydrostatic stress. Then I want to add rolling friction and cohesion to the model. But it does not work, I really appriciate if anyone can give me some advice. Tho code is as following:
from yade import pack
#O.materials.
materialId=
sp = pack.SpherePack()
size = .24
sp.makeCloud(
sp.toSimulation
O.cell.hSize = Matrix3(size,0,0, 0,size,0, 0,0,.1)
print len(O.bodies)
for p in O.bodies:
p.state.
p.state.mass = 2650 * 0.1 * pi * p.shape.radius**2 # 0.1 = thickness of cylindrical particle
inertia = 0.5 * p.state.mass * p.shape.radius**2
p.state.inertia = (.5*inertia,
O.dt = utils.PWaveTime
print O.dt
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
PeriTriaxContr
dynCell=True,
goal=
stressMask=3,
relStressTol=
maxUnbalanced
maxStrainRate
doneHook=
label='biax'
),
GlobalStiffnes
NewtonIntegrat
]
def term():
O.engines = O.engines[
print getStress()
print O.cell.hSize
setContactFr
O.cell.
O.cell.
for p in O.bodies:
p.state.vel = Vector3.Zero
p.
p.
p.
O.save(
O.pause()
# servo the stress to the hydrostress state
O.run();O.wait()
#This will reload the autosaved compacted sample
O.reload()
# I want to change the model with rolling friction and Cohesion
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
NewtonIntegrat
]
# Add rolling friction and Cohesion to the model
O.engines[
O.engines[
O.step(
Thanks in advance!!!
The error information is as follows:
Traceback (most recent call last):
File "/usr/bin/
execfile(
File "prepareRVECoh.py", line 75, in <module>
O.engines[
IndexError: list index out of range
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for showing help), F10 both, F9 generator, F8 plot. ]]
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Meng Qing Xiang
- Solved:
- Last query:
- Last reply: