yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #16728
Re: [Question #664137]: number of iterations and human time
Question #664137 on Yade changed:
https://answers.launchpad.net/yade/+question/664137
Status: Open => Answered
Jérôme Duriez proposed the following answer:
Hi,
1. If your simulation runs with a fixed time step (= O.dt [1]), it's
easy to compute the number N of DEM timesteps corresponding to 2 hours,
then ask O.run(N,wait=True) [2]
2. If you have no idea about the time step (which "should" not appear, maybe), you may still check O.time [3] and do something like
while O.time < 2hours: # obviously you have to use numbers in correct units (seconds ?), not "2 hours"
O.run(1000,wait = True)
Jérôme
[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Omega.dt
[2] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Omega.run
{3] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Omega.time
--
You received this question notification because your team yade-users is
an answer contact for Yade.