[24307] | 1 | Index: ../trunk-jpl/src/m/classes/calvingcrevassedepth.m
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/classes/calvingcrevassedepth.m (revision 23608)
|
---|
| 4 | +++ ../trunk-jpl/src/m/classes/calvingcrevassedepth.m (revision 23609)
|
---|
| 5 | @@ -5,7 +5,7 @@
|
---|
| 6 |
|
---|
| 7 | classdef calvingcrevassedepth
|
---|
| 8 | properties (SetAccess=public)
|
---|
| 9 | - critical_fraction = 0.;
|
---|
| 10 | + crevasse_opening_stress=1.;
|
---|
| 11 | water_height = 0.;
|
---|
| 12 | meltingrate = NaN;
|
---|
| 13 | end
|
---|
| 14 | @@ -32,22 +32,21 @@
|
---|
| 15 | self.meltingrate=project3d(md,'vector',self.meltingrate,'type','node');
|
---|
| 16 | end % }}}
|
---|
| 17 | function self = setdefaultparameters(self) % {{{
|
---|
| 18 | -
|
---|
| 19 | - % crticial fraction of thickness that surface and basal crevasses penetrate for calving onset
|
---|
| 20 | - self.critical_fraction = 1.;
|
---|
| 21 | +
|
---|
| 22 | self.water_height = 0.;
|
---|
| 23 | + crevasse_opening_stress=1.;
|
---|
| 24 | end % }}}
|
---|
| 25 | function md = checkconsistency(self,md,solution,analyses) % {{{
|
---|
| 26 | %Early return
|
---|
| 27 | if (~strcmp(solution,'TransientSolution') | md.transient.ismovingfront==0), return; end
|
---|
| 28 |
|
---|
| 29 | - md = checkfield(md,'fieldname','calving.critical_fraction','>',0,'NaN',1,'Inf',1);
|
---|
| 30 | + md = checkfield(md,'fieldname','calving.crevasse_opening_stress','numel',[1],'values',[0,1]);
|
---|
| 31 | md = checkfield(md,'fieldname','calving.water_height','NaN',1,'Inf',1,'timeseries',1,'>=',0);
|
---|
| 32 | md = checkfield(md,'fieldname','calving.meltingrate','NaN',1,'Inf',1,'timeseries',1,'>=',0);
|
---|
| 33 | end % }}}
|
---|
| 34 | function disp(self) % {{{
|
---|
| 35 | disp(sprintf(' Calving Pi parameters:'));
|
---|
| 36 | - fielddisplay(self,'critical_fraction','critical fraction of thickness that surface and basal crevasses penetrate for calving onset');
|
---|
| 37 | + fielddisplay(self,'crevasse_opening_stress','0: stress only in the ice-flow direction, 1: max principal');
|
---|
| 38 | fielddisplay(self,'water_height','water height in the crevasse [m]');
|
---|
| 39 | fielddisplay(self,'meltingrate','melting rate at given location [m/a]');
|
---|
| 40 |
|
---|
| 41 | @@ -55,7 +54,7 @@
|
---|
| 42 | function marshall(self,prefix,md,fid) % {{{
|
---|
| 43 | yts=md.constants.yts;
|
---|
| 44 | WriteData(fid,prefix,'name','md.calving.law','data',6,'format','Integer');
|
---|
| 45 | - WriteData(fid,prefix,'object',self,'fieldname','critical_fraction','format','Double');
|
---|
| 46 | + WriteData(fid,prefix,'object',self,'fieldname','crevasse_opening_stress','format','Integer');
|
---|
| 47 | WriteData(fid,prefix,'object',self,'fieldname','water_height','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
|
---|
| 48 | WriteData(fid,prefix,'object',self,'fieldname','meltingrate','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts,'scale',1./yts);
|
---|
| 49 | end % }}}
|
---|