← Back to team overview

yade-users team mailing list archive

Re: [Question #300592]: problems when I run examples

 

Question #300592 on Yade changed:
https://answers.launchpad.net/yade/+question/300592

    Status: Answered => Open

jun wang is still having a problem:
Thank you all for the answers. They help a lot.
I am trying to run one example as following:

idParticulate=O.materials.append(CohFrictMat(young=30e9,poisson=0.2,alphaKr=3,alphaKtw=3,density=2700,frictionAngle=0.6))

pred=pack.inCylinder((0,0,0),(0,0,3),0.5)

TS=pack.randomDensePack(pred,radius=0.05,material=idParticulate)
O.bodies.append(TS)

relRadList1=[1,1]
relPosList1=[[1,0,0],[-1,0,0]]
templates=[]
templates.append(clumpTemplate
(relRadii=relRadList1,relPositions=relPosList1))

O.bodies.replaceByClumps(templates,[.5])

bb=uniaxialTestFeatures()
negIds,posIds,axis,crossSectionArea=bb['negIds'],bb['posIds'],bb['axis'],bb['area']

O.dt=0.8*PWaveTimeStep()

O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=1.5),],verletDist=.05*3.5e-3),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom6D()],
[Ip2_CohFrictMat_CohFrictMat_CohFrictPhys()],
[Law2_ScGeom6D_CohFrictPhys_CohesionMoment()],
),
NewtonIntegrator(damping=0.4),
UniaxialStrainer(strainRate=-0.5,axis=axis,asymmetry=0,posIds=posIds,negIds=negIds,crossSectionArea=crossSectionArea,blockDisplacements=False,blockRotations=False,setSpeeds=True,label='strainer'),
PyRunner(virtPeriod=1e-6/0.5,realPeriod=1,command='addPlotData()',label='plotDataCollector',initRun=True)
]

plot.plots={'eps':('sigma',)}
plot.plot()




It works, but I can't get the plot. It show as below:

Yade [14]: plot.plots={'eps':('sigma',)}
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/usr/bin/yadedaily in <module>()
----> 1 plot.plots={'eps':('sigma',)}

NameError: name 'plot' is not defined

Yade [15]: plot.plot()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/usr/bin/yadedaily in <module>()
----> 1 plot.plot()

NameError: name 'plot' is not defined


Could you help me figure it out?
Thanks again.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.