Ignore:
Timestamp:
01/31/13 19:43:33 (12 years ago)
Author:
cborstad
Message:

NEW: function to calculate error in strain rate components from velocity error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/mech/mechanicalproperties.m ΒΆ

    r13479 r14296  
    119119
    120120strainrate=struct('xx',[],'yy',[],'xy',[],'principalvalue1',[],'principalaxis1',[],'principalvalue2',[],'principalaxis2',[],'effectivevalue',[]);
    121 strainrate.xx=ux;
    122 strainrate.yy=vy;
    123 strainrate.xy=uyvx;
    124 strainrate.principalvalue1=valuesstrain(:,1)*(365.25*24*3600); %strain rate in 1/a instead of 1/s
     121strainrate.xx=ux*md.constants.yts; %strain rate in 1/a instead of 1/s
     122strainrate.yy=vy*md.constants.yts;
     123strainrate.xy=uyvx*md.constants.yts;
     124strainrate.principalvalue1=valuesstrain(:,1)*md.constants.yts;
    125125strainrate.principalaxis1=directionsstrain(:,1:2);
    126 strainrate.principalvalue2=valuesstrain(:,2)*(365.25*24*3600); %strain rate in 1/a instead of 1/s
     126strainrate.principalvalue2=valuesstrain(:,2)*md.constants.yts;
    127127strainrate.principalaxis2=directionsstrain(:,3:4);
    128128strainrate.effectivevalue=1/sqrt(2)*sqrt(strainrate.xx.^2+strainrate.yy.^2+2*strainrate.xy.^2);
Note: See TracChangeset for help on using the changeset viewer.