Changeset 25974


Ignore:
Timestamp:
02/03/21 20:06:06 (4 years ago)
Author:
Mathieu Morlighem
Message:

CHG: moving coefficient to C

Location:
issm/trunk-jpl/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp

    r25973 r25974  
    918918                case 13:
    919919                        iomodel->FindConstant(&FrictionCoupling,"md.friction.coupling");
    920                         iomodel->FetchDataToInput(inputs,elements,"md.friction.coefficient",FrictionCEnum);
     920                        iomodel->FetchDataToInput(inputs,elements,"md.friction.C",FrictionCEnum);
    921921                        iomodel->FetchDataToInput(inputs,elements,"md.friction.m",FrictionMEnum);
    922922                        if(FrictionCoupling==3){
  • issm/trunk-jpl/src/m/classes/frictioncoulomb2.m

    r25973 r25974  
    66classdef frictioncoulomb2
    77        properties (SetAccess=public)
    8                 coefficient              = NaN;
     8                C                        = NaN;
    99                m                        = NaN;
    1010                coupling                 = 0;
     
    1414        methods
    1515                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);
    1717                        self.m=project3d(md,'vector',self.m,'type','element');
    1818                        switch self.coupling
     
    4343                        %Early return
    4444                        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);
    4646                        md = checkfield(md,'fieldname','friction.m','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]);
    4747                        md = checkfield(md,'fieldname','friction.coupling','numel',[1],'values',[0 1 2]);
     
    6464         disp('                (C^(2/m) |u_b| + (0.5*N)^(1/m) )^m      ');
    6565         disp(' ');
    66                         fielddisplay(self,'coefficient','power law (Weertman) friction coefficient [SI]');
     66                        fielddisplay(self,'C','friction coefficient [SI]');
    6767                        fielddisplay(self,'m','m exponent (Weertman would be 1/3)');
    6868                        fielddisplay(self,'effective_pressure','Effective Pressure for the forcing if not coupled [Pa]');
     
    7373
    7474                        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);
    7676                        WriteData(fid,prefix,'object',self,'fieldname','m','format','DoubleMat','mattype',2);
    7777                        WriteData(fid,prefix,'class','friction','object',self,'fieldname','coupling','format','Integer');
Note: See TracChangeset for help on using the changeset viewer.