Ignore:
Timestamp:
06/01/20 10:24:28 (5 years ago)
Author:
tsantos
Message:

BUG: fixed the basal stress computation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mech/basalstress.m

    r22542 r24943  
    1818uby=md.initialization.vy/md.constants.yts;
    1919
    20 %compute basal drag
    21 bx = - (md.constants.g*(md.materials.rho_ice*md.geometry.thickness+md.materials.rho_water*md.geometry.base)).^r.*(md.friction.coefficient).^2.*ubx.^s;
    22 by = - (md.constants.g*(md.materials.rho_ice*md.geometry.thickness+md.materials.rho_water*md.geometry.base)).^r.*(md.friction.coefficient).^2.*uby.^s;
    23 b  = sqrt(bx.^2+by.^2);
     20%compute basal drag (S.I.)
     21alpha2=(max(md.constants.g*(md.materials.rho_ice*md.geometry.thickness+md.materials.rho_water*md.geometry.base),0).^r).*(md.friction.coefficient.^2).*(ub.^(s-1));
     22b  =  alpha2.*ub;
     23bx = -alpha2.*ubx;
     24by = -alpha2.*uby;
     25
     26clear alpha2
     27
     28end
Note: See TracChangeset for help on using the changeset viewer.