Changeset 18985


Ignore:
Timestamp:
01/06/15 09:07:18 (10 years ago)
Author:
bdef
Message:

CHG: Correction to hydro friciton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Loads/Friction.cpp

    r18926 r18985  
    135135                Based on Gagliardini 2007, needs a good effective pressure computation
    136136                Not tested so far so use at your own risks
    137           alpha2= [vel^(1-n)/{(As)*(1+alpha*Chi^q)}]^(1/n)  with
     137          alpha2= NeffC[Chi/(1+alpha*Chi^q)]^(1/n)*1/vel  with
    138138                -Chi=|vel|/(C^n*Neff^n*As)
    139139                -alpha=(q-1)^(q-1)/q^q  **/
     
    191191        }
    192192        Chi=vmag/(pow(C_param,n)*pow(Neff,n)*As);
    193         alpha2=pow((pow(vmag,1.-n)/(As*(1+alpha*pow(Chi,q_exp)))),1./n);
     193        alpha2= Neff * C_param * pow((Chi/(1 + alpha * pow(Chi,q))),1/n) * 1/vmag;
    194194        _assert_(!xIsNan<IssmDouble>(alpha2));
    195195        /*Assign output pointers:*/
Note: See TracChangeset for help on using the changeset viewer.