Changeset 27487
- Timestamp:
- 12/31/22 10:50:41 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/friction.m
r26187 r27487 10 10 q = NaN; 11 11 coupling = 0; 12 linearize = 0; 12 13 effective_pressure = NaN; 13 14 effective_pressure_limit = 0; … … 34 35 function self = setdefaultparameters(self) % {{{ 35 36 36 self.coupling = 0; 37 self.linearize = 0; 38 self.coupling = 0; 37 39 self.effective_pressure_limit = 0; 38 40 … … 47 49 md = checkfield(md,'fieldname','friction.q','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]); 48 50 md = checkfield(md,'fieldname','friction.p','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]); 51 md = checkfield(md,'fieldname','friction.linearize','numel',[1],'values',[0:2]); 49 52 md = checkfield(md,'fieldname','friction.coupling','numel',[1],'values',[0:4]); 50 53 md = checkfield(md,'fieldname','friction.effective_pressure_limit','numel',[1],'>=',0); … … 58 61 fielddisplay(self,'p','p exponent'); 59 62 fielddisplay(self,'q','q exponent'); 63 fielddisplay(self,'coupling','Coupling flag 0: uniform sheet (negative pressure ok, default), 1: ice pressure only, 2: water pressure assuming uniform sheet (no negative pressure), 3: use provided effective_pressure, 4: use coupled model (not implemented yet)'); 64 fielddisplay(self,'linearize','0: not linearized, 1: interpolated linearly, 2: constant per element (default is 0)'); 60 65 fielddisplay(self,'effective_pressure','Effective Pressure for the forcing if not coupled [Pa]'); 61 fielddisplay(self,'coupling','Coupling flag 0: uniform sheet (negative pressure ok, default), 1: ice pressure only, 2: water pressure assuming uniform sheet (no negative pressure), 3: use provided effective_pressure, 4: use coupled model (not implemented yet)');62 66 fielddisplay(self,'effective_pressure_limit','Neff do not allow to fall below a certain limit: effective_pressure_limit*rho_ice*g*thickness (default 0)'); 63 67 end % }}} … … 75 79 WriteData(fid,prefix,'object',self,'fieldname','q','format','DoubleMat','mattype',2); 76 80 WriteData(fid,prefix,'class','friction','object',self,'fieldname','coupling','format','Integer'); 81 WriteData(fid,prefix,'class','friction','object',self,'fieldname','linearize','format','Integer'); 77 82 WriteData(fid,prefix,'object',self,'class','friction','fieldname','effective_pressure_limit','format','Double'); 78 83 if self.coupling==3 || self.coupling==4 … … 86 91 writejs1Darray(fid,[modelname '.friction.q'],self.q); 87 92 writejs1Darray(fid,[modelname '.friction.coupling'],self.coupling); 93 writejs1Darray(fid,[modelname '.friction.linearize'],self.linearize); 88 94 writejs1Darray(fid,[modelname '.friction.effective_pressure'],self.effective_pressure); 89 95 writejs1Darray(fid,[modelname '.friction.effective_pressure_limit'],self.effective_pressure_limit);
Note:
See TracChangeset
for help on using the changeset viewer.