Changeset 27280


Ignore:
Timestamp:
09/13/22 12:54:42 (3 years ago)
Author:
Cheng Gong
Message:

CHG: add linear relationship in calving parameterization using normalized vel

Location:
issm/trunk-jpl/src
Files:
2 edited

Legend:

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

    r27271 r27280  
    910910                        case 0:
    911911                                /* 0 Linear: f(x) = y_{o} + \alpha (x+x_{o}) */
    912                                 gamma = yoffset = alpha * (bed+xoffset);
     912                                gamma = yoffset + alpha * (bed+xoffset);
    913913                                break;
    914914                        case 1:
     
    927927                                /* 4 tanh(normal vel), cross (0,0): f(x)=y_{o}-\frac{\theta}{2}\tanh(\alpha(x+x_{o})) */
    928928                                gamma = 0.5*theta*(tanh(alpha*xoffset) - tanh(alpha*(truncateVrate+xoffset)));
     929                                break;
     930                        case 5:
     931                                /* 5 Linear: f(x) = y_{o} + \alpha (x+x_{o}) */
     932                                gamma = yoffset + alpha * (truncateVrate+xoffset);
    929933                                break;
    930934                        case -1:
  • issm/trunk-jpl/src/m/classes/calvingparameterization.m

    r27252 r27280  
    6363
    6464                        md = checkfield(md,'fieldname','calving.min_thickness','>=',0,'NaN',1,'Inf',1,'numel',1);
    65                         md = checkfield(md,'fieldname','calving.use_param','values',[-1, 0, 1, 2, 3, 4]);
     65                        md = checkfield(md,'fieldname','calving.use_param','values',[-1, 0, 1, 2, 3, 4, 5]);
    6666                        md = checkfield(md,'fieldname','calving.theta','NaN',1,'Inf',1,'numel',1);
    6767                        md = checkfield(md,'fieldname','calving.alpha','NaN',1,'Inf',1,'numel',1);
     
    7575                        disp(sprintf('   Calving test parameters:'));
    7676                        fielddisplay(self,'min_thickness','minimum thickness below which no ice is allowed [m]');
    77                         fielddisplay(self,'use_param','-1 - just use frontal ablation rate, 0 - f(x) = y_{o} + \alpha (x+x_{o}), 1 - f(x)=y_{o}-\frac{\theta}{2}\tanh(\alpha(x+x_{o})), 2 - tanh(thickness), 3 - tanh(normalized vel), 4 - tanh(truncated vel)');
     77                        fielddisplay(self,'use_param','-1 - just use frontal ablation rate, 0 - f(x) = y_{o} + \alpha (x+x_{o}), 1 - f(x)=y_{o}-\frac{\theta}{2}\tanh(\alpha(x+x_{o})), 2 - tanh(thickness), 3 - tanh(normalized vel), 4 - tanh(truncated vel), 5 - linear(truncated vel)');
    7878                        fielddisplay(self,'theta','the amplifier');
    7979                        fielddisplay(self,'alpha','the slope');
Note: See TracChangeset for help on using the changeset viewer.