O.time difference between Yade 2018.02 and Getting started

Asked by Leonard

Hi,
I have a question about the O.time.
When I try the commands from Yade Introduction - - Getting Started - - Running simulation:
Yade [3]: TriaxialTest(numberOfGrains=200).load()
Yade [4]: len(O.bodies)
Out[4]: 206
Yade [5]: O.iter
Out[5]: 0
Yade [6]: O.time
Out[6]: 0.0
Yade [7]: O.dt=1e-4
Yade [8]: O.step()
Yade [9]: O.iter
Out[9]: 1
Yade [10]: O.time
Out[10]: 0.0001
As you can see the O.time is 0.0001. However, when I do this in my terminal, it is:
In [1]: TriaxialTest(numberOfGrains=200).load()

In [2]: len(O.bodies)
Out[2]: 206

In [3]: O.iter
Out[3]: 0

In [4]: O.time
Out[4]: 0.0

In [5]: O.dt=1e-4

In [6]: O.step()

In [7]: O.iter
Out[7]: 1

In [8]: O.time
Out[8]: 0.0005590747410451621
The O.time is not 0.0001.
My yade version is 2018.02b, I just wonder where this difference comes from. Is it from the yade Version?
Thanks in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
Last query:
Last reply:
Revision history for this message
Best Bruno Chareyre (bruno-chareyre) said :
#1

Hi, you need to turn "O.dynDt=False" else the timestep is determined automatically.
I will update the introduction to mention this.
Regards
Bruno

Revision history for this message
Leonard (z2521899293) said :
#2

 Hi Bruno,
Many thanks, it really works.
And follow this, I wonder when we carried out simulations such as the "Bouncing sphere example" (doc/sphinx/tutorial/01-bouncing-sphere.py), there is always:
"O.dt=.5e-4*PWaveTimeStep()"
so, do we need to add the ""O.dynDt=False" into the simulation script?
Regards

Revision history for this message
Leonard (z2521899293) said :
#3

Thanks Bruno Chareyre, that solved my question.