Changeset 20500 for issm/trunk/src/m/classes/frictionwaterlayer.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
-
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
-
issm/trunk/src/m/classes/frictionwaterlayer.m
r19105 r20500 7 7 properties (SetAccess=public) 8 8 coefficient = NaN; 9 f = NaN; 9 10 p = NaN; 10 11 q = NaN; … … 30 31 if ~ismember(StressbalanceAnalysisEnum(),analyses) & ~ismember(ThermalAnalysisEnum(),analyses), return; end 31 32 32 md = checkfield(md,'fieldname','friction.coefficient','timeseries',1,'NaN',1); 33 md = checkfield(md,'fieldname','friction.q','NaN',1,'size',[md.mesh.numberofelements 1]); 34 md = checkfield(md,'fieldname','friction.p','NaN',1,'size',[md.mesh.numberofelements 1]); 35 md = checkfield(md,'fieldname','thermal.spctemperature','timeseries',1,'>=',0.); 33 md = checkfield(md,'fieldname','friction.coefficient','timeseries',1,'NaN',1,'Inf',1); 34 md = checkfield(md,'fieldname','friction.f','size',[1 1],'NaN',1,'Inf',1); 35 md = checkfield(md,'fieldname','friction.q','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]); 36 md = checkfield(md,'fieldname','friction.p','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]); 37 md = checkfield(md,'fieldname','thermal.spctemperature','Inf',1,'timeseries',1,'>=',0.); 36 38 37 39 end % }}} … … 45 47 disp(sprintf('Basal shear stress parameters: tau_b = coefficient^2 * Neff ^r * |u_b|^(s-1) * u_b * 1/f(T)\n(effective stress Neff=rho_ice*g*thickness+rho_water*g*(bed+water_layer), r=q/p and s=1/p)')); 46 48 fielddisplay(self,'coefficient','frictiontemp coefficient [SI]'); 49 fielddisplay(self,'f','f variable for effective pressure'); 47 50 fielddisplay(self,'p','p exponent'); 48 51 fielddisplay(self,'q','q exponent'); … … 53 56 WriteData(fid,'enum',FrictionLawEnum,'data',5,'format','Integer'); 54 57 WriteData(fid,'class','friction','object',self,'fieldname','coefficient','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1); 58 WriteData(fid,'class','friction','object',self,'fieldname','f','format','Double'); 55 59 WriteData(fid,'class','friction','object',self,'fieldname','p','format','DoubleMat','mattype',2); 56 60 WriteData(fid,'class','friction','object',self,'fieldname','q','format','DoubleMat','mattype',2);
Note:
See TracChangeset
for help on using the changeset viewer.