globUpdate in PeriTriaxController

Asked by jamespaul on 2019-02-10

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:
2019-02-11
Last query:
2019-02-11
Last reply:
2019-02-11
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

Best Jérôme Duriez (jduriez) said : #3

Yes, it is.

jamespaul (jamespauljames) said : #4

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

>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