Example problem, or to create a function ?
Hi,
I'm a beginner with Yade Software, I have Ubuntu 10.10 and Yade bzr2811.
I try to run the example Gravity Deposition of the tutorial but I have some problems.
The script is:
"from yade import pack, plot
O.bodies.
sp=pack.
sp.makeCloud(
sp.toSimulation()
O.engines=[
ForceResett
InsertionSo
Interaction
),
GravityEngi
NewtonInteg
PyRunner(
PyRunner(
]
O.dt=.5*
O.trackEnergy=True
def checkUnbalanced():
if utils.unbalance
O.pause()
plot.saveDataTx
def addPlotData():
plot.addData(
plot.plots=
plot.plot()
O.saveTmp()"
When I try to run it's written:
"Yade [18]: -------
NameError Traceback (most recent call last)
/home/arthur/
----> 1
2
3
4
5
NameError: name 'checkUnbalanced' is not defined
NameError: name 'addPlotData' is not defined
-------
NameError Traceback (most recent call last)
/home/arthur/
----> 1
2
3
4
5 "
So my question is what is not good with the code ? And why to define the functions checkUnbalanced and addPlotData after the O.engines, why not before O.engines ?
How do I run a plot; 'cause when I write
"Yade [21]: import yade.plot; yade.plot.plot();
-------
IndexError Traceback (most recent call last)
/home/arthur/
----> 1
2
3
4
5
/home/arthur/
586 global currLineRefs
587 figs=set(
--> 588 if not hasattr(
589 import warnings
590 warnings.
IndexError: list index out of range" ?
Thanks !
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: