*** empty log message ***
This commit is contained in:
parent
b07f6f2343
commit
1fa8b3ec4b
|
@ -159,9 +159,9 @@ public:
|
||||||
{
|
{
|
||||||
ScalarType diff=(l0-l1);
|
ScalarType diff=(l0-l1);
|
||||||
if (diff>0)//compression
|
if (diff>0)//compression
|
||||||
return ((diff/l1)*_k);
|
return ((diff/(l1))*_k)+(diff *_k);
|
||||||
else
|
else
|
||||||
return (diff *_k);
|
return (diff *_k);
|
||||||
}
|
}
|
||||||
|
|
||||||
///update of the internal forces using the dihedral angle
|
///update of the internal forces using the dihedral angle
|
||||||
|
|
Loading…
Reference in New Issue