Changeset 13479
- Timestamp:
- 09/28/12 14:28:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mech/mechanicalproperties.m
r13476 r13479 51 51 power=(md.materials.rheology_n-1)./(2*md.materials.rheology_n); 52 52 second_inv=(ux.^2+vy.^2+((uy+vx).^2)/4+ux.*vy); 53 53 54 %some corrections 54 location=find(second_inv~=0);55 nu(location)=B_bar(location)./(second_inv(location).^power(location));56 55 location=find(second_inv==0 & power~=0); 57 56 nu(location)=10^18; %arbitrary maximum viscosity to apply where there is no effective shear 58 location=find(second_inv==0 & power==0); 59 nu(location)=B_bar(location); 57 58 if isa(md.materials,'matice') 59 location=find(second_inv~=0); 60 nu(location)=B_bar(location)./(second_inv(location).^power(location)); 61 location=find(second_inv==0 & power==0); 62 nu(location)=B_bar(location); 63 elseif isa(md.materials,'matdamageice') 64 Zinv=md.materials.rheology_Z(index)*summation/3; 65 location=find(second_inv~=0); 66 nu(location)=Zinv(location).*B_bar(location)./(second_inv(location).^power(location)); 67 location=find(second_inv==0 & power==0); 68 nu(location)=Zinv(location).*B_bar(location); 69 clear Zinv 70 else 71 error(['class of md.materials (' class(md.materials) ') not recognized or not supported']); 72 end 60 73 clear B_bar location second_inv power 61 74
Note:
See TracChangeset
for help on using the changeset viewer.