Re: [Yade-users] [Question #580403]: Displacement Recorder
Question #580403 on Yade changed: https://answers.launchpad.net/yade/+question/580403 Status: Answered => Solved Felipe confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- 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
Re: [Yade-users] [Question #580403]: Displacement Recorder
Question #580403 on Yade changed: https://answers.launchpad.net/yade/+question/580403 Status: Open => Answered Jan Stránský proposed the following answer: Hi Felipe, you can use PyRunner and plot module: ### def plotAddData(): plot.addData( # [1] dspl1 = O.bodies[...].state.displ(), # [2] dspl2 = O.bodies[...].state.displ(), ) O.engines = [ ... PyRunner(iterPeriod=..., command="plotAddData()"), # [3] ] # at the end of simulation (or use another PyRunner to save it periodically) plot.saveDataTxt(fileName) # [4] ### cheers Jan [1] https://yade-dem.org/doc/yade.plot.html#yade.plot.addData [2] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.State.displ [3] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.PyRunner [4] https://yade-dem.org/doc/yade.plot.html#yade.plot.saveDataTxt -- 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
[Yade-users] [Question #580403]: Displacement Recorder
New question #580403 on Yade: https://answers.launchpad.net/yade/+question/580403 Hello guys, I am applying force on the surface and also moving one box left to right. In this simulation, i am recording the force value due to command ForceRecorder(ids=p1,file='Normal_force.dat',iterPeriod=100). Moreover, I also would like to recorder the displacement both of bodies (surface and box). Is there any way to recorder the displacement and also export how one file .dat or other extension similar? Very thanks for any helping me. cheers, felipe -- 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