Not able to understand the error
Hi,
I am simulating a uniaxial compression of a concrete cylinder in yade. I am Using the uniax.py reference code from the github and I am editing that as per my problem. I have edited the code to use the JCFpm model for the cohesion. I am copying the code and the error i am getting in the following.
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.
#matplotlib.
# default parameters or from table
readParamsFromT
young=24e9,
poisson=.2,
sigmaT=3.5e6,
frictionAngle=
epsCrackOnset=
relDuctility=30,
intRadius=1.5,
dtSafety=.8,
damping=0.4,
strainRateTens
strainRateComp
setSpeeds=True,
# 1=tension, 2=compression (ANDed; 3=both)
doModes=2,
specimenLength
sphereRadius=
# isotropic confinement (should be negative)
isoPrestress=0,
)
from yade.params.table import *
from yade import pack, plot
#######
rate =-0.01 #Deformation rate
iterMax = 10000 #Maximum number of iterations
saveVTK = 2000 #Opt files for paraview
if 'description' in O.tags.keys(): O.tags[
rad = 5
# make geom; the dimensions are hard-coded here; could be in param table if desired
# z-oriented hyperboloid, length 20cm, diameter 10cm, skirt 8cm
# using spheres 7mm of diameter
#######
concreteId=
sps=SpherePack()
sp=pack.
#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_
[Ip2_
[Law2_
),
NewtonIntegrat
#CpmStateUpdat
UniaxialStrain
GlobalStiffnes
PyRunner(
PyRunner(
VTKRecorder(
]
#O.miscParams=
# plot stresses in ¼, ½ and ¾ if desired as well; too crowded in the graph that includes confinement, though
#Recorder and Plot
def recorder():
yade.
plot.
#######
# interaction range ((cf. A DEM model for soft and hard rock, Scholtes & Donze, JMPS 2013))
O.step();
#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(
strainer.dead=0
#O.run()
initTest()
waitIfBatch()
ERROR:
File "/apps/
execfile(
File "uniax_
concreteId=
AttributeError: No such attribute: epsCrackOnset.
I am fairly a new user to this, can anyone help me understand and suggest the solution for this?
My second question is,
Is JCFpm be the appropriate method for modeling the concrete? I planned to use the Bonded particle model (Cundal, 2004) for the cohesion but here on this portal, Luc Scholtes suggested that JCFpm is actually better than BPM. Can anyone suggest me on the which method would be appropriate?
Thanks,
Anay
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anay Joshi
- Solved:
- Last query:
- Last reply: