yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #09791
Re: [Question #251161]: Importing spheres from another simulation
Question #251161 on Yade changed:
https://answers.launchpad.net/yade/+question/251161
Status: Open => Answered
Jérôme Duriez proposed the following answer:
Hello,
Saving will save the whole simulation, e.g. also the interactions that
you apparently do not need. So it would be probably a waste of
time/memory.
Maybe ymport.textExt() [1] and export.textExt() [2] could help you.
Basically what you need is to do the same as export-ymport.text()[3],
plus a save-reload in velocities (in a text file). Giving a look to the
source code of these functions in trunk/py/export-ymport.py [4] will
help you.
Jérôme
[1] : https://www.yade-dem.org/doc/yade.ymport.html#yade.ymport.textExt
[2] :https://www.yade-dem.org/doc/yade.export.html#yade.export.textExt
[3] : https://www.yade-dem.org/doc/yade.export.html#yade.export.text
[4] e.g. https://github.com/yade/trunk/blob/master/py/ymport.py#L13 and following lines for ymport.textExt()
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.