mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
281 stars 185 forks source link

Maybe the latest version of MTEX(5.8.1) has an error in the calculation of the Green strain tensor #1646

Closed smallrain1996 closed 1 year ago

smallrain1996 commented 1 year ago

The test code is as follows:

F = deformationGradientTensor([5,3,3;2,6,3;2,2,4]);
E = GreenStrain(F)

The calculation is seemingly wrong:

E = strainTensor (show methods, plot)
  type: Lagrange 
  rank: 2 (3 x 3)

   21 18.5   14
 18.5   24   14
   14   14 11.5

image

ralfHielscher commented 1 year ago

Hi smallGrain,

thank you for reporting this bug. The guess you agree that the fix Rüdiger posted solves the problem.

Ralf.