Changeset 7315


Ignore:
Timestamp:
02/03/11 16:22:48 (14 years ago)
Author:
Eric.Larour
Message:

IceEnum not possible material

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/m/model/plot/plot_pressureload.m

    r5617 r7315  
    3030        A=elements(pos,1); B=elements(pos,2); C=elements(pos,3);
    3131        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');
    3237
    3338        %display arrows pointing outward
     
    6974        patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','green','EdgeColor','black');
    7075        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');
    7184
    7285        %display arrows pointing outward
     
    8598%legend (disable warnings)
    8699warning off
    87 legend([h2,h3,q],'element on ice front (Water)','element on ice front (Air)','normal vectors')
     100legend([h2,h3,h3bis,q],'element on ice front (Water)','element on ice front (Air)','element on ice front (Ice)','normal vectors')
    88101warning on
    89102
Note: See TracChangeset for help on using the changeset viewer.