Ignore:
Timestamp:
03/16/20 02:01:18 (5 years ago)
Author:
rueckamp
Message:

CHG: add a limit for effective pressure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/frictionjosh.m

    r24562 r24666  
    99                pressure_adjusted_temperature = NaN;
    1010                gamma      = 0.;
     11                effective_pressure_limit = 0;
    1112        end
    1213        methods
     
    3031                        self.gamma = 1.;
    3132
     33                        %Default 0
     34                        self.effective_pressure_limit = 0;
     35
    3236                end % }}}
    3337                function md = checkconsistency(self,md,solution,analyses) % {{{
     
    3943                        md = checkfield(md,'fieldname','friction.pressure_adjusted_temperature','NaN',1,'Inf',1);
    4044                        md = checkfield(md,'fieldname','friction.gamma','numel',1,'NaN',1,'Inf',1,'>',0.);
     45                        md = checkfield(md,'fieldname','friction.effective_pressure_limit','numel',[1],'>=',0);
    4146
    4247                        %Check that temperature is provided
     
    4853                        fielddisplay(self,'pressure_adjusted_temperature','friction pressure_adjusted_temperature (T - Tpmp) [K]');
    4954                        fielddisplay(self,'gamma','(T - Tpmp)/gamma [K]');
     55                        fielddisplay(self,'effective_pressure_limit','Neff do not allow to fall below a certain limit: effective_pressure_limit*rho_ice*g*thickness (default 0)');
    5056                end % }}}
    5157                function marshall(self,prefix,md,fid) % {{{
     
    5561                        WriteData(fid,prefix,'class','friction','object',self,'fieldname','pressure_adjusted_temperature','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    5662                        WriteData(fid,prefix,'class','friction','object',self,'fieldname','gamma','format','Double');
     63                        WriteData(fid,prefix,'object',self,'class','friction','fieldname','effective_pressure_limit','format','Double');
    5764                end % }}}
    5865        end
Note: See TracChangeset for help on using the changeset viewer.