# globUpdate in PeriTriaxController

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:
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
2019-02-11
Last query:
2019-02-11
2019-02-11
 Jérôme Duriez (jduriez) said on 2019-02-11: #1
 jamespaul (jamespauljames) said on 2019-02-11: #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

 Jérôme Duriez (jduriez) said on 2019-02-11: #3

Yes, it is.

 jamespaul (jamespauljames) said on 2019-02-11: #4

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

 Bruno Chareyre (bruno-chareyre) said on 2019-02-11: #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

 iboukhoulef fouadd (mina5000) said on 2019-02-11: #6

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? https://tgw.onl/digitalocean/ https://tgw.onl/siteground/ https://tgw.onl/ipage/