F reshaped error
This commit is contained in:
parent
36f04309b4
commit
f3d59ddfe5
|
@ -62,10 +62,10 @@ def strain_tensor(F,t,m):
|
||||||
F_ = F.reshape(1,3,3)
|
F_ = F.reshape(1,3,3)
|
||||||
|
|
||||||
if t == 'V':
|
if t == 'V':
|
||||||
B = np.matmul(F_,transpose(F_))
|
B = np.matmul(F_,mechanics.transpose(F_))
|
||||||
w,n = np.linalg.eigh(B)
|
w,n = np.linalg.eigh(B)
|
||||||
elif t == 'U':
|
elif t == 'U':
|
||||||
C = np.matmul(transpose(F_),F_)
|
C = np.matmul(mechanics.transpose(F_),F_)
|
||||||
w,n = np.linalg.eigh(C)
|
w,n = np.linalg.eigh(C)
|
||||||
|
|
||||||
if m > 0.0:
|
if m > 0.0:
|
||||||
|
|
Loading…
Reference in New Issue