globUpdate in PeriTriaxController

Asked by jamespaul

Hi,

In PeriTriaxController,one parameter is globUpdate,

globUpdate(=5)
How often to recompute average stress, stiffness and unbalaced force.

The default is 5. Does that mean it analyze stress, stiffness and unbalaced force every 5 steps?

James

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1
Revision history for this message
jamespaul (jamespauljames) said :
#2

Thanks Jérôme,

>bool doUpdate((scene->iter%globUpdate)==0);
 if(doUpdate || min(stiff[0],min(stiff[1],stiff[2])) <=0 || dynCell){ strainStressStiffUpdate(); }

For this code, my understanding is that the smaller the doUpdate, the more accurate it is.If I take 1, it's going to make a judgment at every step.

Is my understanding correct?

James

Revision history for this message
Best Jérôme Duriez (jduriez) said :
#3

Yes, it is.

Revision history for this message
jamespaul (jamespauljames) said :
#4

Thanks Jérôme Duriez, that solved my question.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#5

>Does that mean it analyze stress, stiffness and unbalaced force every 5 steps?

No.
Stress is updated at every step anyway as soon as dynCell=True (your case).

Bruno