Changeset 20500 for issm/trunk/src/m/classes/calvingdev.m
- Timestamp:
- 04/12/16 21:32:01 (9 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk ¶
- Property svn:ignore
-
TabularUnified
old new 1 build-js 2 build-esmf 3 build-gcm 1 4 build-fw 2 5 build-ad
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 19104,19106-19126,19128-19134,19136-19170,19172-19299,19302,19306-19405,19407-19604,19606-19668,19670-20496
- Property svn:ignore
-
issm/trunk/src ¶
- Property svn:mergeinfo changed
-
TabularUnified issm/trunk/src/m/classes/calvingdev.m ¶
r19105 r20500 6 6 classdef calvingdev 7 7 properties (SetAccess=public) 8 stabilization = 0;9 8 coeff = NaN; 10 9 meltingrate = NaN; … … 29 28 end 30 29 end % }}} 30 function self = extrude(self,md) % {{{ 31 self.coeff=project3d(md,'vector',self.coeff,'type','node'); 32 self.meltingrate=project3d(md,'vector',self.meltingrate,'type','node'); 33 end % }}} 31 34 function self = setdefaultparameters(self) % {{{ 32 33 %stabilization = 2 by default34 self.stabilization = 2;35 35 36 36 %Proportionality coefficient in Pi model … … 39 39 function md = checkconsistency(self,md,solution,analyses) % {{{ 40 40 %Early return 41 if (solution~=TransientSolutionEnum() | md.transient.is calving==0), return; end41 if (solution~=TransientSolutionEnum() | md.transient.ismovingfront==0), return; end 42 42 43 md = checkfield(md,'fieldname','calving.stabilization','values',[0 1 2]);44 43 md = checkfield(md,'fieldname','calving.coeff','>',0,'size',[md.mesh.numberofvertices 1]); 45 md = checkfield(md,'fieldname','calving.meltingrate','NaN',1,' size',[md.mesh.numberofvertices 1],'>=',0);44 md = checkfield(md,'fieldname','calving.meltingrate','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 1],'>=',0); 46 45 end % }}} 47 46 function disp(self) % {{{ 48 47 disp(sprintf(' Calving Pi parameters:')); 49 fielddisplay(self,'stabilization','0: no, 1: artificial_diffusivity, 2: streamline upwinding');50 48 fielddisplay(self,'coeff','proportionality coefficient in Pi model'); 51 49 fielddisplay(self,'meltingrate','melting rate at given location [m/a]'); … … 55 53 yts=365.0*24.0*3600.0; 56 54 WriteData(fid,'enum',CalvingLawEnum(),'data',CalvingDevEnum(),'format','Integer'); 57 WriteData(fid,'enum',LevelsetStabilizationEnum(),'data',self.stabilization,'format','Integer'); 58 WriteData(fid,'enum',CalvingpiCoeffEnum(),'data',self.coeff,'format','DoubleMat','mattype',1); 55 WriteData(fid,'enum',CalvingdevCoeffEnum(),'data',self.coeff,'format','DoubleMat','mattype',1); 59 56 WriteData(fid,'class','calving','object',self,'fieldname','meltingrate','format','DoubleMat','mattype',1,'forcinglength',md.mesh.numberofvertices+1,'scale',1./yts); 60 57 end % }}}
Note:
See TracChangeset
for help on using the changeset viewer.