wrong results when calculating multiple strain tensors. Introduced in cd6a4d1cfd
This commit is contained in:
Martin Diehl 2019-12-23 06:48:42 +01:00
parent 3ed9126845
commit 3c4c364107
1 changed files with 7 additions and 7 deletions

View File

@ -17,9 +17,9 @@ def operator(stretch,strain,eigenvalues):
return {
'V#ln': np.log(eigenvalues) ,
'U#ln': np.log(eigenvalues) ,
'V#Biot': ( np.ones(3,'d') - 1.0/eigenvalues ) ,
'U#Biot': ( eigenvalues - np.ones(3,'d') ) ,
'V#Green': ( np.ones(3,'d') - 1.0/eigenvalues**2.0) *0.5,
'V#Biot': ( np.ones(3,'d') - eigenvalues**-1.0) ,
'U#Biot': ( eigenvalues**1.0 - np.ones(3,'d')) ,
'V#Green': ( np.ones(3,'d') - eigenvalues**-2.0)*0.5,
'U#Green': ( eigenvalues**2.0 - np.ones(3,'d')) *0.5,
}[stretch+'#'+strain]