From 60580cc45adb20dbf1284a3229213ba790ae5bac Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Mon, 23 Dec 2019 07:16:50 +0100 Subject: [PATCH] mixed up left/right stretch tensor --- python/damask/mechanics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/damask/mechanics.py b/python/damask/mechanics.py index 5503d7048..08f5ca125 100644 --- a/python/damask/mechanics.py +++ b/python/damask/mechanics.py @@ -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)