source:
issm/oecreview/Archive/23390-24306/ISSM-23608-23609.diff
Last change on this file was 24307, checked in by , 5 years ago | |
---|---|
File size: 2.5 KB |
-
../trunk-jpl/src/m/classes/calvingcrevassedepth.m
5 5 6 6 classdef calvingcrevassedepth 7 7 properties (SetAccess=public) 8 cr itical_fraction = 0.;8 crevasse_opening_stress=1.; 9 9 water_height = 0.; 10 10 meltingrate = NaN; 11 11 end … … 32 32 self.meltingrate=project3d(md,'vector',self.meltingrate,'type','node'); 33 33 end % }}} 34 34 function self = setdefaultparameters(self) % {{{ 35 36 % crticial fraction of thickness that surface and basal crevasses penetrate for calving onset 37 self.critical_fraction = 1.; 35 38 36 self.water_height = 0.; 37 crevasse_opening_stress=1.; 39 38 end % }}} 40 39 function md = checkconsistency(self,md,solution,analyses) % {{{ 41 40 %Early return 42 41 if (~strcmp(solution,'TransientSolution') | md.transient.ismovingfront==0), return; end 43 42 44 md = checkfield(md,'fieldname','calving.cr itical_fraction','>',0,'NaN',1,'Inf',1);43 md = checkfield(md,'fieldname','calving.crevasse_opening_stress','numel',[1],'values',[0,1]); 45 44 md = checkfield(md,'fieldname','calving.water_height','NaN',1,'Inf',1,'timeseries',1,'>=',0); 46 45 md = checkfield(md,'fieldname','calving.meltingrate','NaN',1,'Inf',1,'timeseries',1,'>=',0); 47 46 end % }}} 48 47 function disp(self) % {{{ 49 48 disp(sprintf(' Calving Pi parameters:')); 50 fielddisplay(self,'cr itical_fraction','critical fraction of thickness that surface and basal crevasses penetrate for calving onset');49 fielddisplay(self,'crevasse_opening_stress','0: stress only in the ice-flow direction, 1: max principal'); 51 50 fielddisplay(self,'water_height','water height in the crevasse [m]'); 52 51 fielddisplay(self,'meltingrate','melting rate at given location [m/a]'); 53 52 … … 55 54 function marshall(self,prefix,md,fid) % {{{ 56 55 yts=md.constants.yts; 57 56 WriteData(fid,prefix,'name','md.calving.law','data',6,'format','Integer'); 58 WriteData(fid,prefix,'object',self,'fieldname','cr itical_fraction','format','Double');57 WriteData(fid,prefix,'object',self,'fieldname','crevasse_opening_stress','format','Integer'); 59 58 WriteData(fid,prefix,'object',self,'fieldname','water_height','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 60 59 WriteData(fid,prefix,'object',self,'fieldname','meltingrate','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts,'scale',1./yts); 61 60 end % }}}
Note:
See TracBrowser
for help on using the repository browser.