← Back to team overview

yade-users team mailing list archive

Re: [Question #258671]: some data lost when saving simulation with O.save()?

 

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

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hi,

That's because TriaxialStressController.strain values are computed every
time step (modulo computeStressStrainInterval attribute), but not saved
during not a save (this strain "attribute" was not defined as to be
saved).

Hence, the value can not be get back after a load, and it is 0, which is
the "default" value.

If you want to read strain values after a save/load cycle, you have to
run few iterations after your load, so that the value is again computed.
Maybe one is enough, or computeStressStrainInterval's value maximum.
This should not affect so much your measure...

Note, if this is what you want in the end, that you can "reset" strain values at the end of compaction like this:
tsc.height0 = tsc.height
tsc.width0 = tsc.width
tsc.depth0 = tsc.depth

This affects only post-processing computations of strain.


Jerome

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.