← Back to team overview

yade-users team mailing list archive

Re: [Question #691722]: About periodic triaxial test example in the yade documentation

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> 1...

because makeCloud is independent of the simulation.
Even  if the simulation is periodic, you can create (and add) non-periodic cloud.
Even  if the simulation is not periodic, you can create (and add) periodic cloud.

> 2.Why set the "triax.maxUnbalanced=10" in line 102 behind the
"triax.doneHook='triaxFinished()'" in line 100?

Why not? :-)
maybe the note below could be the answer?

> The "triax.doneHook='triaxFinished()'" has already called the
'triaxFinished()' function,

NO! you just say to triax, that when it is finished, it shall call triaxFinished().
It is not called by this line (it is here just a string variable after all)

> 3 ...

Again, have a try before asking :-)

O.energy.keys() is a list of strings. You can sum them, joining them in one string.
What O.energy.total() does is sum(O.energy.energies())
Note that it might not be actual total energy, just the sum of the stored values.

cheers
Jan

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