Perform UCS-TS test
Hi to all,
currently i am trying to perform simulation of UCS and TS as in the paper <<A DEM model for soft and hard rocks: Role of grain interlocking on strength >> of Luc Scholtes and Frédéric-Victor Donzé.
I took the file from trunk/examples/
Also i took the microparameters from table 2 in the above paper and put it in my script.
Some Remarks i saw in my simulation:
As i put intRadius=1 as in table 2, my Coordination number is 3.37 byt in paper is 6.1
Number of elements: 17412
And Fc = 1.36e06 .
Am i doing something wrong?
Please have a look in my code :
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import division
from yade import plot,pack,timing
import time, sys, os, copy
#import matplotlib
#matplotlib.
# default parameters or from table
readParamsFromT
density=2640,
young=230e9,
poisson=2.5,
frictionAngle=25,
tensileStrengt
cohesion=220e6, #10*tensileStre
sphereRadius=
rRelFuzz=0.34,
intRadius=1,
dtSafety=.8,
damping=0.6,
strainRateTens
strainRateComp
setSpeeds=True,
# 1=tension, 2=compression (ANDed; 3=both)
doModes=2,
# isotropic confinement (should be negative)
isoPrestress=0,
)
from yade.params.table import *
if 'description' in O.tags.keys(): O.tags[
sample = O.materials.
sps=SpherePack()
sp=pack.
sp.toSimulation
bb=uniaxialTest
negIds,
O.dt=dtSafety*
print 'Timestep',O.dt
mm,mx=[pt[axis] for pt in aabbExtrema()]
coord_25,
area_25,
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
),
GlobalStiff
UniaxialStr
NewtonInteg
PyRunner(
PyRunner(
]
plot.plots=
O.saveTmp(
O.timingEnabled
global mode
mode='tension' if doModes & 1 else 'compression'
def initTest():
global mode
print "init"
if O.iter>0:
O.wait();
O.loadTmp(
print "Reversing plot data"; plot.reverseData()
else: plot.plot(
strainer.
try:
from yade import qt
renderer=
renderer.
except ImportError: pass
print "init done, will now run."
O.step(); # to create initial contacts
# now reset the interaction radius and go ahead
ss2sc.
is2aabb.
O.run()
def stopIfDamaged():
global mode
if O.iter<2 or not plot.data.
sigma,
extremum=
minMaxRatio=0.5 if mode=='tension' else 0.5
if extremum==0: return
import sys; sys.stdout.flush()
if abs(sigma[
if mode=='tension' and doModes & 2: # only if compression is enabled
mode=
O.save(
print "Saved /tmp/uniax-
print "Damaged, switching to compression... "; O.pause()
# important! initTest must be launched in a separate thread;
# otherwise O.load would wait for the iteration to finish,
# but it would wait for initTest to return and deadlock would result
import thread; thread.
return
else:
print "Damaged, stopping."
ft,fc=
print 'Strengths fc=%g, ft=%g, |fc/ft|
title=
print 'gnuplot'
print 'Bye.'
O.pause()
#sys.exit(0) # results in some threading exception
def addPlotData():
yade.plot.
'sigma.
'sigma.
'sigma.
})
plot.plot(
#O.run()
initTest()
Thank You!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luc Scholtès
- Solved:
- Last query:
- Last reply: