1 | %FRICTIONWEERTMAN class definition
|
---|
2 | %
|
---|
3 | % Usage:
|
---|
4 | % frictionweertmantemp=frictionweertmantemp();
|
---|
5 |
|
---|
6 | classdef frictionweertmantemp
|
---|
7 | properties (SetAccess=public)
|
---|
8 | gamma = 0;
|
---|
9 | C = NaN;
|
---|
10 | m = NaN;
|
---|
11 | end
|
---|
12 | methods (Static)
|
---|
13 | function self = loadobj(self) % {{{
|
---|
14 | disp('Warning: the Weertman friciton law is updated to Sigma_b = C^2*|u_b|^(1/m-1)*u_b, since 2020-08-10');
|
---|
15 | disp(' and friction coefficient in the temprature dependent version is updated accordingly.');
|
---|
16 | end
|
---|
17 | end %}}}
|
---|
18 | methods
|
---|
19 | function self = frictionweertmantemp(varargin) % {{{
|
---|
20 | switch nargin
|
---|
21 | case 0
|
---|
22 | self=setdefaultparameters(self);
|
---|
23 | otherwise
|
---|
24 | error('constructor not supported');
|
---|
25 | end
|
---|
26 | end % }}}
|
---|
27 | function self = setdefaultparameters(self) % {{{
|
---|
28 |
|
---|
29 | end % }}}
|
---|
30 | function md = checkconsistency(self,md,solution,analyses) % {{{
|
---|
31 |
|
---|
32 | %Early return
|
---|
33 | if ~ismember('StressbalanceAnalysis',analyses) & ~ismember('ThermalAnalysis',analyses), return; end
|
---|
34 | md = checkfield(md,'fieldname','friction.C','timeseries',1,'NaN',1,'Inf',1);
|
---|
35 | md = checkfield(md,'fieldname','friction.m','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]);
|
---|
36 | end % }}}
|
---|
37 | function disp(self) % {{{
|
---|
38 | disp('Weertman sliding law parameters:');
|
---|
39 | disp(' Sigma_b = C^2 * |u_b|^(1/m-1) u_b * 1/f(T)');
|
---|
40 | disp(' ');
|
---|
41 | fielddisplay(self,'gamma','submelt sliding parameter f(T) = exp((T-Tpmp)/gamma)');
|
---|
42 | fielddisplay(self,'C','friction coefficient [SI]');
|
---|
43 | fielddisplay(self,'m','m exponent');
|
---|
44 | end % }}}
|
---|
45 | function marshall(self,prefix,md,fid) % {{{
|
---|
46 | yts=md.constants.yts;
|
---|
47 |
|
---|
48 | WriteData(fid,prefix,'name','md.friction.law','data',6,'format','Integer');
|
---|
49 | WriteData(fid,prefix,'class','friction','object',self,'fieldname','gamma','format','Double');
|
---|
50 | WriteData(fid,prefix,'class','friction','object',self,'fieldname','C','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
|
---|
51 | WriteData(fid,prefix,'class','friction','object',self,'fieldname','m','format','DoubleMat','mattype',2);
|
---|
52 |
|
---|
53 |
|
---|
54 | end % }}}
|
---|
55 | end
|
---|
56 | end
|
---|