bugfix for (3x3) version of Cauchy
This commit is contained in:
parent
578cbf9bbf
commit
2d08eb68b1
|
@ -15,7 +15,7 @@ def Cauchy(F,P):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if np.shape(F) == np.shape(P) == (3,3):
|
if np.shape(F) == np.shape(P) == (3,3):
|
||||||
sigma = 1.0/np.linalg.det(F) * np.dot(F,P)
|
sigma = 1.0/np.linalg.det(F) * np.dot(P,F.T)
|
||||||
else:
|
else:
|
||||||
sigma = np.einsum('i,ijk,ilk->ijl',1.0/np.linalg.det(F),P,F)
|
sigma = np.einsum('i,ijk,ilk->ijl',1.0/np.linalg.det(F),P,F)
|
||||||
return symmetric(sigma)
|
return symmetric(sigma)
|
||||||
|
|
Loading…
Reference in New Issue