Dose 'utils' object has the attribute 'saveDataTxt'
Hi, I am learning Yade-tutorial "setting up a simulation". I was trying to run the "Gravity deposition" script in batch mode according to the Yade-tutorial. However, an error occurred in this line of code " utils.saveDataT
The error message is as follows:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "02-gravity-
utils.
AttributeError: 'module' object has no attribute 'saveDataTxt'
It seems that in my simulation, utils' object has no attribute 'saveDataTxt', while in Yade-tutorial "setting up a simulation", the expression "utils.
could you please help me with this problem.
Thank you very much!
My operating system is Ubuntu 16.04.
My codes are as follows:
#######
# gravity deposition in box, showing how to plot and save history of data,
# and how to control the simulation while it is running by calling
# python functions from within the simulation loop
from yade import pack, plot
utils.readParam
from yade.params import table
O.bodies.
sp=pack.
sp.makeCloud(
sp.toSimulation()
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
PyRunner(
PyRunner(
]
O.dt=.5*
O.trackEnergy=True
def checkUnbalanced():
if utils.unbalance
utils.
import sys
sys.exit(0)
def addPlotData():
plot.addData(
plot.plots=
plot.plot()
O.run()
utils.waitIfBatch()
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: