save in txt.file a packing of spheres
hi, i m new in yade. I have to describe a land distribution. I m using all the command of gravity deposition. Now, what i want to do is to save in a txt file the final position of the sphere packings, so i will open it in a new file to change material , properrties and let collide with another body. How can i do ? i try to use export.textExt but is not working. How can i save then the positions and radii of all the spheres? this is my code, thanks for the help:
#######
O.bodies.
# create empty sphere packing
sp=pack.
# generate randomly spheres with uniform radius distribution
sp.makeCloud(
O.bodies.
O.engines=
NewtonIntegrato
),
# call the checkUnbalanced function (defined below) every 2 seconds
PyRunner(
# call the addPlotData function every 200 steps
PyRunner(
]
O.dt=.5*
O.trackEnergy=True
# if the unbalanced forces goes below .05, the packing
# is considered stabilized, therefore we stop collected
# data history and stop
def checkUnbalanced():
if unbalancedForce
O.pause()
plot.
export.
# collect history of data which will be plotted
def addPlotData():
plot.plots=
plot.plot()
O.saveTmp()
export.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luc Scholtès
- Solved:
- Last query:
- Last reply: