Changeset 27679
- Timestamp:
- 04/05/23 07:51:21 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r27673 r27679 901 901 /*This routine calculates the basal friction coefficient 902 902 * 903 * C |u_b|^(m-1)903 * C^2 |u_b|^(m-1) 904 904 * alpha2= __________________________ 905 * (1+(C /(Cmax Neff))^1/m |u_b| )^m905 * (1+(C^2/(Cmax Neff))^1/m |u_b| )^m 906 906 * 907 907 * */ 908 908 909 909 /*diverse: */ 910 IssmDouble C, coeff,Cmax,m,alpha2;910 IssmDouble C,Cmax,m,alpha2; 911 911 912 912 /*Recover parameters: */ 913 913 element->GetInputValue(&Cmax,gauss,FrictionCmaxEnum); 914 element->GetInputValue(& coeff,gauss,FrictionCEnum);914 element->GetInputValue(&C,gauss,FrictionCEnum); 915 915 element->GetInputValue(&m,gauss,FrictionMEnum); 916 916 917 /* scale C for a better inversion */918 C = coeff*coeff;919 917 920 918 /*Get effective pressure*/ … … 943 941 } 944 942 else{ 945 alpha2= (C* pow(ub,m-1.)) / pow(1.+ pow(C/(Cmax*Neff),1./m)*ub,m);943 alpha2= (C*C*pow(ub,m-1.)) / pow(1.+ pow(C*C/(Cmax*Neff),1./m)*ub,m); 946 944 } 947 945
Note:
See TracChangeset
for help on using the changeset viewer.