no file output by running yade -n *.py
Dear all,
I run the follow code '02.py' by using the command 'yade -n 02.py' or 'yade -x 02.py', but there is no file output 'bbb.txt.bz2'.
In contrast, if I run 'yade 02.py' and go into the graphical interface, I click the start bottom and run the simulation, and then I have the file output 'bbb.txt.bz2'.
Is there any way to generate file output by 'yade -n' or 'yade -x' ? Or is there problem in my 02.py file ?
Many thanks and best regards.
Man Yick
02.py reads as"
# gravity deposition in box
from yade import pack, plot
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 unbalancedForce
O.pause()
plot.
def addPlotData():
plot.addData(
plot.plots=
plot.plot()
O.saveTmp()
O.run
waitIfBatch()
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Man Yick for more information if necessary.