[18804] | 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
|
---|
[25366] | 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 %}}}
|
---|
[18804] | 18 | methods
|
---|
[19040] | 19 | function self = frictionweertmantemp(varargin) % {{{
|
---|
[18804] | 20 | switch nargin
|
---|
| 21 | case 0
|
---|
[19040] | 22 | self=setdefaultparameters(self);
|
---|
[18804] | 23 | otherwise
|
---|
| 24 | error('constructor not supported');
|
---|
| 25 | end
|
---|
| 26 | end % }}}
|
---|
[19040] | 27 | function self = setdefaultparameters(self) % {{{
|
---|
[18804] | 28 |
|
---|
| 29 | end % }}}
|
---|
[19040] | 30 | function md = checkconsistency(self,md,solution,analyses) % {{{
|
---|
[18804] | 31 |
|
---|
| 32 | %Early return
|
---|
[21049] | 33 | if ~ismember('StressbalanceAnalysis',analyses) & ~ismember('ThermalAnalysis',analyses), return; end
|
---|
[19897] | 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]);
|
---|
[18804] | 36 | end % }}}
|
---|
[19040] | 37 | function disp(self) % {{{
|
---|
[18804] | 38 | disp('Weertman sliding law parameters:');
|
---|
[25366] | 39 | disp(' Sigma_b = C^2 * |u_b|^(1/m-1) u_b * 1/f(T)');
|
---|
[18804] | 40 | disp(' ');
|
---|
[19040] | 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');
|
---|
[18804] | 44 | end % }}}
|
---|
[20690] | 45 | function marshall(self,prefix,md,fid) % {{{
|
---|
[20896] | 46 | yts=md.constants.yts;
|
---|
[18804] | 47 |
|
---|
[20690] | 48 | WriteData(fid,prefix,'name','md.friction.law','data',6,'format','Integer');
|
---|
| 49 | WriteData(fid,prefix,'class','friction','object',self,'fieldname','gamma','format','Double');
|
---|
[20902] | 50 | WriteData(fid,prefix,'class','friction','object',self,'fieldname','C','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
|
---|
[20690] | 51 | WriteData(fid,prefix,'class','friction','object',self,'fieldname','m','format','DoubleMat','mattype',2);
|
---|
[18804] | 52 |
|
---|
| 53 |
|
---|
| 54 | end % }}}
|
---|
| 55 | end
|
---|
| 56 | end
|
---|