[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
|
---|
| 12 | methods
|
---|
[19040] | 13 | function self = frictionweertmantemp(varargin) % {{{
|
---|
[18804] | 14 | switch nargin
|
---|
| 15 | case 0
|
---|
[19040] | 16 | self=setdefaultparameters(self);
|
---|
[18804] | 17 | otherwise
|
---|
| 18 | error('constructor not supported');
|
---|
| 19 | end
|
---|
| 20 | end % }}}
|
---|
[19040] | 21 | function self = setdefaultparameters(self) % {{{
|
---|
[18804] | 22 |
|
---|
| 23 | end % }}}
|
---|
[19040] | 24 | function md = checkconsistency(self,md,solution,analyses) % {{{
|
---|
[18804] | 25 |
|
---|
| 26 | %Early return
|
---|
| 27 | if ~ismember(StressbalanceAnalysisEnum(),analyses) & ~ismember(ThermalAnalysisEnum(),analyses), return; end
|
---|
[19897] | 28 | md = checkfield(md,'fieldname','friction.C','timeseries',1,'NaN',1,'Inf',1);
|
---|
| 29 | md = checkfield(md,'fieldname','friction.m','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]);
|
---|
[18804] | 30 | end % }}}
|
---|
[19040] | 31 | function disp(self) % {{{
|
---|
[18804] | 32 | disp('Weertman sliding law parameters:');
|
---|
| 33 | disp(' Sigma_b = C^(-1/m) * |u_b|^(1/m-1) u_b * 1/f(T)');
|
---|
| 34 | disp(' ');
|
---|
[19040] | 35 | fielddisplay(self,'gamma','submelt sliding parameter f(T) = exp((T-Tpmp)/gamma)');
|
---|
| 36 | fielddisplay(self,'C','friction coefficient [SI]');
|
---|
| 37 | fielddisplay(self,'m','m exponent');
|
---|
[18804] | 38 | end % }}}
|
---|
[19040] | 39 | function marshall(self,md,fid) % {{{
|
---|
[18804] | 40 | yts=365.0*24.0*3600.0;
|
---|
| 41 |
|
---|
| 42 | WriteData(fid,'enum',FrictionLawEnum,'data',6,'format','Integer');
|
---|
[19040] | 43 | WriteData(fid,'class','friction','object',self,'fieldname','gamma','format','Double');
|
---|
| 44 | WriteData(fid,'class','friction','object',self,'fieldname','C','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1);
|
---|
| 45 | WriteData(fid,'class','friction','object',self,'fieldname','m','format','DoubleMat','mattype',2);
|
---|
[18804] | 46 |
|
---|
| 47 |
|
---|
| 48 | end % }}}
|
---|
| 49 | end
|
---|
| 50 | end
|
---|