yade-users team mailing list archive
Mailing list archive
Re: [Question #678682]: export final position of spheres from 'Bounching sphere'
Question #678682 on Yade changed:
Status: Open => Answered
Jan Stránský proposed the following answer:
> I am very new to yade.
> After exporting, i see always the initial positions of spheres are
Please, provide a working code. I have tried your and got SyntaxError at
textExt. If I correct it by adding comma after NewtonIntegrator, I get
"NameError: name 'textExt' is not defined".
> I want to extract the final positions of the sphere after they come in rest.
> Is there any way it is possible to export the final positions of sphere as text file?
of course it is possible :-) see below. Personally I see a bigger
problem in the definition of "the rest".
> I have tried other options in export module but was not successful.
please always try to be specific enough, i.e.:
- what other options have you tried (other than what? see my first comment)
- what "was not successful" mean? Some error? Again initial position saved? ...?
You can try e.g. (your code without comments and the problematic part in O.engines):
from yade import export, plot
# this is new, running and exporting part
O.run(5000,True) # instead of 5000 you can put different value
export.textExt('lets_see.txt',format='x_y_z_r',comment='Final state of the spheres')
You received this question notification because your team yade-users is
an answer contact for Yade.