Changeset 24666 for issm/trunk-jpl/src/m/classes/frictionjosh.m
- Timestamp:
- 03/16/20 02:01:18 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/frictionjosh.m
r24562 r24666 9 9 pressure_adjusted_temperature = NaN; 10 10 gamma = 0.; 11 effective_pressure_limit = 0; 11 12 end 12 13 methods … … 30 31 self.gamma = 1.; 31 32 33 %Default 0 34 self.effective_pressure_limit = 0; 35 32 36 end % }}} 33 37 function md = checkconsistency(self,md,solution,analyses) % {{{ … … 39 43 md = checkfield(md,'fieldname','friction.pressure_adjusted_temperature','NaN',1,'Inf',1); 40 44 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); 41 46 42 47 %Check that temperature is provided … … 48 53 fielddisplay(self,'pressure_adjusted_temperature','friction pressure_adjusted_temperature (T - Tpmp) [K]'); 49 54 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)'); 50 56 end % }}} 51 57 function marshall(self,prefix,md,fid) % {{{ … … 55 61 WriteData(fid,prefix,'class','friction','object',self,'fieldname','pressure_adjusted_temperature','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 56 62 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'); 57 64 end % }}} 58 65 end
Note:
See TracChangeset
for help on using the changeset viewer.