Changeset 7315
- Timestamp:
- 02/03/11 16:22:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/m/model/plot/plot_pressureload.m ¶
r5617 r7315 30 30 A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); 31 31 h3=patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','green','EdgeColor','black'); 32 33 pos=find(pressureload(:,end)==IceEnum()); 34 pos=pressureload(pos,end-1); 35 A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); 36 h3bis=patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','cyan','EdgeColor','black'); 32 37 33 38 %display arrows pointing outward … … 69 74 patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','green','EdgeColor','black'); 70 75 patch( 'Faces', [C A D F],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','green','EdgeColor','black'); 76 pos=find(pressureload(:,end)==IceEnum()); 77 pos=pressureload(pos,end-1); 78 A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); D=elements(pos,4); E=elements(pos,5); F=elements(pos,6); 79 h3bis=patch( 'Faces', [A B C],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','cyan','EdgeColor','black'); 80 patch( 'Faces', [D E F], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','cyan','EdgeColor','black'); 81 patch( 'Faces', [A B E D],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','cyan','EdgeColor','black'); 82 patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','cyan','EdgeColor','black'); 83 patch( 'Faces', [C A D F],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','cyan','EdgeColor','black'); 71 84 72 85 %display arrows pointing outward … … 85 98 %legend (disable warnings) 86 99 warning off 87 legend([h2,h3, q],'element on ice front (Water)','element on ice front (Air)','normal vectors')100 legend([h2,h3,h3bis,q],'element on ice front (Water)','element on ice front (Air)','element on ice front (Ice)','normal vectors') 88 101 warning on 89 102
Note:
See TracChangeset
for help on using the changeset viewer.