Changeset 25974
- Timestamp:
- 02/03/21 20:06:06 (4 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r25973 r25974 918 918 case 13: 919 919 iomodel->FindConstant(&FrictionCoupling,"md.friction.coupling"); 920 iomodel->FetchDataToInput(inputs,elements,"md.friction. coefficient",FrictionCEnum);920 iomodel->FetchDataToInput(inputs,elements,"md.friction.C",FrictionCEnum); 921 921 iomodel->FetchDataToInput(inputs,elements,"md.friction.m",FrictionMEnum); 922 922 if(FrictionCoupling==3){ -
issm/trunk-jpl/src/m/classes/frictioncoulomb2.m
r25973 r25974 6 6 classdef frictioncoulomb2 7 7 properties (SetAccess=public) 8 coefficient= NaN;8 C = NaN; 9 9 m = NaN; 10 10 coupling = 0; … … 14 14 methods 15 15 function self = extrude(self,md) % {{{ 16 self. coefficient=project3d(md,'vector',self.coefficient,'type','node','layer',1);16 self.C=project3d(md,'vector',self.C,'type','node','layer',1); 17 17 self.m=project3d(md,'vector',self.m,'type','element'); 18 18 switch self.coupling … … 43 43 %Early return 44 44 if ~ismember('StressbalanceAnalysis',analyses) & ~ismember('ThermalAnalysis',analyses), return; end 45 md = checkfield(md,'fieldname','friction. coefficient','timeseries',1,'NaN',1,'Inf',1);45 md = checkfield(md,'fieldname','friction.C','timeseries',1,'NaN',1,'Inf',1); 46 46 md = checkfield(md,'fieldname','friction.m','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]); 47 47 md = checkfield(md,'fieldname','friction.coupling','numel',[1],'values',[0 1 2]); … … 64 64 disp(' (C^(2/m) |u_b| + (0.5*N)^(1/m) )^m '); 65 65 disp(' '); 66 fielddisplay(self,' coefficient','power law (Weertman)friction coefficient [SI]');66 fielddisplay(self,'C','friction coefficient [SI]'); 67 67 fielddisplay(self,'m','m exponent (Weertman would be 1/3)'); 68 68 fielddisplay(self,'effective_pressure','Effective Pressure for the forcing if not coupled [Pa]'); … … 73 73 74 74 WriteData(fid,prefix,'name','md.friction.law','data',13,'format','Integer'); 75 WriteData(fid,prefix,'object',self,'fieldname',' coefficient','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);75 WriteData(fid,prefix,'object',self,'fieldname','C','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 76 76 WriteData(fid,prefix,'object',self,'fieldname','m','format','DoubleMat','mattype',2); 77 77 WriteData(fid,prefix,'class','friction','object',self,'fieldname','coupling','format','Integer');
Note:
See TracChangeset
for help on using the changeset viewer.