mixed up left/right stretch tensor
This commit is contained in:
parent
3c4c364107
commit
60580cc45a
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue