Changeset 17390
- Timestamp:
- 03/07/14 13:28:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mech/mechanicalproperties.m
r17367 r17390 2 2 %MECHANICALPROPERTIES - compute stress and strain rate for a goven velocity 3 3 % 4 % this routine computes the components of the stress tensor5 % strain rate tensorand their respective principal directions.6 % the results are in the model md: md.results4 % this routine computes the components of the (deviatoric) stress tensor, 5 % the strain rate tensor, and their respective principal directions. 6 % The results are in the model md: md.results 7 7 % 8 8 % Usage: … … 107 107 %plug onto the model 108 108 %NB: Matlab sorts the eigen value in increasing order, we want the reverse 109 %NOTE: all stresses below are deviatoric 109 110 stress=struct('xx',[],'yy',[],'xy',[],'principalvalue1',[],'principalaxis1',[],'principalvalue2',[],'principalaxis2',[],'effectivevalue',[]); 110 111 stress.xx=tau_xx; … … 115 116 stress.principalvalue2=valuesstress(:,2); 116 117 stress.principalaxis2=directionsstress(:,3:4); 117 stress.effectivevalue=1/sqrt(2)*sqrt(stress.xx.^2+stress.yy.^2+2*stress.xy.^2); 118 stress.effectivevalue=1/sqrt(2)*sqrt(stress.xx.^2+stress.yy.^2+2*stress.xy.^2); % effective shear stress 118 119 md.results.stress=stress; 119 120 … … 129 130 md.results.strainrate=strainrate; 130 131 132 %exact same stress as above 131 133 deviatoricstress=struct('xx',[],'yy',[],'xy',[],'principalvalue1',[],'principalaxis1',[],'principalvalue2',[],'principalaxis2',[],'effectivevalue',[]); 132 134 deviatoricstress.xx=tau_xx;
Note:
See TracChangeset
for help on using the changeset viewer.