Question #706716 on Yade changed:
https://answers.launchpad.net/yade/+question/706716

    Status: Open => Answered

Jan Stránský proposed the following answer:
It depends on the use case. And also definitions like "from where" etc.
O.save saves the simulation to a specified file.
O.load loads simulation from specified file.

### script1.py
O.bodies.append(sphere((0,0,0),123))
O.save("/tmp/file1.yade")
###

copy /tmp/file1.yade to /tmp/file2.yade
you can use directly file1.yade, just that you can copy, move, ... the files 
freely

### script2.py
O.load("/tmp/file2.yade")
b = O.bodies[0]
print(b.shape.radius) # should print 123.0
###

Cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to