Hi Alain,
sorry it took as so long to get back to you. We are having issues with notifications from the website. This problem has been fixed in the developer branch, but not yet in the public branch. You can replace
deviatoricstress.effectivevalue=1/sqrt(2)*sqrt(stress.xx.^2+stress.yy.^2+2*stress.xy.^2);
by
deviatoricstress.effectivevalue=1/sqrt(2)*sqrt(deviatoricstress.xx.^2+deviatoricstress.yy.^2+2*deviatoricstress.xy.^2);
I hope this helps
Best,
Mathieu