Changeset 19085


Ignore:
Timestamp:
02/04/15 08:44:43 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better calving law

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r19061 r19085  
    359359                /*Get Eigen values*/
    360360                Matrix2x2Eigen(&lambda1,&lambda2,&ex,&ey,epsilon[0],epsilon[2],epsilon[1]);
    361 
    362                 /*Process Eigen values*/
    363                 lambda1>0? lambda1 = pow(lambda1,.3) : lambda1=0.;
    364                 lambda2>0? lambda2 = pow(lambda2,.3) : lambda2=0.;
    365                 lambda1 = lambda1*5.e-2;
    366                 lambda2 = lambda2*5.e-2;
    367361                _assert_(!xIsNan<IssmDouble>(lambda1));
    368362                _assert_(!xIsNan<IssmDouble>(lambda2));
    369363
     364                /*Process Eigen values (only account for extension)*/
     365                lambda1 = max(lambda1,0.);
     366                lambda2 = max(lambda2,0.);
     367
    370368                /*Assign values*/
    371                 //calvingratex[iv]=ex*lambda1 - ey*lambda2;
    372                 //calvingratey[iv]=ey*lambda1 + ex*lambda2;
    373                 calvingratex[iv]=vx/vel*(lambda1 + lambda2);
    374                 calvingratey[iv]=vy/vel*(lambda1 + lambda2);
     369                calvingratex[iv]=vx*pow(lambda1 + lambda2,1./3.)*3.e+2;
     370                calvingratey[iv]=vy*pow(lambda1 + lambda2,1./3.)*3.e+2;
    375371                calvingrate[iv]=sqrt(calvingratex[iv]*calvingratex[iv] + calvingratey[iv]*calvingratey[iv]);
    376372        }
Note: See TracChangeset for help on using the changeset viewer.