mixed up left/right stretch tensor

This commit is contained in:
Martin Diehl 2019-12-23 07:16:50 +01:00
parent 3c4c364107
commit 60580cc45a
1 changed files with 2 additions and 2 deletions

View File

@ -58,10 +58,10 @@ def strain_tensor(F,t,m):
"""
F_ = F.reshape((1,3,3)) if F.shape == (3,3) else F
if t == 'U':
if t == 'V':
B = np.matmul(F_,transpose(F_))
w,n = np.linalg.eigh(B)
elif t == 'V':
elif t == 'U':
C = np.matmul(transpose(F_),F_)
w,n = np.linalg.eigh(C)