Skip to content

Commit

Permalink
Smoother transition to SIA velocity near the bed so the basal velocity
Browse files Browse the repository at this point in the history
in boundary conditions is less sensitive to misfit between raster and
mesh.
  • Loading branch information
jedbrown committed May 25, 2011
1 parent 191e529 commit 72fe4b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fs/tests/stokesjako.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ static dErr JakoSIAVelocity(StokesCase scase,dReal b,dReal h,dReal dh[2],dReal z
slope = dSqrt(dSqr(dh[0]) + dSqr(dh[1])),
sliding = 0,
hmz = z > h ? 0 : (z < b ? h-b : h-z),
speed = sliding + A / (n+1) * pow(slope,n) * (pow(h-b,n+1) - pow(hmz,n+1)); // Integrate stress from the bottom
siaspeed = sliding + A / (n+1) * pow(slope,n) * (pow(h-b,n+1) - pow(hmz,n+1)),
speed = 0 + (siaspeed - 0) * (1 + tanh((z-b)/100))/2; // Integrate stress from the bottom
u[0] = -speed / slope * dh[0];
u[1] = -speed / slope * dh[1];
u[2] = 0; // Would need another derivative to evaluate this and it should not be a big deal for this stationary computation
Expand Down

0 comments on commit 72fe4b1

Please sign in to comment.