O.load Error
Hi,
Thank you Jan, you have helped me a lot.I successfully loaded the simulation according to the method you taught.
However, an error will be reported at the beginning of loading:
NameError Traceback (most recent call last)
/usr/bin/yade in <module>()
NameError: name 'triaxFinished' is not defined
In my first program, even though it had stopped 'O.pause()' , why did this function appear?I want to correct this error.
Thanks,
James
#######
The first script:
# encoding: utf-8
from yade import pack, qt, plot
sigmaIso=-25000
O.periodic=True
frictionAngle1= 2.862405226
frictionAngle2= 14.03624347
sphere=
multiple=.01
length=1.5
psdSizes=
psdCumm=
sp=pack.
sp.makeCloud(
n=sp.toSimulation()
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
PeriTriaxContr
goal=
dynCell=
maxUnbalanced
doneHook=
),
NewtonIntegrat
PyRunner(
]
O.dt=.5*
def changeMaterial():
O.cell.
for i in n:
triax.
def triaxFinished():
print 'Finished'
O.pause()
qt.Controller()
O.run()
O.wait()
O.save(
O.saveTmp()
#############
My second script:
#!/usr/bin/python
from yade import pack, qt, plot
O.load(
#O.run()
O.dt=1e-9
O.engines += [PeriTriaxContr
goal=(
maxUnbalanced=
O.engines += [PyRunner(
def functionToRunWh
print 'Finished'
O.pause()
def addPlotData2():
plot.addData(
sxx=-
exx=-
q=-triax.
p=-(triax.
)
plot.plots=
plot.plot()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: