bugfix:
wrong results when calculating multiple strain tensors. Introduced in cd6a4d1cfd
This commit is contained in:
parent
3ed9126845
commit
3c4c364107
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue