why the data is 1 iter behind
Hello,
The data I recorded is one simulation step behind, which confused me .
Take the gravity depostion as an example.
Let the O.dt = 1e-5.
I want to record the postion of ball no.36 and save it in TXT at Virperiod = 9.5e-5.
I assume that the data in O.Iter = 10 should be recorded because 9 < 9.5 <10 .
However , actually the positon of the ball in O.iter = 11 is recorded in Txt although the txt is named by iter10.
I want to record the postion in Iter10 instead.
I really appreciate your help.
=======
from yade import pack, plot
O.bodies.
sp = pack.SpherePack()
sp.makeCloud((0, 0, 0), (1, 1, 1), rMean=.05, rRelFuzz=.5)
sp.toSimulation()
O.engines = [
),
]
def depth36():
depth_36 = O.bodies[
plot.
plot.
O.dt = 1e-5
O.saveTmp()
=======
Best.
Mikexue
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- mikexue
- Solved:
- Last query:
- Last reply: