Changeset 20214
- Timestamp:
- 02/19/16 00:31:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mech/mechanicalproperties.m
r19386 r20214 1 function md=mechanicalproperties(md,vx,vy )1 function md=mechanicalproperties(md,vx,vy,varargin) 2 2 %MECHANICALPROPERTIES - compute stress and strain rate for a goven velocity 3 3 % … … 23 23 disp('Warning: the model has some non SSA elements. These will be treated like SSA''s elements'); 24 24 end 25 26 %get damage, if passed 27 options = pairoptions(varargin{:}); 28 damage = getfieldvalue(options,'damage',zeros(md.mesh.numberofvertices,1)); 25 29 26 30 %initialization … … 62 66 nu(location)=B_bar(location); 63 67 elseif isa(md.materials,'matdamageice') 64 % FIXME this needs to use md.damage.D or damage from a solution 65 Zinv=md.materials.rheology_Z(index)*summation/3; 68 Zinv=1-damage(index)*summation/3; 66 69 location=find(second_inv~=0); 67 70 nu(location)=Zinv(location).*B_bar(location)./(second_inv(location).^power(location));
Note:
See TracChangeset
for help on using the changeset viewer.