← Back to team overview

yade-users team mailing list archive

Re: [Question #692392]: i.geom.penetrationDepth = nan after load yade.gz file

 

Question #692392 on Yade changed:
https://answers.launchpad.net/yade/+question/692392

    Status: Open => Answered

Jan Stránský proposed the following answer:
These are limitations of the (explicit? not sure) discrete model, where
the values in one time step may differ in "actual" time

1) have a look at the O.interactionLoop. Ig2 (where penetrationDepth is computed) is before NewtonIntegrator (where the position are updated).
After one simulation step (one execution of O.interactionLoop engines) you have "old" penetrationDepth even the particle position are "new".

2) is very similar.
After script1, you already have "new" positons, from which penetrationDepth in script2 is computed, but if you just print penetrationDepth in script1, you are getting "old" values.

You would have to set O.dt=0 also for the last step in script1 to get
the same values in both script1 and script2

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.