yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08993
Re: [Question #244203]: How to read data from external file
Question #244203 on Yade changed:
https://answers.launchpad.net/yade/+question/244203
Bruno Chareyre proposed the following answer:
It sounds like the use of text files would overkill.
This should be enough:
for b in O.bodies:
#define your force for body b
O.forces.addF(b.id,force,permanent=True)
O.run(100000,1)
for b in O.bodies:
#define new forces
O.forces.addF(b.id,force,permanent=True)
etc.
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.