Last change
on this file since 27032 was 27032, checked in by Mathieu Morlighem, 3 years ago |
CHG: added 26740-27031
|
File size:
797 bytes
|
Rev | Line | |
---|
[27032] | 1 | Index: ../trunk-jpl/src/c/classes/Materials/Matice.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/classes/Materials/Matice.cpp (revision 26865)
|
---|
| 4 | +++ ../trunk-jpl/src/c/classes/Materials/Matice.cpp (revision 26866)
|
---|
| 5 | @@ -393,14 +393,12 @@
|
---|
| 6 | viscosity=(1.-D)*B/(2.*E);
|
---|
| 7 | }
|
---|
| 8 | else{
|
---|
| 9 | -
|
---|
| 10 | - /*if no strain rate, return maximum viscosity*/
|
---|
| 11 | - if(eps_eff==0.){
|
---|
| 12 | - viscosity = 1.e+14/2.;
|
---|
| 13 | - //viscosity=2.5*pow(10.,17);
|
---|
| 14 | - }
|
---|
| 15 | -
|
---|
| 16 | + /*if strain rate is 0., it is probably our initial guess, use an average
|
---|
| 17 | + * viscosity instead of a large one*/
|
---|
| 18 | + if(eps_eff==0.) viscosity = 1.e+14/2.;
|
---|
| 19 | else{
|
---|
| 20 | + /*if no strain rate, return maximum viscosity*/
|
---|
| 21 | + //if(eps_eff<1.e-6) eps_eff = 1e-6;
|
---|
| 22 | viscosity=(1.-D)*B/(2.*pow(E,1./n)*pow(eps_eff,(n-1.)/n));
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.